From 1e5f98420002cdeaef21c41e111f2b8e16a1014d Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Sat, 21 Jan 2023 08:42:18 +0100 Subject: [PATCH] fix addon icons --- services/homebox/app.yaml | 353 +++++++++++++++++++++++++++++++++ services/homebox/service.yaml | 8 + src/addons/kuberoKafka.ts | 2 +- src/addons/kuberoPostgresql.ts | 2 +- src/addons/postgresCluster.ts | 2 +- 5 files changed, 364 insertions(+), 3 deletions(-) create mode 100644 services/homebox/app.yaml create mode 100644 services/homebox/service.yaml diff --git a/services/homebox/app.yaml b/services/homebox/app.yaml new file mode 100644 index 00000000..ef3613b1 --- /dev/null +++ b/services/homebox/app.yaml @@ -0,0 +1,353 @@ +apiVersion: application.kubero.dev/v1alpha1 +kind: KuberoApp +metadata: + creationTimestamp: "2023-01-20T21:59:22Z" + finalizers: + - helm.sdk.operatorframework.io/uninstall-release + generation: 1 + labels: + manager: kubero + name: homebox + namespace: test-production + resourceVersion: "1855834" + uid: 3d4e36dd-4402-4045-a84e-53a1a0fea7f5 +spec: + addons: [] + affinity: {} + autodeploy: true + autoscale: false + autoscaling: + enabled: false + branch: main + buildpack: custom + cronjobs: [] + deploymentstrategy: docker + domain: homebox.lacolhost.com + envVars: [] + extraVolumes: + - accessModes: + - ReadWriteOnce + emptyDir: false + mountPath: /data + name: homebox-data + size: 1Gi + storageClass: standard + fullnameOverride: "" + gitrepo: + admin: true + clone_url: https://github.com/kubero-dev/template-nodeapp.git + default_branch: main + description: Simple example Node app + homepage: "" + id: 501665730 + language: JavaScript + name: template-nodeapp + node_id: R_kgDOHebPwg + owner: kubero-dev + private: false + push: true + ssh_url: git@github.com:kubero-dev/template-nodeapp.git + visibility: public + image: + build: + command: npm install + repository: node + tag: latest + containerPort: "7745" + fetch: + repository: ghcr.io/kubero-dev/buildpacks/fetch + tag: main + pullPolicy: Always + repository: ghcr.io/hay-kot/homebox + run: + command: node index.js + repository: node + tag: latest + tag: latest + imagePullSecrets: [] + ingress: + annotations: {} + className: "" + enabled: true + hosts: + - host: homebox.lacolhost.com + paths: + - path: / + pathType: ImplementationSpecific + tls: [] + name: homebox + nameOverride: "" + nodeSelector: {} + phase: production + pipeline: test + podAnnotations: {} + podSecurityContext: {} + podsize: + default: true + description: 'Small (CPU: 0.25, Memory: 0.5Gi)' + name: small + resources: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 250m + memory: 0.5Gi + replicaCount: 1 + resources: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 250m + memory: 0.5Gi + service: + port: 80 + type: ClusterIP + serviceAccount: + annotations: {} + create: true + name: "" + tolerations: [] + web: + autoscaling: + maxReplicas: 3 + minReplicas: 1 + targetCPUUtilizationPercentage: 80 + targetMemoryUtilizationPercentage: 80 + replicaCount: 1 + worker: + autoscaling: + maxReplicas: 0 + minReplicas: 0 + targetCPUUtilizationPercentage: 80 + targetMemoryUtilizationPercentage: 80 + replicaCount: 0 +status: + conditions: + - lastTransitionTime: "2023-01-20T21:59:23Z" + status: "True" + type: Initialized + - lastTransitionTime: "2023-01-20T21:59:23Z" + message: | + 1. Get the application URL by running these commands: + http://homebox.lacolhost.com/ + reason: InstallSuccessful + status: "True" + type: Deployed + deployedRelease: + manifest: | + --- + # Source: kuberoapp/templates/serviceaccount.yaml + apiVersion: v1 + kind: ServiceAccount + metadata: + name: homebox-kuberoapp + labels: + helm.sh/chart: kuberoapp-0.1.0 + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox + app.kubernetes.io/version: "1.16.0" + app.kubernetes.io/managed-by: Helm + --- + # Source: kuberoapp/templates/pvc.yaml + apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: homebox-data + spec: + storageClassName: standard + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + --- + # Source: kuberoapp/templates/service.yaml + apiVersion: v1 + kind: Service + metadata: + name: homebox-kuberoapp + labels: + helm.sh/chart: kuberoapp-0.1.0 + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox + app.kubernetes.io/version: "1.16.0" + app.kubernetes.io/managed-by: Helm + spec: + type: ClusterIP + ports: + - port: 80 + targetPort: http + protocol: TCP + name: http + selector: + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox-web + --- + # Source: kuberoapp/templates/deployment-web.yaml + apiVersion: apps/v1 + kind: Deployment + metadata: + name: homebox-kuberoapp-web + labels: + helm.sh/chart: kuberoapp-0.1.0 + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox + app.kubernetes.io/version: "1.16.0" + app.kubernetes.io/managed-by: Helm + spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox-web + template: + metadata: + labels: + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox-web + spec: + serviceAccountName: homebox-kuberoapp + securityContext: + {} + containers: + - name: kuberoapp-web + securityContext: + readOnlyRootFilesystem: true + image: "ghcr.io/hay-kot/homebox:latest" + imagePullPolicy: Always + env: + - name: PROC_TYPE + value: web + - name: PORT + value: "7745" + ports: + - name: http + containerPort: 7745 + protocol: TCP + livenessProbe: + httpGet: + path: / + port: http + readinessProbe: + httpGet: + path: / + port: http + volumeMounts: + - mountPath: /tmp + name: tmp-storage + readOnly: false + - mountPath: /data + name: homebox-data + resources: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 250m + memory: 0.5Gi + volumes: + - name: deployment-keys + secret: + defaultMode: 0600 + secretName: deployment-keys + - name: app-storage + emptyDir: {} + - name: tmp-storage + emptyDir: {} + - name: homebox-data + persistentVolumeClaim: + claimName: homebox-data + --- + # Source: kuberoapp/templates/deployment-worker.yaml + apiVersion: apps/v1 + kind: Deployment + metadata: + name: homebox-kuberoapp-worker + labels: + helm.sh/chart: kuberoapp-0.1.0 + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox + app.kubernetes.io/version: "1.16.0" + app.kubernetes.io/managed-by: Helm + spec: + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox-worker + template: + metadata: + labels: + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox-worker + spec: + serviceAccountName: homebox-kuberoapp + securityContext: + {} + containers: + - name: kuberoapp-worker + securityContext: + readOnlyRootFilesystem: true + image: "ghcr.io/hay-kot/homebox:latest" + imagePullPolicy: Always + env: + - name: PROC_TYPE + value: worker + - name: PORT + value: "7745" + ports: + - name: http + containerPort: 7745 + protocol: TCP + volumeMounts: + - mountPath: /tmp + name: tmp-storage + readOnly: false + - mountPath: /data + name: homebox-data + resources: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 250m + memory: 0.5Gi + volumes: + - name: deployment-keys + secret: + defaultMode: 0600 + secretName: deployment-keys + - name: app-storage + emptyDir: {} + - name: tmp-storage + emptyDir: {} + - name: homebox-data + persistentVolumeClaim: + claimName: homebox-data + --- + # Source: kuberoapp/templates/ingress.yaml + apiVersion: networking.k8s.io/v1 + kind: Ingress + metadata: + name: homebox-kuberoapp + labels: + helm.sh/chart: kuberoapp-0.1.0 + app.kubernetes.io/name: kuberoapp + app.kubernetes.io/instance: homebox + app.kubernetes.io/version: "1.16.0" + app.kubernetes.io/managed-by: Helm + spec: + rules: + - host: "homebox.lacolhost.com" + http: + paths: + - path: / + pathType: ImplementationSpecific + backend: + service: + name: homebox-kuberoapp + port: + number: 80 + name: homebox diff --git a/services/homebox/service.yaml b/services/homebox/service.yaml new file mode 100644 index 00000000..7a4dbbe1 --- /dev/null +++ b/services/homebox/service.yaml @@ -0,0 +1,8 @@ +name: homebox +description: 'Homebox is the inventory and organization system built for the Home User' +tags: +- Search +source: https://github.com/hay-kot/homebox +website: hay-kot.github.io/homebox/ +icon: https://raw.githubusercontent.com/hay-kot/homebox/main/docs/docs/assets/img/lilbox.svg +screenshots: \ No newline at end of file diff --git a/src/addons/kuberoKafka.ts b/src/addons/kuberoKafka.ts index 782a47a8..ae207e48 100644 --- a/src/addons/kuberoKafka.ts +++ b/src/addons/kuberoKafka.ts @@ -4,7 +4,7 @@ import {Plugin, IPlugin, IPluginFormFields} from './plugin'; export class KuberoKafka extends Plugin implements IPlugin { public id: string = 'kubero-operator';//same as operator name public displayName = 'Kubero Kafka' - public icon = '/img/addons/kafka.png' + public icon = '/img/addons/Kafka.png' public install: string = '' public artifact_url = 'https://artifacthub.io/api/v1/packages/olm/kubero/kubero-operator' public beta: boolean = false; diff --git a/src/addons/kuberoPostgresql.ts b/src/addons/kuberoPostgresql.ts index 13978242..eeac3ddb 100644 --- a/src/addons/kuberoPostgresql.ts +++ b/src/addons/kuberoPostgresql.ts @@ -4,7 +4,7 @@ import {Plugin, IPlugin, IPluginFormFields} from './plugin'; export class KuberoPostgresql extends Plugin implements IPlugin { public id: string = 'kubero-operator';//same as operator name public displayName = 'Kubero Postgresql' - public icon = '/img/addons/Postgresql.png' + public icon = '/img/addons/postgresql.png' public install: string = '' public artifact_url = 'https://artifacthub.io/api/v1/packages/olm/kubero/kubero-operator' public beta: boolean = false; diff --git a/src/addons/postgresCluster.ts b/src/addons/postgresCluster.ts index 68c7075e..43b80068 100644 --- a/src/addons/postgresCluster.ts +++ b/src/addons/postgresCluster.ts @@ -4,7 +4,7 @@ import {Plugin, IPlugin, IPluginFormFields} from './plugin'; export class PostgresCluster extends Plugin implements IPlugin { public id: string = 'postgresoperator';//same as operator name public displayName = 'Crunchbase Postgres Cluster' - public icon = '/img/addons/PostgreSQL.png' + public icon = '/img/addons/postgresql.png' public install: string = 'kubectl create -f https://operatorhub.io/install/v5/postgresql.yaml' public artifact_url = 'https://artifacthub.io/api/v1/packages/olm/community-operators/postgresql' public beta: boolean = true;