From 1f4365129c65e99858aa7b55ded8ecac52aa025a Mon Sep 17 00:00:00 2001 From: AngeloAISquared Date: Tue, 20 May 2025 16:30:58 -0400 Subject: [PATCH 1/4] feature: replace mw branding w aisquared --- charts/{multiwoven => aisquared}/Chart.yaml | 4 +- .../templates/_helpers.tpl | 0 .../templates/aisquared-cluster-role.yaml} | 0 .../aisquared/templates/aisquared-config.yaml | 69 ++++++++++++++++ .../templates/aisquared-ingress.yaml} | 40 +++++----- .../templates/aisquared-namespace.yaml} | 0 .../aisquared-postgresql-deployment.yaml} | 12 +-- .../templates/aisquared-postgresql-pvc.yaml} | 2 +- .../aisquared-postgresql-service.yaml} | 6 +- .../aisquared-secret-provider-class-mw.yaml} | 0 ...red-secret-provider-class-temp-store.yaml} | 0 ...t-provider-class-temporal-visibility.yaml} | 0 ...uared-secret-provider-class-temporal.yaml} | 0 .../aisquared-server-deployment.yaml} | 40 +++++----- .../templates/aisquared-server-hpa.yaml | 47 +++++++++++ .../templates/aisquared-server-service.yaml} | 4 +- .../templates/aisquared-service-account.yaml} | 0 .../aisquared-solid-worker-deployment.yaml} | 44 +++++------ .../templates/aisquared-solid-worker-hpa.yaml | 47 +++++++++++ .../aisquared-solid-worker-service.yaml} | 4 +- .../templates/aisquared-ui-deployment.yaml} | 24 +++--- .../aisquared/templates/aisquared-ui-hpa.yaml | 47 +++++++++++ .../templates/aisquared-ui-service.yaml} | 4 +- .../aisquared-worker-deployment.yaml} | 46 +++++------ .../templates/aisquared-worker-hpa.yaml | 47 +++++++++++ .../templates/aisquared-worker-service.yaml} | 4 +- .../cluster-autoscaler-priority-expander.yaml | 2 +- .../templates/production-issuer.yaml | 2 +- .../templates/staging-issuer.yaml | 2 +- .../templates/temporal-config-map.yaml | 0 .../templates/temporal-deployment.yaml | 8 +- .../templates/temporal-service.yaml | 0 .../templates/temporal-ui-deployment.yaml | 4 +- .../templates/temporal-ui-service.yaml | 0 charts/{multiwoven => aisquared}/values.yaml | 78 +++++++++---------- .../templates/multiwoven-config.yaml | 69 ---------------- .../templates/multiwoven-server-hpa.yaml | 47 ----------- .../multiwoven-solid-worker-hpa.yaml | 47 ----------- .../templates/multiwoven-ui-hpa.yaml | 47 ----------- .../templates/multiwoven-worker-hpa.yaml | 47 ----------- 40 files changed, 422 insertions(+), 422 deletions(-) rename charts/{multiwoven => aisquared}/Chart.yaml (82%) rename charts/{multiwoven => aisquared}/templates/_helpers.tpl (100%) rename charts/{multiwoven/templates/multiwoven-cluster-role.yaml => aisquared/templates/aisquared-cluster-role.yaml} (100%) create mode 100644 charts/aisquared/templates/aisquared-config.yaml rename charts/{multiwoven/templates/multiwoven-ingress.yaml => aisquared/templates/aisquared-ingress.yaml} (64%) rename charts/{multiwoven/templates/multiwoven-namespace.yaml => aisquared/templates/aisquared-namespace.yaml} (100%) rename charts/{multiwoven/templates/multiwoven-postgresql-deployment.yaml => aisquared/templates/aisquared-postgresql-deployment.yaml} (78%) rename charts/{multiwoven/templates/multiwoven-postgresql-pvc.yaml => aisquared/templates/aisquared-postgresql-pvc.yaml} (91%) rename charts/{multiwoven/templates/multiwoven-postgresql-service.yaml => aisquared/templates/aisquared-postgresql-service.yaml} (72%) rename charts/{multiwoven/templates/multiwoven-secret-provider-class-mw.yaml => aisquared/templates/aisquared-secret-provider-class-mw.yaml} (100%) rename charts/{multiwoven/templates/multiwoven-secret-provider-class-temp-store.yaml => aisquared/templates/aisquared-secret-provider-class-temp-store.yaml} (100%) rename charts/{multiwoven/templates/multiwoven-secret-provider-class-temporal-visibility.yaml => aisquared/templates/aisquared-secret-provider-class-temporal-visibility.yaml} (100%) rename charts/{multiwoven/templates/multiwoven-secret-provider-class-temporal.yaml => aisquared/templates/aisquared-secret-provider-class-temporal.yaml} (100%) rename charts/{multiwoven/templates/multiwoven-server-deployment.yaml => aisquared/templates/aisquared-server-deployment.yaml} (80%) create mode 100644 charts/aisquared/templates/aisquared-server-hpa.yaml rename charts/{multiwoven/templates/multiwoven-server-service.yaml => aisquared/templates/aisquared-server-service.yaml} (82%) rename charts/{multiwoven/templates/multiwoven-service-account.yaml => aisquared/templates/aisquared-service-account.yaml} (100%) rename charts/{multiwoven/templates/multiwoven-solid-worker-deployment.yaml => aisquared/templates/aisquared-solid-worker-deployment.yaml} (74%) create mode 100644 charts/aisquared/templates/aisquared-solid-worker-hpa.yaml rename charts/{multiwoven/templates/multiwoven-solid-worker-service.yaml => aisquared/templates/aisquared-solid-worker-service.yaml} (81%) rename charts/{multiwoven/templates/multiwoven-ui-deployment.yaml => aisquared/templates/aisquared-ui-deployment.yaml} (68%) create mode 100644 charts/aisquared/templates/aisquared-ui-hpa.yaml rename charts/{multiwoven/templates/multiwoven-ui-service.yaml => aisquared/templates/aisquared-ui-service.yaml} (83%) rename charts/{multiwoven/templates/multiwoven-worker-deployment.yaml => aisquared/templates/aisquared-worker-deployment.yaml} (74%) create mode 100644 charts/aisquared/templates/aisquared-worker-hpa.yaml rename charts/{multiwoven/templates/multiwoven-worker-service.yaml => aisquared/templates/aisquared-worker-service.yaml} (82%) rename charts/{multiwoven => aisquared}/templates/cluster-autoscaler-priority-expander.yaml (81%) rename charts/{multiwoven => aisquared}/templates/production-issuer.yaml (91%) rename charts/{multiwoven => aisquared}/templates/staging-issuer.yaml (91%) rename charts/{multiwoven => aisquared}/templates/temporal-config-map.yaml (100%) rename charts/{multiwoven => aisquared}/templates/temporal-deployment.yaml (97%) rename charts/{multiwoven => aisquared}/templates/temporal-service.yaml (100%) rename charts/{multiwoven => aisquared}/templates/temporal-ui-deployment.yaml (97%) rename charts/{multiwoven => aisquared}/templates/temporal-ui-service.yaml (100%) rename charts/{multiwoven => aisquared}/values.yaml (89%) delete mode 100644 charts/multiwoven/templates/multiwoven-config.yaml delete mode 100644 charts/multiwoven/templates/multiwoven-server-hpa.yaml delete mode 100644 charts/multiwoven/templates/multiwoven-solid-worker-hpa.yaml delete mode 100644 charts/multiwoven/templates/multiwoven-ui-hpa.yaml delete mode 100644 charts/multiwoven/templates/multiwoven-worker-hpa.yaml diff --git a/charts/multiwoven/Chart.yaml b/charts/aisquared/Chart.yaml similarity index 82% rename from charts/multiwoven/Chart.yaml rename to charts/aisquared/Chart.yaml index 4f28678..46b9ab4 100644 --- a/charts/multiwoven/Chart.yaml +++ b/charts/aisquared/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 -name: multiwoven +name: aisquared description: | - Multiwoven is an open-source reverse ETL tool, offering an alternative to qHightouch, Census, and similar platforms. 🔥 + AI Squared is an open-source reverse ETL tool, offering an alternative to qHightouch, Census, and similar platforms. 🔥 # kubeVersion: ">=1.16.0" type: application version: 0.56.0 diff --git a/charts/multiwoven/templates/_helpers.tpl b/charts/aisquared/templates/_helpers.tpl similarity index 100% rename from charts/multiwoven/templates/_helpers.tpl rename to charts/aisquared/templates/_helpers.tpl diff --git a/charts/multiwoven/templates/multiwoven-cluster-role.yaml b/charts/aisquared/templates/aisquared-cluster-role.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-cluster-role.yaml rename to charts/aisquared/templates/aisquared-cluster-role.yaml diff --git a/charts/aisquared/templates/aisquared-config.yaml b/charts/aisquared/templates/aisquared-config.yaml new file mode 100644 index 0000000..5ca473b --- /dev/null +++ b/charts/aisquared/templates/aisquared-config.yaml @@ -0,0 +1,69 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "chart.fullname" . }}-config + namespace: {{ .Values.kubernetesNamespace }} + labels: + io.kompose.service: {{ include "chart.fullname" . }}-config + {{- include "chart.labels" . | nindent 4 }} +data: + ALLOWED_HOST: {{ .Values.aisquaredConfig.allowedHost | quote }} + API_HOST: {{ .Values.aisquaredConfig.apiHost | quote }} + APP_ENV: {{ .Values.aisquaredConfig.appEnv | quote }} + APP_REVISION: {{ .Values.aisquaredConfig.appRevision | quote }} + APPSIGNAL_APP_ENV: {{ .Values.aisquaredConfig.appEnv | quote }} + APPSIGNAL_PUSH_API_KEY: {{ .Values.aisquaredConfig.appsignalPushApiKey | quote }} + AWS_ACCESS_KEY_ID: {{ .Values.aisquaredConfig.awsAccessKeyId | quote }} + AWS_SECRET_ACCESS_KEY: {{ .Values.aisquaredConfig.awsSecretAccessKey | quote }} + BRAND_NAME: {{ .Values.aisquaredConfig.smtpBrandName | quote }} + DATABRICKS_DRIVER_PATH: {{ .Values.aisquaredConfig.databricksDriverPath | quote }} + DB_PORT: {{ .Values.aisquaredConfig.dbPort | quote }} + DB_HOST: {{ .Values.aisquaredConfig.dbHost | quote }} + {{ if not .Values.secretsStore.enabled }} + DB_PASSWORD: {{ .Values.aisquaredConfig.dbPassword | quote }} + DB_USERNAME: {{ .Values.aisquaredConfig.dbUsername | quote }} + {{ end }} + GRPC_ENABLE_FORK_SUPPORT: {{ .Values.aisquaredConfig.grpcEnableForkSupport | quote }} + JWT_SECRET: {{ .Values.aisquaredConfig.jwtSecret | quote }} + NEW_RELIC_KEY: {{ .Values.aisquaredConfig.newRelicKey | quote }} + RAILS_ENV: {{ .Values.aisquaredConfig.railsEnv | quote }} + RAILS_LOG_LEVEL: {{ .Values.aisquaredConfig.railsLogLevel | quote }} + SECRET_KEY_BASE: {{ .Values.aisquaredConfig.secretKeyBase | quote }} + SKIP_DB_MIGRATION: {{ .Values.aisquaredConfig.skipDbMigration | quote }} + SMTP_ADDRESS: {{ .Values.aisquaredConfig.smtpAddress | quote }} + SMTP_HOST: {{ .Values.aisquaredConfig.smtpHost | quote }} + SMTP_PASSWORD: {{ .Values.aisquaredConfig.smtpPassword | quote }} + SMTP_PORT: {{ .Values.aisquaredConfig.smtpPort | quote }} + SMTP_USERNAME: {{ .Values.aisquaredConfig.smtpUsername | quote }} + SMTP_SENDER_EMAIL: {{ .Values.aisquaredConfig.smtpSenderEmail | quote }} + SNOWFLAKE_DRIVER_PATH: {{ .Values.aisquaredConfig.snowflakeDriverPath | quote }} + STORAGE_ACCESS_KEY: {{ .Values.aisquaredConfig.storageAccessKey }} + STORAGE_ACCOUNT_NAME: {{ .Values.aisquaredConfig.storageAccountName }} + SYNC_EXTRACTOR_BATCH_SIZE: {{ .Values.aisquaredConfig.syncExtractorBatchSize | quote }} + SYNC_EXTRACTOR_THREAD_POOL_SIZE: {{ .Values.aisquaredConfig.syncExtractorThreadPoolSize | quote }} + SYNC_LOADER_BATCH_SIZE: {{ .Values.aisquaredConfig.syncLoaderBatchSize | quote }} + SYNC_LOADER_THREAD_POOL_SIZE: {{ .Values.aisquaredConfig.syncLoaderThreadPoolSize | quote }} + TEMPORAL_ACTIVITY_THREAD_POOL_SIZE: {{ .Values.aisquaredConfig.temporalActivityThreadPoolSize | quote }} + TEMPORAL_CLIENT_CHAIN: {{ .Values.aisquaredConfig.temporalClientChain | quote }} + TEMPORAL_CLIENT_KEY: {{ .Values.aisquaredConfig.temporalClientKey | quote }} + TEMPORAL_HOST: {{ .Values.aisquaredConfig.temporalHost | quote }} + TEMPORAL_NAMESPACE: {{ .Values.aisquaredConfig.temporalNamespace | quote }} + TEMPORAL_PORT: {{ .Values.aisquaredConfig.temporalPort | quote }} + TEMPORAL_POSTGRES_DEFAULT_PORT: {{ .Values.aisquaredConfig.temporalPostgresDefaultPort | quote }} + TEMPORAL_POSTGRES_PASSWORD: {{ .Values.aisquaredConfig.temporalPostgresPassword | quote }} + TEMPORAL_POSTGRES_USER: {{ .Values.aisquaredConfig.temporalPostgresUser | quote }} + TEMPORAL_POSTGRESQL_VERSION: {{ .Values.aisquaredConfig.temporalPostgresqlVersion | quote }} + TEMPORAL_ROOT_CERT: {{ .Values.aisquaredConfig.temporalRootCert | quote }} + TEMPORAL_TASK_QUEUE: {{ .Values.aisquaredConfig.temporalTaskQueue | quote }} + TEMPORAL_UI_VERSION: {{ .Values.aisquaredConfig.temporalUiVersion | quote }} + TEMPORAL_VERSION: {{ .Values.aisquaredConfig.temporalVersion | quote }} + TEMPORAL_WORKFLOW_THREAD_POOL_SIZE: {{ .Values.aisquaredConfig.temporalWorkflowThreadPoolSize | quote }} + UI_HOST: {{ .Values.aisquaredConfig.uiHost | quote }} + USER_EMAIL_VERIFICATION: {{ .Values.aisquaredConfig.userEmailVerification | quote }} + VITE_API_HOST: {{ .Values.aisquaredConfig.viteApiHost | quote }} + VITE_APPSIGNAL_PUSH_API_KEY: {{ .Values.aisquaredConfig.viteAppsignalPushApiKey | quote }} + VITE_BRAND_NAME: {{ .Values.aisquaredConfig.viteBrandName | quote }} + VITE_LOGO_URL: {{ .Values.aisquaredConfig.viteLogoUrl | quote }} + VITE_BRAND_COLOR: {{ .Values.aisquaredConfig.viteBrandColor | quote }} + VITE_BRAND_HOVER_COLOR: {{ .Values.aisquaredConfig.viteBrandHoverColor | quote }} + VITE_FAV_ICON_URL: {{ .Values.aisquaredConfig.viteFavIconUrl | quote }} diff --git a/charts/multiwoven/templates/multiwoven-ingress.yaml b/charts/aisquared/templates/aisquared-ingress.yaml similarity index 64% rename from charts/multiwoven/templates/multiwoven-ingress.yaml rename to charts/aisquared/templates/aisquared-ingress.yaml index 38cdadd..345ab7b 100644 --- a/charts/multiwoven/templates/multiwoven-ingress.yaml +++ b/charts/aisquared/templates/aisquared-ingress.yaml @@ -8,10 +8,10 @@ metadata: annotations: {{ if .Values.externalDNS.enabled }} {{- if .Values.temporal.enabled }} - external-dns.alpha.kubernetes.io/hostname: "{{ .Values.multiwovenConfig.uiHost }},{{ .Values.multiwovenConfig.apiHost }},{{ .Values.multiwovenConfig.workerHost }},{{ .Values.multiwovenConfig.solidWorkerHost }},{{ .Values.multiwovenConfig.temporalUiHost }}" + external-dns.alpha.kubernetes.io/hostname: "{{ .Values.aisquaredConfig.uiHost }},{{ .Values.aisquaredConfig.apiHost }},{{ .Values.aisquaredConfig.workerHost }},{{ .Values.aisquaredConfig.solidWorkerHost }},{{ .Values.aisquaredConfig.temporalUiHost }}" {{- end }} {{- if not .Values.temporal.enabled }} - external-dns.alpha.kubernetes.io/hostname: "{{ .Values.multiwovenConfig.uiHost }},{{ .Values.multiwovenConfig.apiHost }},{{ .Values.multiwovenConfig.workerHost }},{{ .Values.multiwovenConfig.solidWorkerHost }}" + external-dns.alpha.kubernetes.io/hostname: "{{ .Values.aisquaredConfig.uiHost }},{{ .Values.aisquaredConfig.apiHost }},{{ .Values.aisquaredConfig.workerHost }},{{ .Values.aisquaredConfig.solidWorkerHost }}" {{- end }} {{ end }} @@ -24,12 +24,12 @@ metadata: {{ if .Values.nginxIngress.enabled }} kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/backend-protocol: "HTTP" - cert-manager.io/issuer: {{ .Values.multiwovenConfig.tlsCertIssuer }} + cert-manager.io/issuer: {{ .Values.aisquaredConfig.tlsCertIssuer }} nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true" - nginx.ingress.kubernetes.io/whitelist-source-range: {{ .Values.multiwovenConfig.allowedSourceIP }} - nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.multiwovenConfig.nginxProxyBodySize }} - {{ if not .Values.nginxIngress.enableMetrics }} + nginx.ingress.kubernetes.io/whitelist-source-range: {{ .Values.aisquaredConfig.allowedSourceIP }} + nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.aisquaredConfig.nginxProxyBodySize }} + {{ if .Values.nginxIngress.enableMetrics }} nginx.ingress.kubernetes.io/server-snippet: | location = /metrics { return 403; @@ -50,12 +50,12 @@ spec: ingressClassName: nginx tls: - hosts: - - {{ .Values.multiwovenConfig.uiHost }} - - {{ .Values.multiwovenConfig.apiHost }} - - {{ .Values.multiwovenConfig.workerHost }} - - {{ .Values.multiwovenConfig.solidWorkerHost }} + - {{ .Values.aisquaredConfig.uiHost }} + - {{ .Values.aisquaredConfig.apiHost }} + - {{ .Values.aisquaredConfig.workerHost }} + - {{ .Values.aisquaredConfig.solidWorkerHost }} {{ if .Values.temporal.enabled }} - - {{ .Values.multiwovenConfig.temporalUiHost }} + - {{ .Values.aisquaredConfig.temporalUiHost }} {{ end }} secretName: mw-tls-cert {{ end }} @@ -67,7 +67,7 @@ spec: ingressClassName: alb {{ end }} rules: - - host: {{ .Values.multiwovenConfig.uiHost }} + - host: {{ .Values.aisquaredConfig.uiHost }} http: paths: - path: / @@ -76,8 +76,8 @@ spec: service: name: '{{ include "chart.fullname" . }}-ui' port: - number: {{ (index .Values.multiwovenUI.ports 0).port }} - - host: {{ .Values.multiwovenConfig.apiHost }} + number: {{ (index .Values.aisquaredUI.ports 0).port }} + - host: {{ .Values.aisquaredConfig.apiHost }} http: paths: - path: / @@ -86,8 +86,8 @@ spec: service: name: '{{ include "chart.fullname" . }}-server' port: - number: {{ (index .Values.multiwovenServer.ports 0).port }} - - host: {{ .Values.multiwovenConfig.workerHost }} + number: {{ (index .Values.aisquaredServer.ports 0).port }} + - host: {{ .Values.aisquaredConfig.workerHost }} http: paths: - path: / @@ -96,8 +96,8 @@ spec: service: name: '{{ include "chart.fullname" . }}-worker' port: - number: {{ .Values.multiwovenWorker.healthPort }} - - host: {{ .Values.multiwovenConfig.solidWorkerHost }} + number: {{ .Values.aisquaredWorker.healthPort }} + - host: {{ .Values.aisquaredConfig.solidWorkerHost }} http: paths: - path: / @@ -106,9 +106,9 @@ spec: service: name: '{{ include "chart.fullname" . }}-solid-worker' port: - number: {{ .Values.multiwovenSolidWorker.healthPort }} + number: {{ .Values.aisquaredSolidWorker.healthPort }} {{ if .Values.temporal.enabled }} - - host: {{ .Values.multiwovenConfig.temporalUiHost }} + - host: {{ .Values.aisquaredConfig.temporalUiHost }} http: paths: - backend: diff --git a/charts/multiwoven/templates/multiwoven-namespace.yaml b/charts/aisquared/templates/aisquared-namespace.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-namespace.yaml rename to charts/aisquared/templates/aisquared-namespace.yaml diff --git a/charts/multiwoven/templates/multiwoven-postgresql-deployment.yaml b/charts/aisquared/templates/aisquared-postgresql-deployment.yaml similarity index 78% rename from charts/multiwoven/templates/multiwoven-postgresql-deployment.yaml rename to charts/aisquared/templates/aisquared-postgresql-deployment.yaml index 3399095..2c7ea5e 100644 --- a/charts/multiwoven/templates/multiwoven-postgresql-deployment.yaml +++ b/charts/aisquared/templates/aisquared-postgresql-deployment.yaml @@ -1,4 +1,4 @@ -{{ if .Values.multiwovenPostgresql.enabled }} +{{ if .Values.aisquaredPostgresql.enabled }} apiVersion: apps/v1 kind: Deployment metadata: @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-postgresql {{- include "chart.labels" . | nindent 4 }} spec: - replicas: {{ .Values.multiwovenPostgresql.replicas }} + replicas: {{ .Values.aisquaredPostgresql.replicas }} selector: matchLabels: io.kompose.service: {{ include "chart.fullname" . }}-postgresql @@ -16,11 +16,11 @@ spec: template: metadata: labels: - io.kompose.network/multiwoven-server-default: "true" + io.kompose.network/aisquared-server-default: "true" io.kompose.service: {{ include "chart.fullname" . }}-postgresql {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenPostgresql.annotations }} + {{- with .Values.aisquaredPostgresql.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: @@ -38,7 +38,7 @@ spec: name: {{ include "chart.fullname" . }}-config - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} - image: {{ .Values.multiwovenPostgresql.multiwovenPostgresql.image.repository }}:{{ .Values.multiwovenPostgresql.multiwovenPostgresql.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredPostgresql.aisquaredPostgresql.image.repository }}:{{ .Values.aisquaredPostgresql.aisquaredPostgresql.image.tag | default .Chart.AppVersion }} livenessProbe: initialDelaySeconds: 30 periodSeconds: 10 @@ -52,7 +52,7 @@ spec: periodSeconds: 10 tcpSocket: port: 5432 - resources: {{- toYaml .Values.multiwovenPostgresql.multiwovenPostgresql.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredPostgresql.aisquaredPostgresql.resources | nindent 10 }} volumeMounts: - mountPath: /var/lib/postgresql/data subPath: postgres diff --git a/charts/multiwoven/templates/multiwoven-postgresql-pvc.yaml b/charts/aisquared/templates/aisquared-postgresql-pvc.yaml similarity index 91% rename from charts/multiwoven/templates/multiwoven-postgresql-pvc.yaml rename to charts/aisquared/templates/aisquared-postgresql-pvc.yaml index 312ae21..25ebba8 100644 --- a/charts/multiwoven/templates/multiwoven-postgresql-pvc.yaml +++ b/charts/aisquared/templates/aisquared-postgresql-pvc.yaml @@ -1,4 +1,4 @@ -{{ if .Values.multiwovenPostgresql.enabled }} +{{ if .Values.aisquaredPostgresql.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/charts/multiwoven/templates/multiwoven-postgresql-service.yaml b/charts/aisquared/templates/aisquared-postgresql-service.yaml similarity index 72% rename from charts/multiwoven/templates/multiwoven-postgresql-service.yaml rename to charts/aisquared/templates/aisquared-postgresql-service.yaml index bae3fe8..36fad34 100644 --- a/charts/multiwoven/templates/multiwoven-postgresql-service.yaml +++ b/charts/aisquared/templates/aisquared-postgresql-service.yaml @@ -1,4 +1,4 @@ -{{ if .Values.multiwovenPostgresql.enabled }} +{{ if .Values.aisquaredPostgresql.enabled }} apiVersion: v1 kind: Service metadata: @@ -8,10 +8,10 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-postgresql {{- include "chart.labels" . | nindent 4 }} spec: - type: {{ .Values.multiwovenPostgresql.type }} + type: {{ .Values.aisquaredPostgresql.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-postgresql {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenPostgresql.ports | toYaml | nindent 2 -}} + {{- .Values.aisquaredPostgresql.ports | toYaml | nindent 2 -}} {{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-secret-provider-class-mw.yaml b/charts/aisquared/templates/aisquared-secret-provider-class-mw.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-secret-provider-class-mw.yaml rename to charts/aisquared/templates/aisquared-secret-provider-class-mw.yaml diff --git a/charts/multiwoven/templates/multiwoven-secret-provider-class-temp-store.yaml b/charts/aisquared/templates/aisquared-secret-provider-class-temp-store.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-secret-provider-class-temp-store.yaml rename to charts/aisquared/templates/aisquared-secret-provider-class-temp-store.yaml diff --git a/charts/multiwoven/templates/multiwoven-secret-provider-class-temporal-visibility.yaml b/charts/aisquared/templates/aisquared-secret-provider-class-temporal-visibility.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-secret-provider-class-temporal-visibility.yaml rename to charts/aisquared/templates/aisquared-secret-provider-class-temporal-visibility.yaml diff --git a/charts/multiwoven/templates/multiwoven-secret-provider-class-temporal.yaml b/charts/aisquared/templates/aisquared-secret-provider-class-temporal.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-secret-provider-class-temporal.yaml rename to charts/aisquared/templates/aisquared-secret-provider-class-temporal.yaml diff --git a/charts/multiwoven/templates/multiwoven-server-deployment.yaml b/charts/aisquared/templates/aisquared-server-deployment.yaml similarity index 80% rename from charts/multiwoven/templates/multiwoven-server-deployment.yaml rename to charts/aisquared/templates/aisquared-server-deployment.yaml index 553dd68..f664817 100644 --- a/charts/multiwoven/templates/multiwoven-server-deployment.yaml +++ b/charts/aisquared/templates/aisquared-server-deployment.yaml @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-server {{- include "chart.labels" . | nindent 4 }} spec: - replicas: {{ .Values.multiwovenServer.replicas }} + replicas: {{ .Values.aisquaredServer.replicas }} selector: matchLabels: app: {{ include "chart.fullname" . }}-server @@ -21,18 +21,18 @@ spec: io.kompose.service: {{ include "chart.fullname" . }}-server {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenServer.annotations }} + {{- with .Values.aisquaredServer.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ .Values.serviceAccount.create | ternary .Values.serviceAccount.name "default" }} automountServiceAccountToken: {{ .Values.automountServiceAccountToken.enabled }} securityContext: - fsGroup: {{ .Values.multiwovenServer.podSecurityContext.fsGroup }} + fsGroup: {{ .Values.aisquaredServer.podSecurityContext.fsGroup }} initContainers: {{ if .Values.securityContext.readOnlyRootFilesystem }} - name: copy-config - image: {{ .Values.multiwovenServer.multiwovenServer.image.repository }}:{{ .Values.multiwovenServer.multiwovenServer.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredServer.aisquaredServer.image.repository }}:{{ .Values.aisquaredServer.aisquaredServer.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} command: - /bin/sh @@ -45,8 +45,8 @@ spec: - name: rails-config mountPath: /mnt/rails securityContext: - runAsUser: {{ .Values.multiwovenServer.multiwovenServer.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenServer.multiwovenServer.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredServer.aisquaredServer.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredServer.aisquaredServer.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -58,7 +58,7 @@ spec: {{- end }} {{- end }} {{ end }} - {{ if .Values.multiwovenConfig.azureSpot }} + {{ if .Values.aisquaredConfig.azureSpot }} tolerations: - key: "kubernetes.azure.com/scalesetpriority" operator: "Equal" @@ -103,20 +103,20 @@ spec: {{ end }} {{ if .Values.multipleDbHosts.enabled }} - name: DB_HOST - value: {{ .Values.multipleDbHosts.multiwovenDBHost }} + value: {{ .Values.multipleDbHosts.aisquaredDBHost }} - name: DB_NAME - value: {{ .Values.multipleDbHosts.multiwovenDBName }} + value: {{ .Values.multipleDbHosts.aisquaredDBName }} {{ end }} - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} envFrom: - configMapRef: name: {{ include "chart.fullname" . }}-config - image: {{ .Values.multiwovenServer.multiwovenServer.image.repository }}:{{ .Values.multiwovenServer.multiwovenServer.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredServer.aisquaredServer.image.repository }}:{{ .Values.aisquaredServer.aisquaredServer.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} securityContext: - runAsUser: {{ .Values.multiwovenServer.multiwovenServer.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenServer.multiwovenServer.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredServer.aisquaredServer.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredServer.aisquaredServer.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -130,23 +130,23 @@ spec: livenessProbe: httpGet: path: / - port: {{ (index .Values.multiwovenServer.ports 0).port }} + port: {{ (index .Values.aisquaredServer.ports 0).port }} initialDelaySeconds: 15 periodSeconds: 10 name: {{ include "chart.fullname" . }}-server ports: - - containerPort: {{ (index .Values.multiwovenServer.ports 0).port }} + - containerPort: {{ (index .Values.aisquaredServer.ports 0).port }} readinessProbe: httpGet: path: / - port: {{ (index .Values.multiwovenServer.ports 0).port }} + port: {{ (index .Values.aisquaredServer.ports 0).port }} initialDelaySeconds: 5 periodSeconds: 10 - resources: {{- toYaml .Values.multiwovenServer.multiwovenServer.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredServer.aisquaredServer.resources | nindent 10 }} imagePullPolicy: Always volumeMounts: {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store mountPath: /run/secrets/mw-secrets readOnly: true {{ end }} @@ -176,7 +176,7 @@ spec: path: ./temporal.pem {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store csi: driver: secrets-store.csi.k8s.io readOnly: true @@ -196,7 +196,7 @@ spec: emptyDir: {} {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} \ No newline at end of file diff --git a/charts/aisquared/templates/aisquared-server-hpa.yaml b/charts/aisquared/templates/aisquared-server-hpa.yaml new file mode 100644 index 0000000..36e7f61 --- /dev/null +++ b/charts/aisquared/templates/aisquared-server-hpa.yaml @@ -0,0 +1,47 @@ +{{ if .Values.hpa.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "chart.fullname" . }}-server-hpa + namespace: {{ .Values.kubernetesNamespace }} + labels: + {{- include "chart.labels" . | nindent 4 }} + app.kubernetes.io/component: server-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "chart.fullname" . }}-server + minReplicas: {{ .Values.hpa.aisquaredServer.minReplicas }} + maxReplicas: {{ .Values.hpa.aisquaredServer.maxReplicas }} + behavior: + scaleDown: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleDown.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredServer.behavior.scaleDown.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredServer.behavior.scaleDown.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleDown.policies.percentPolicy.periodSeconds }} + scaleUp: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.percentPolicy.periodSeconds }} + - type: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.podPolicy.type }} + value: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.podPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.podPolicy.periodSeconds }} + selectPolicy: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.selectPolicy }} + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredServer.cpuAverageUtilizationPercentageThreshold }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredServer.memoryAverageUtilizationPercentageThreshold }} +{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-server-service.yaml b/charts/aisquared/templates/aisquared-server-service.yaml similarity index 82% rename from charts/multiwoven/templates/multiwoven-server-service.yaml rename to charts/aisquared/templates/aisquared-server-service.yaml index 88893cb..9fee5d0 100644 --- a/charts/multiwoven/templates/multiwoven-server-service.yaml +++ b/charts/aisquared/templates/aisquared-server-service.yaml @@ -11,9 +11,9 @@ metadata: kompose.cmd: kompose convert kompose.version: 1.32.0 (HEAD) spec: - type: {{ .Values.multiwovenServer.type }} + type: {{ .Values.aisquaredServer.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-server {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenServer.ports | toYaml | nindent 2 -}} \ No newline at end of file + {{- .Values.aisquaredServer.ports | toYaml | nindent 2 -}} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-service-account.yaml b/charts/aisquared/templates/aisquared-service-account.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-service-account.yaml rename to charts/aisquared/templates/aisquared-service-account.yaml diff --git a/charts/multiwoven/templates/multiwoven-solid-worker-deployment.yaml b/charts/aisquared/templates/aisquared-solid-worker-deployment.yaml similarity index 74% rename from charts/multiwoven/templates/multiwoven-solid-worker-deployment.yaml rename to charts/aisquared/templates/aisquared-solid-worker-deployment.yaml index 8a71ad6..0cf8a7b 100644 --- a/charts/multiwoven/templates/multiwoven-solid-worker-deployment.yaml +++ b/charts/aisquared/templates/aisquared-solid-worker-deployment.yaml @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-solid-worker {{- include "chart.labels" . | nindent 4 }} spec: - replicas: {{ .Values.multiwovenSolidWorker.replicas }} + replicas: {{ .Values.aisquaredSolidWorker.replicas }} selector: matchLabels: app: {{ include "chart.fullname" . }}-solid-worker @@ -21,18 +21,18 @@ spec: io.kompose.service: {{ include "chart.fullname" . }}-solid-worker {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenSolidWorker.annotations }} + {{- with .Values.aisquaredSolidWorker.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ .Values.serviceAccount.create | ternary .Values.serviceAccount.name "default" }} automountServiceAccountToken: {{ .Values.automountServiceAccountToken.enabled }} securityContext: - fsGroup: {{ .Values.multiwovenSolidWorker.podSecurityContext.fsGroup }} + fsGroup: {{ .Values.aisquaredSolidWorker.podSecurityContext.fsGroup }} initContainers: {{ if .Values.securityContext.readOnlyRootFilesystem }} - name: copy-config - image: {{ .Values.multiwovenServer.multiwovenServer.image.repository }}:{{ .Values.multiwovenServer.multiwovenServer.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredServer.aisquaredServer.image.repository }}:{{ .Values.aisquaredServer.aisquaredServer.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} command: - /bin/sh @@ -45,8 +45,8 @@ spec: - name: rails-config mountPath: /mnt/rails securityContext: - runAsUser: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -58,7 +58,7 @@ spec: {{- end }} {{- end }} {{ end }} - {{ if .Values.multiwovenConfig.azureSpot }} + {{ if .Values.aisquaredConfig.azureSpot }} tolerations: - key: "kubernetes.azure.com/scalesetpriority" operator: "Equal" @@ -76,12 +76,12 @@ spec: - spot {{ end }} containers: - - args: {{- toYaml .Values.multiwovenSolidWorker.multiwovenSolidWorker.args | nindent 8 }} + - args: {{- toYaml .Values.aisquaredSolidWorker.aisquaredSolidWorker.args | nindent 8 }} env: - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} - name: MULTIWOVEN_WORKER_HEALTH_CHECK_PORT - value: {{ quote .Values.multiwovenSolidWorker.healthPort }} + value: {{ quote .Values.aisquaredSolidWorker.healthPort }} {{ if .Values.secretsStore.enabled }} - name: DB_PASSWORD valueFrom: @@ -96,18 +96,18 @@ spec: {{ end }} {{ if .Values.multipleDbHosts.enabled }} - name: DB_HOST - value: {{ .Values.multipleDbHosts.multiwovenDBHost }} + value: {{ .Values.multipleDbHosts.aisquaredDBHost }} - name: DB_NAME - value: {{ .Values.multipleDbHosts.multiwovenDBName }} + value: {{ .Values.multipleDbHosts.aisquaredDBName }} {{ end }} envFrom: - configMapRef: name: {{ include "chart.fullname" . }}-config - image: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.image.repository }}:{{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.image.repository }}:{{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} securityContext: - runAsUser: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -121,19 +121,19 @@ spec: livenessProbe: httpGet: path: /health - port: {{ .Values.multiwovenSolidWorker.healthPort }} + port: {{ .Values.aisquaredSolidWorker.healthPort }} initialDelaySeconds: 15 periodSeconds: 10 name: {{ include "chart.fullname" . }}-solid-worker ports: - - containerPort: {{ .Values.multiwovenSolidWorker.healthPort }} + - containerPort: {{ .Values.aisquaredSolidWorker.healthPort }} readinessProbe: httpGet: path: /health - port: {{ .Values.multiwovenSolidWorker.healthPort }} + port: {{ .Values.aisquaredSolidWorker.healthPort }} initialDelaySeconds: 5 periodSeconds: 10 - resources: {{- toYaml .Values.multiwovenSolidWorker.multiwovenSolidWorker.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredSolidWorker.aisquaredSolidWorker.resources | nindent 10 }} imagePullPolicy: Always volumeMounts: {{ if not .Values.temporal.enabled }} @@ -142,7 +142,7 @@ spec: readOnly: false {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store mountPath: /run/secrets/store readOnly: true {{ end }} @@ -162,7 +162,7 @@ spec: path: ./temporal.pem {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store csi: driver: secrets-store.csi.k8s.io readOnly: true @@ -174,7 +174,7 @@ spec: emptyDir: {} {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} \ No newline at end of file diff --git a/charts/aisquared/templates/aisquared-solid-worker-hpa.yaml b/charts/aisquared/templates/aisquared-solid-worker-hpa.yaml new file mode 100644 index 0000000..337808c --- /dev/null +++ b/charts/aisquared/templates/aisquared-solid-worker-hpa.yaml @@ -0,0 +1,47 @@ +{{ if .Values.hpa.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "chart.fullname" . }}-solid-worker-hpa + namespace: {{ .Values.kubernetesNamespace }} + labels: + {{- include "chart.labels" . | nindent 4 }} + app.kubernetes.io/component: worker-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "chart.fullname" . }}-solid-worker + minReplicas: {{ .Values.hpa.aisquaredSolidWorker.minReplicas }} + maxReplicas: {{ .Values.hpa.aisquaredSolidWorker.maxReplicas }} + behavior: + scaleDown: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleDown.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleDown.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleDown.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleDown.policies.percentPolicy.periodSeconds }} + scaleUp: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.percentPolicy.periodSeconds }} + - type: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.podPolicy.type }} + value: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.podPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.podPolicy.periodSeconds }} + selectPolicy: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.selectPolicy }} + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredSolidWorker.cpuAverageUtilizationPercentageThreshold }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredSolidWorker.memoryAverageUtilizationPercentageThreshold }} +{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-solid-worker-service.yaml b/charts/aisquared/templates/aisquared-solid-worker-service.yaml similarity index 81% rename from charts/multiwoven/templates/multiwoven-solid-worker-service.yaml rename to charts/aisquared/templates/aisquared-solid-worker-service.yaml index cdc03b8..010ee11 100644 --- a/charts/multiwoven/templates/multiwoven-solid-worker-service.yaml +++ b/charts/aisquared/templates/aisquared-solid-worker-service.yaml @@ -11,9 +11,9 @@ metadata: kompose.cmd: kompose convert kompose.version: 1.32.0 (HEAD) spec: - type: {{ .Values.multiwovenSolidWorker.type }} + type: {{ .Values.aisquaredSolidWorker.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-solid-worker {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenSolidWorker.ports | toYaml | nindent 2 -}} \ No newline at end of file + {{- .Values.aisquaredSolidWorker.ports | toYaml | nindent 2 -}} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-ui-deployment.yaml b/charts/aisquared/templates/aisquared-ui-deployment.yaml similarity index 68% rename from charts/multiwoven/templates/multiwoven-ui-deployment.yaml rename to charts/aisquared/templates/aisquared-ui-deployment.yaml index 3411990..869d16e 100644 --- a/charts/multiwoven/templates/multiwoven-ui-deployment.yaml +++ b/charts/aisquared/templates/aisquared-ui-deployment.yaml @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-ui {{- include "chart.labels" . | nindent 4 }} spec: - replicas: {{ .Values.multiwovenUI.replicas }} + replicas: {{ .Values.aisquaredUI.replicas }} selector: matchLabels: app: {{ include "chart.fullname" . }}-ui @@ -21,23 +21,23 @@ spec: io.kompose.service: {{ include "chart.fullname" . }}-ui {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenUI.annotations }} + {{- with .Values.aisquaredUI.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: automountServiceAccountToken: {{ .Values.automountServiceAccountToken.enabled }} securityContext: - fsGroup: {{ .Values.multiwovenUI.podSecurityContext.fsGroup }} + fsGroup: {{ .Values.aisquaredUI.podSecurityContext.fsGroup }} containers: - env: envFrom: - configMapRef: name: {{ include "chart.fullname" . }}-config - image: {{ .Values.multiwovenUI.multiwovenUI.image.repository }}:{{ .Values.multiwovenUI.multiwovenUI.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredUI.aisquaredUI.image.repository }}:{{ .Values.aisquaredUI.aisquaredUI.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} securityContext: - runAsUser: {{ .Values.multiwovenUI.multiwovenUI.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenUI.multiwovenUI.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredUI.aisquaredUI.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredUI.aisquaredUI.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -51,22 +51,22 @@ spec: livenessProbe: httpGet: path: / - port: {{ (index .Values.multiwovenUI.ports 0).port }} + port: {{ (index .Values.aisquaredUI.ports 0).port }} initialDelaySeconds: 15 periodSeconds: 10 name: {{ include "chart.fullname" . }}-ui ports: - - containerPort: {{ (index .Values.multiwovenUI.ports 0).port }} + - containerPort: {{ (index .Values.aisquaredUI.ports 0).port }} readinessProbe: httpGet: path: / - port: {{ (index .Values.multiwovenUI.ports 0).port }} + port: {{ (index .Values.aisquaredUI.ports 0).port }} initialDelaySeconds: 5 periodSeconds: 10 - resources: {{- toYaml .Values.multiwovenUI.multiwovenUI.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredUI.aisquaredUI.resources | nindent 10 }} imagePullPolicy: Always restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} \ No newline at end of file diff --git a/charts/aisquared/templates/aisquared-ui-hpa.yaml b/charts/aisquared/templates/aisquared-ui-hpa.yaml new file mode 100644 index 0000000..aedfbd7 --- /dev/null +++ b/charts/aisquared/templates/aisquared-ui-hpa.yaml @@ -0,0 +1,47 @@ +{{ if .Values.hpa.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "chart.fullname" . }}-ui-hpa + namespace: {{ .Values.kubernetesNamespace }} + labels: + {{- include "chart.labels" . | nindent 4 }} + app.kubernetes.io/component: ui-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "chart.fullname" . }}-ui + minReplicas: {{ .Values.hpa.aisquaredUI.minReplicas }} + maxReplicas: {{ .Values.hpa.aisquaredUI.maxReplicas }} + behavior: + scaleDown: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleDown.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredUI.behavior.scaleDown.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredUI.behavior.scaleDown.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleDown.policies.percentPolicy.periodSeconds }} + scaleUp: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.percentPolicy.periodSeconds }} + - type: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.podPolicy.type }} + value: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.podPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.podPolicy.periodSeconds }} + selectPolicy: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.selectPolicy }} + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredUI.cpuAverageUtilizationPercentageThreshold }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredUI.memoryAverageUtilizationPercentageThreshold }} +{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-ui-service.yaml b/charts/aisquared/templates/aisquared-ui-service.yaml similarity index 83% rename from charts/multiwoven/templates/multiwoven-ui-service.yaml rename to charts/aisquared/templates/aisquared-ui-service.yaml index a5becf6..d3faa33 100644 --- a/charts/multiwoven/templates/multiwoven-ui-service.yaml +++ b/charts/aisquared/templates/aisquared-ui-service.yaml @@ -11,9 +11,9 @@ metadata: kompose.cmd: kompose convert kompose.version: 1.32.0 (HEAD) spec: - type: {{ .Values.multiwovenUI.type }} + type: {{ .Values.aisquaredUI.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-ui {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenUI.ports | toYaml | nindent 2 -}} \ No newline at end of file + {{- .Values.aisquaredUI.ports | toYaml | nindent 2 -}} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-worker-deployment.yaml b/charts/aisquared/templates/aisquared-worker-deployment.yaml similarity index 74% rename from charts/multiwoven/templates/multiwoven-worker-deployment.yaml rename to charts/aisquared/templates/aisquared-worker-deployment.yaml index 18f4eab..febde33 100644 --- a/charts/multiwoven/templates/multiwoven-worker-deployment.yaml +++ b/charts/aisquared/templates/aisquared-worker-deployment.yaml @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-worker {{- include "chart.labels" . | nindent 4 }} spec: - replicas: {{ .Values.multiwovenWorker.replicas }} + replicas: {{ .Values.aisquaredWorker.replicas }} selector: matchLabels: app: {{ include "chart.fullname" . }}-worker @@ -21,18 +21,18 @@ spec: io.kompose.service: {{ include "chart.fullname" . }}-worker {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenWorker.annotations }} + {{- with .Values.aisquaredWorker.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ .Values.serviceAccount.create | ternary .Values.serviceAccount.name "default" }} automountServiceAccountToken: {{ .Values.automountServiceAccountToken.enabled }} securityContext: - fsGroup: {{ .Values.multiwovenWorker.podSecurityContext.fsGroup }} + fsGroup: {{ .Values.aisquaredWorker.podSecurityContext.fsGroup }} initContainers: {{ if .Values.securityContext.readOnlyRootFilesystem }} - name: copy-config - image: {{ .Values.multiwovenServer.multiwovenServer.image.repository }}:{{ .Values.multiwovenServer.multiwovenServer.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredServer.aisquaredServer.image.repository }}:{{ .Values.aisquaredServer.aisquaredServer.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} command: - /bin/sh @@ -45,8 +45,8 @@ spec: - name: rails-config mountPath: /mnt/rails securityContext: - runAsUser: {{ .Values.multiwovenWorker.multiwovenWorker.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenWorker.multiwovenWorker.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredWorker.aisquaredWorker.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredWorker.aisquaredWorker.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -58,7 +58,7 @@ spec: {{- end }} {{- end }} {{ end }} - {{ if .Values.multiwovenConfig.azureSpot }} + {{ if .Values.aisquaredConfig.azureSpot }} tolerations: - key: "kubernetes.azure.com/scalesetpriority" operator: "Equal" @@ -76,12 +76,12 @@ spec: - spot {{ end }} containers: - - args: {{- toYaml .Values.multiwovenWorker.multiwovenWorker.args | nindent 8 }} + - args: {{- toYaml .Values.aisquaredWorker.aisquaredWorker.args | nindent 8 }} env: - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} - - name: MULTIWOVEN_WORKER_HEALTH_CHECK_PORT - value: {{ quote .Values.multiwovenWorker.healthPort }} + - name: aisquared_WORKER_HEALTH_CHECK_PORT + value: {{ quote .Values.aisquaredWorker.healthPort }} {{ if .Values.secretsStore.enabled }} - name: DB_PASSWORD valueFrom: @@ -96,18 +96,18 @@ spec: {{ end }} {{ if .Values.multipleDbHosts.enabled }} - name: DB_HOST - value: {{ .Values.multipleDbHosts.multiwovenDBHost }} + value: {{ .Values.multipleDbHosts.aisquaredDBHost }} - name: DB_NAME - value: {{ .Values.multipleDbHosts.multiwovenDBName }} + value: {{ .Values.multipleDbHosts.aisquaredDBName }} {{ end }} envFrom: - configMapRef: name: {{ include "chart.fullname" . }}-config - image: {{ .Values.multiwovenWorker.multiwovenWorker.image.repository }}:{{ .Values.multiwovenWorker.multiwovenWorker.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredWorker.aisquaredWorker.image.repository }}:{{ .Values.aisquaredWorker.aisquaredWorker.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} securityContext: - runAsUser: {{ .Values.multiwovenWorker.multiwovenWorker.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenWorker.multiwovenWorker.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredWorker.aisquaredWorker.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredWorker.aisquaredWorker.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -121,19 +121,19 @@ spec: livenessProbe: httpGet: path: /health - port: {{ .Values.multiwovenWorker.healthPort }} + port: {{ .Values.aisquaredWorker.healthPort }} initialDelaySeconds: 15 periodSeconds: 10 name: {{ include "chart.fullname" . }}-worker ports: - - containerPort: {{ .Values.multiwovenWorker.healthPort }} + - containerPort: {{ .Values.aisquaredWorker.healthPort }} readinessProbe: httpGet: path: /health - port: {{ .Values.multiwovenWorker.healthPort }} + port: {{ .Values.aisquaredWorker.healthPort }} initialDelaySeconds: 5 periodSeconds: 10 - resources: {{- toYaml .Values.multiwovenWorker.multiwovenWorker.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredWorker.aisquaredWorker.resources | nindent 10 }} imagePullPolicy: Always volumeMounts: {{ if not .Values.temporal.enabled }} @@ -142,7 +142,7 @@ spec: readOnly: false {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store mountPath: /run/secrets/store readOnly: true {{ end }} @@ -162,7 +162,7 @@ spec: path: ./temporal.pem {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store csi: driver: secrets-store.csi.k8s.io readOnly: true @@ -174,7 +174,7 @@ spec: emptyDir: {} {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} \ No newline at end of file diff --git a/charts/aisquared/templates/aisquared-worker-hpa.yaml b/charts/aisquared/templates/aisquared-worker-hpa.yaml new file mode 100644 index 0000000..3543e8d --- /dev/null +++ b/charts/aisquared/templates/aisquared-worker-hpa.yaml @@ -0,0 +1,47 @@ +{{ if .Values.hpa.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "chart.fullname" . }}-worker-hpa + namespace: {{ .Values.kubernetesNamespace }} + labels: + {{- include "chart.labels" . | nindent 4 }} + app.kubernetes.io/component: worker-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "chart.fullname" . }}-worker + minReplicas: {{ .Values.hpa.aisquaredWorker.minReplicas }} + maxReplicas: {{ .Values.hpa.aisquaredWorker.maxReplicas }} + behavior: + scaleDown: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleDown.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredWorker.behavior.scaleDown.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredWorker.behavior.scaleDown.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleDown.policies.percentPolicy.periodSeconds }} + scaleUp: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.percentPolicy.periodSeconds }} + - type: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.podPolicy.type }} + value: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.podPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.podPolicy.periodSeconds }} + selectPolicy: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.selectPolicy }} + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredWorker.cpuAverageUtilizationPercentageThreshold }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredWorker.memoryAverageUtilizationPercentageThreshold }} +{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-worker-service.yaml b/charts/aisquared/templates/aisquared-worker-service.yaml similarity index 82% rename from charts/multiwoven/templates/multiwoven-worker-service.yaml rename to charts/aisquared/templates/aisquared-worker-service.yaml index bd7f847..f8c8748 100644 --- a/charts/multiwoven/templates/multiwoven-worker-service.yaml +++ b/charts/aisquared/templates/aisquared-worker-service.yaml @@ -11,9 +11,9 @@ metadata: kompose.cmd: kompose convert kompose.version: 1.32.0 (HEAD) spec: - type: {{ .Values.multiwovenWorker.type }} + type: {{ .Values.aisquaredWorker.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-worker {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenWorker.ports | toYaml | nindent 2 -}} \ No newline at end of file + {{- .Values.aisquaredWorker.ports | toYaml | nindent 2 -}} \ No newline at end of file diff --git a/charts/multiwoven/templates/cluster-autoscaler-priority-expander.yaml b/charts/aisquared/templates/cluster-autoscaler-priority-expander.yaml similarity index 81% rename from charts/multiwoven/templates/cluster-autoscaler-priority-expander.yaml rename to charts/aisquared/templates/cluster-autoscaler-priority-expander.yaml index 1d80c32..a058562 100644 --- a/charts/multiwoven/templates/cluster-autoscaler-priority-expander.yaml +++ b/charts/aisquared/templates/cluster-autoscaler-priority-expander.yaml @@ -1,4 +1,4 @@ -{{ if .Values.multiwovenConfig.azureSpot }} +{{ if .Values.aisquaredConfig.azureSpot }} apiVersion: v1 kind: ConfigMap metadata: diff --git a/charts/multiwoven/templates/production-issuer.yaml b/charts/aisquared/templates/production-issuer.yaml similarity index 91% rename from charts/multiwoven/templates/production-issuer.yaml rename to charts/aisquared/templates/production-issuer.yaml index 052a98b..aeb6f4d 100644 --- a/charts/multiwoven/templates/production-issuer.yaml +++ b/charts/aisquared/templates/production-issuer.yaml @@ -9,7 +9,7 @@ spec: # The ACME server URL server: https://acme-v02.api.letsencrypt.org/directory # Email address used for ACME registration - email: {{ .Values.multiwovenConfig.tlsAdminEmail }} + email: {{ .Values.aisquaredConfig.tlsAdminEmail }} # Name of a secret used to store the ACME account private key privateKeySecretRef: name: letsencrypt-prod diff --git a/charts/multiwoven/templates/staging-issuer.yaml b/charts/aisquared/templates/staging-issuer.yaml similarity index 91% rename from charts/multiwoven/templates/staging-issuer.yaml rename to charts/aisquared/templates/staging-issuer.yaml index d6dd352..8cd5fac 100644 --- a/charts/multiwoven/templates/staging-issuer.yaml +++ b/charts/aisquared/templates/staging-issuer.yaml @@ -9,7 +9,7 @@ spec: # The ACME server URL server: https://acme-staging-v02.api.letsencrypt.org/directory # Email address used for ACME registration - email: {{ .Values.multiwovenConfig.tlsAdminEmail }} + email: {{ .Values.aisquaredConfig.tlsAdminEmail }} # Name of a secret used to store the ACME account private key privateKeySecretRef: name: letsencrypt-staging diff --git a/charts/multiwoven/templates/temporal-config-map.yaml b/charts/aisquared/templates/temporal-config-map.yaml similarity index 100% rename from charts/multiwoven/templates/temporal-config-map.yaml rename to charts/aisquared/templates/temporal-config-map.yaml diff --git a/charts/multiwoven/templates/temporal-deployment.yaml b/charts/aisquared/templates/temporal-deployment.yaml similarity index 97% rename from charts/multiwoven/templates/temporal-deployment.yaml rename to charts/aisquared/templates/temporal-deployment.yaml index 2f9809d..23b733f 100644 --- a/charts/multiwoven/templates/temporal-deployment.yaml +++ b/charts/aisquared/templates/temporal-deployment.yaml @@ -65,7 +65,7 @@ spec: value: "true" - name: POSTGRES_TLS_ENABLED value: "true" - {{ if .Values.multiwovenConfig.skipDbMigration }} + {{ if .Values.aisquaredConfig.skipDbMigration }} - name: SKIP_DB_CREATE value: "true" - name: SKIP_SCHEMA_SETUP @@ -109,7 +109,7 @@ spec: key: TP_DB_USERNAME {{ end }} {{ end }} - {{ if .Values.multiwovenConfig.temporalPostgresSsl }} + {{ if .Values.aisquaredConfig.temporalPostgresSsl }} - name: TEMPORAL_TLS_REQUIRE_CLIENT_AUTH value: 'true' - name: SQL_TLS @@ -234,9 +234,9 @@ spec: name: "{{ include "chart.fullname" . }}-temporal-config" {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} {{ end }} diff --git a/charts/multiwoven/templates/temporal-service.yaml b/charts/aisquared/templates/temporal-service.yaml similarity index 100% rename from charts/multiwoven/templates/temporal-service.yaml rename to charts/aisquared/templates/temporal-service.yaml diff --git a/charts/multiwoven/templates/temporal-ui-deployment.yaml b/charts/aisquared/templates/temporal-ui-deployment.yaml similarity index 97% rename from charts/multiwoven/templates/temporal-ui-deployment.yaml rename to charts/aisquared/templates/temporal-ui-deployment.yaml index b9898c4..3361364 100644 --- a/charts/multiwoven/templates/temporal-ui-deployment.yaml +++ b/charts/aisquared/templates/temporal-ui-deployment.yaml @@ -100,8 +100,8 @@ spec: emptyDir: {} {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} {{ end }} diff --git a/charts/multiwoven/templates/temporal-ui-service.yaml b/charts/aisquared/templates/temporal-ui-service.yaml similarity index 100% rename from charts/multiwoven/templates/temporal-ui-service.yaml rename to charts/aisquared/templates/temporal-ui-service.yaml diff --git a/charts/multiwoven/values.yaml b/charts/aisquared/values.yaml similarity index 89% rename from charts/multiwoven/values.yaml rename to charts/aisquared/values.yaml index 065984a..3ac5035 100644 --- a/charts/multiwoven/values.yaml +++ b/charts/aisquared/values.yaml @@ -1,9 +1,9 @@ kubernetesClusterDomain: cluster.local -kubernetesNamespace: multiwoven -multiwovenConfig: +kubernetesNamespace: aisquared +aisquaredConfig: allowedHost: "" allowedSourceIP: "0.0.0.0/0" - apiHost: api.multiwoven.com + apiHost: api.squared.ai appRevision: unknown appEnv: community appsignalPushApiKey: yourkey @@ -11,10 +11,10 @@ multiwovenConfig: awsSecretAccessKey: "" azureSpot: false databricksDriverPath: /opt/simba/spark/lib/64/libsparkodbc_sb64.so - dbHost: multiwoven-postgresql + dbHost: aisquared-postgresql dbPassword: password dbPort: "5432" - dbUsername: multiwoven + dbUsername: aisquared grpcEnableForkSupport: 1 jwtSecret: "" newRelicKey: yourkey @@ -26,15 +26,15 @@ multiwovenConfig: secretKeyBase: "" skipDbMigration: "false" smtpAddress: smtp.yourdomain.com - smtpBrandName: Multiwoven + smtpBrandName: "AI Squared" smtpHost: yourdomain.com smtpPassword: yourpassword smtpPort: "587" smtpUsername: yourusername smtpSenderEmail: admin@yourdomain.com - solidWorkerHost: solid.multiwoven.com + solidWorkerHost: solid.squared.ai snowflakeDriverPath: /usr/lib/snowflake/odbc/lib/libSnowflake.so - storageAccessKey: "" + storageAccessKey: "myaccesskey" storageAccountName: "" syncExtractorBatchSize: "1000" syncExtractorThreadPoolSize: "10" @@ -43,32 +43,32 @@ multiwovenConfig: temporalActivityThreadPoolSize: "20" temporalClientChain: /certs/temporal.chain.pem temporalClientKey: /certs/temporal.pem - temporalHost: multiwoven-temporal - temporalNamespace: multiwoven-dev + temporalHost: aisquared-temporal + temporalNamespace: aisquared-dev temporalPort: "7233" temporalPostgresDefaultPort: "5432" temporalPostgresPassword: password temporalPostgresSsl: false - temporalPostgresUser: multiwoven + temporalPostgresUser: aisquared temporalPostgresqlVersion: "13" temporalRootCert: /certs/temporal.key temporalTaskQueue: sync-dev - temporalUiHost: temporal.multiwoven.com + temporalUiHost: temporal.squared.ai temporalUiVersion: 2.23.2 temporalVersion: 1.22.4 temporalWorkflowThreadPoolSize: "10" - tlsAdminEmail: admin@multiwoven.com + tlsAdminEmail: admin@squared.ai tlsCertIssuer: letsencrypt-staging - uiHost: app.multiwoven.com + uiHost: app.squared.ai userEmailVerification: "false" - viteApiHost: api.multiwoven.com + viteApiHost: api.squared.ai viteAppsignalPushApiKey: yourkey - viteBrandName: "Multiwoven" + viteBrandName: "AI Squared" viteLogoUrl: "" viteBrandColor: "" viteBrandHoverColor: "" viteFavIconUrl: "" - workerHost: worker.multiwoven.com + workerHost: worker.squared.ai automountServiceAccountToken: enabled: true @@ -94,7 +94,7 @@ awsIngress: serviceAccount: create: false - name: multiwoven-service-account + name: aisquared-service-account annotations: eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/example-role @@ -126,8 +126,8 @@ globalImagePullPolicy: IfNotPresent multipleDbHosts: enabled: false - multiwovenDBHost: "" - multiwovenDBName: "" + aisquaredDBHost: "" + aisquaredDBName: "" temporalDbName: "" temporalDbHost: "" @@ -141,7 +141,7 @@ multipleDbHosts: hpa: enabled: true - multiwovenUI: + aisquaredUI: minReplicas: 1 maxReplicas: 10 cpuAverageUtilizationPercentageThreshold: 80 @@ -171,7 +171,7 @@ hpa: value: 4 periodSeconds: 15 selectPolicy: Max - multiwovenServer: + aisquaredServer: minReplicas: 1 maxReplicas: 10 cpuAverageUtilizationPercentageThreshold: 80 @@ -201,7 +201,7 @@ hpa: value: 4 periodSeconds: 15 selectPolicy: Max - multiwovenSolidWorker: + aisquaredSolidWorker: minReplicas: 1 maxReplicas: 10 cpuAverageUtilizationPercentageThreshold: 80 @@ -231,7 +231,7 @@ hpa: value: 4 periodSeconds: 15 selectPolicy: Max - multiwovenWorker: + aisquaredWorker: minReplicas: 1 maxReplicas: 10 cpuAverageUtilizationPercentageThreshold: 80 @@ -262,10 +262,10 @@ hpa: periodSeconds: 15 selectPolicy: Max -multiwovenPostgresql: +aisquaredPostgresql: enabled: true annotations: {} - multiwovenPostgresql: + aisquaredPostgresql: image: repository: postgres tag: "13" @@ -282,16 +282,16 @@ multiwovenPostgresql: targetPort: 5432 replicas: 1 type: ClusterIP -multiwovenServer: +aisquaredServer: annotations: {} podSecurityContext: fsGroup: 1000 - multiwovenServer: + aisquaredServer: containerSecurityContext: runAsUser: 1000 runAsGroup: 1000 image: - repository: multiwoven/multiwoven-server + repository: aisquared/aisquared-server tag: latest resources: limits: @@ -306,16 +306,16 @@ multiwovenServer: targetPort: 3000 replicas: 1 type: ClusterIP -multiwovenUI: +aisquaredUI: annotations: {} podSecurityContext: fsGroup: 1000 - multiwovenUI: + aisquaredUI: containerSecurityContext: runAsUser: 1000 runAsGroup: 1000 image: - repository: multiwoven/multiwoven-ui + repository: aisquared/aisquared-ui tag: latest resources: limits: @@ -330,12 +330,12 @@ multiwovenUI: targetPort: 8000 replicas: 1 type: ClusterIP -multiwovenSolidWorker: +aisquaredSolidWorker: annotations: {} healthPort: 9999 podSecurityContext: fsGroup: 1000 - multiwovenSolidWorker: + aisquaredSolidWorker: containerSecurityContext: runAsUser: 1000 runAsGroup: 1000 @@ -345,7 +345,7 @@ multiwovenSolidWorker: - | ./app/solid_queue/cli/worker image: - repository: multiwoven/multiwoven-server + repository: aisquared/aisquared-server tag: latest resources: limits: @@ -360,12 +360,12 @@ multiwovenSolidWorker: targetPort: 9999 replicas: 1 type: ClusterIP -multiwovenWorker: +aisquaredWorker: annotations: {} healthPort: 4567 podSecurityContext: fsGroup: 1000 - multiwovenWorker: + aisquaredWorker: containerSecurityContext: runAsUser: 1000 runAsGroup: 1000 @@ -375,7 +375,7 @@ multiwovenWorker: - | ./app/temporal/cli/register_namespace && ./app/temporal/cli/worker image: - repository: multiwoven/multiwoven-server + repository: aisquared/aisquared-server tag: latest resources: limits: @@ -439,7 +439,7 @@ temporalUi: runAsUser: 5000 runAsGroup: 5000 env: - temporalAddress: multiwoven-temporal:7233 + temporalAddress: aisquared-temporal:7233 temporalCorsOrigins: http://localhost:3000 temporalUiPort: "8080" image: diff --git a/charts/multiwoven/templates/multiwoven-config.yaml b/charts/multiwoven/templates/multiwoven-config.yaml deleted file mode 100644 index 6c66f62..0000000 --- a/charts/multiwoven/templates/multiwoven-config.yaml +++ /dev/null @@ -1,69 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "chart.fullname" . }}-config - namespace: {{ .Values.kubernetesNamespace }} - labels: - io.kompose.service: {{ include "chart.fullname" . }}-config - {{- include "chart.labels" . | nindent 4 }} -data: - ALLOWED_HOST: {{ .Values.multiwovenConfig.allowedHost | quote }} - API_HOST: {{ .Values.multiwovenConfig.apiHost | quote }} - APP_ENV: {{ .Values.multiwovenConfig.appEnv | quote }} - APP_REVISION: {{ .Values.multiwovenConfig.appRevision | quote }} - APPSIGNAL_APP_ENV: {{ .Values.multiwovenConfig.appEnv | quote }} - APPSIGNAL_PUSH_API_KEY: {{ .Values.multiwovenConfig.appsignalPushApiKey | quote }} - AWS_ACCESS_KEY_ID: {{ .Values.multiwovenConfig.awsAccessKeyId | quote }} - AWS_SECRET_ACCESS_KEY: {{ .Values.multiwovenConfig.awsSecretAccessKey | quote }} - BRAND_NAME: {{ .Values.multiwovenConfig.smtpBrandName | quote }} - DATABRICKS_DRIVER_PATH: {{ .Values.multiwovenConfig.databricksDriverPath | quote }} - DB_PORT: {{ .Values.multiwovenConfig.dbPort | quote }} - DB_HOST: {{ .Values.multiwovenConfig.dbHost | quote }} - {{ if not .Values.secretsStore.enabled }} - DB_PASSWORD: {{ .Values.multiwovenConfig.dbPassword | quote }} - DB_USERNAME: {{ .Values.multiwovenConfig.dbUsername | quote }} - {{ end }} - GRPC_ENABLE_FORK_SUPPORT: {{ .Values.multiwovenConfig.grpcEnableForkSupport | quote }} - JWT_SECRET: {{ .Values.multiwovenConfig.jwtSecret | quote }} - NEW_RELIC_KEY: {{ .Values.multiwovenConfig.newRelicKey | quote }} - RAILS_ENV: {{ .Values.multiwovenConfig.railsEnv | quote }} - RAILS_LOG_LEVEL: {{ .Values.multiwovenConfig.railsLogLevel | quote }} - SECRET_KEY_BASE: {{ .Values.multiwovenConfig.secretKeyBase | quote }} - SKIP_DB_MIGRATION: {{ .Values.multiwovenConfig.skipDbMigration | quote }} - SMTP_ADDRESS: {{ .Values.multiwovenConfig.smtpAddress | quote }} - SMTP_HOST: {{ .Values.multiwovenConfig.smtpHost | quote }} - SMTP_PASSWORD: {{ .Values.multiwovenConfig.smtpPassword | quote }} - SMTP_PORT: {{ .Values.multiwovenConfig.smtpPort | quote }} - SMTP_USERNAME: {{ .Values.multiwovenConfig.smtpUsername | quote }} - SMTP_SENDER_EMAIL: {{ .Values.multiwovenConfig.smtpSenderEmail | quote }} - SNOWFLAKE_DRIVER_PATH: {{ .Values.multiwovenConfig.snowflakeDriverPath | quote }} - STORAGE_ACCESS_KEY: {{ .Values.multiwovenConfig.storageAccessKey }} - STORAGE_ACCOUNT_NAME: {{ .Values.multiwovenConfig.storageAccountName }} - SYNC_EXTRACTOR_BATCH_SIZE: {{ .Values.multiwovenConfig.syncExtractorBatchSize | quote }} - SYNC_EXTRACTOR_THREAD_POOL_SIZE: {{ .Values.multiwovenConfig.syncExtractorThreadPoolSize | quote }} - SYNC_LOADER_BATCH_SIZE: {{ .Values.multiwovenConfig.syncLoaderBatchSize | quote }} - SYNC_LOADER_THREAD_POOL_SIZE: {{ .Values.multiwovenConfig.syncLoaderThreadPoolSize | quote }} - TEMPORAL_ACTIVITY_THREAD_POOL_SIZE: {{ .Values.multiwovenConfig.temporalActivityThreadPoolSize | quote }} - TEMPORAL_CLIENT_CHAIN: {{ .Values.multiwovenConfig.temporalClientChain | quote }} - TEMPORAL_CLIENT_KEY: {{ .Values.multiwovenConfig.temporalClientKey | quote }} - TEMPORAL_HOST: {{ .Values.multiwovenConfig.temporalHost | quote }} - TEMPORAL_NAMESPACE: {{ .Values.multiwovenConfig.temporalNamespace | quote }} - TEMPORAL_PORT: {{ .Values.multiwovenConfig.temporalPort | quote }} - TEMPORAL_POSTGRES_DEFAULT_PORT: {{ .Values.multiwovenConfig.temporalPostgresDefaultPort | quote }} - TEMPORAL_POSTGRES_PASSWORD: {{ .Values.multiwovenConfig.temporalPostgresPassword | quote }} - TEMPORAL_POSTGRES_USER: {{ .Values.multiwovenConfig.temporalPostgresUser | quote }} - TEMPORAL_POSTGRESQL_VERSION: {{ .Values.multiwovenConfig.temporalPostgresqlVersion | quote }} - TEMPORAL_ROOT_CERT: {{ .Values.multiwovenConfig.temporalRootCert | quote }} - TEMPORAL_TASK_QUEUE: {{ .Values.multiwovenConfig.temporalTaskQueue | quote }} - TEMPORAL_UI_VERSION: {{ .Values.multiwovenConfig.temporalUiVersion | quote }} - TEMPORAL_VERSION: {{ .Values.multiwovenConfig.temporalVersion | quote }} - TEMPORAL_WORKFLOW_THREAD_POOL_SIZE: {{ .Values.multiwovenConfig.temporalWorkflowThreadPoolSize | quote }} - UI_HOST: {{ .Values.multiwovenConfig.uiHost | quote }} - USER_EMAIL_VERIFICATION: {{ .Values.multiwovenConfig.userEmailVerification | quote }} - VITE_API_HOST: {{ .Values.multiwovenConfig.viteApiHost | quote }} - VITE_APPSIGNAL_PUSH_API_KEY: {{ .Values.multiwovenConfig.viteAppsignalPushApiKey | quote }} - VITE_BRAND_NAME: {{ .Values.multiwovenConfig.viteBrandName | quote }} - VITE_LOGO_URL: {{ .Values.multiwovenConfig.viteLogoUrl | quote }} - VITE_BRAND_COLOR: {{ .Values.multiwovenConfig.viteBrandColor | quote }} - VITE_BRAND_HOVER_COLOR: {{ .Values.multiwovenConfig.viteBrandHoverColor | quote }} - VITE_FAV_ICON_URL: {{ .Values.multiwovenConfig.viteFavIconUrl | quote }} diff --git a/charts/multiwoven/templates/multiwoven-server-hpa.yaml b/charts/multiwoven/templates/multiwoven-server-hpa.yaml deleted file mode 100644 index e604f01..0000000 --- a/charts/multiwoven/templates/multiwoven-server-hpa.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{ if .Values.hpa.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "chart.fullname" . }}-server-hpa - namespace: {{ .Values.kubernetesNamespace }} - labels: - {{- include "chart.labels" . | nindent 4 }} - app.kubernetes.io/component: server-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "chart.fullname" . }}-server - minReplicas: {{ .Values.hpa.multiwovenServer.minReplicas }} - maxReplicas: {{ .Values.hpa.multiwovenServer.maxReplicas }} - behavior: - scaleDown: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleDown.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenServer.behavior.scaleDown.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenServer.behavior.scaleDown.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleDown.policies.percentPolicy.periodSeconds }} - scaleUp: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.percentPolicy.periodSeconds }} - - type: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.podPolicy.type }} - value: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.podPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.podPolicy.periodSeconds }} - selectPolicy: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.selectPolicy }} - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenServer.cpuAverageUtilizationPercentageThreshold }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenServer.memoryAverageUtilizationPercentageThreshold }} -{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-solid-worker-hpa.yaml b/charts/multiwoven/templates/multiwoven-solid-worker-hpa.yaml deleted file mode 100644 index 56f69ee..0000000 --- a/charts/multiwoven/templates/multiwoven-solid-worker-hpa.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{ if .Values.hpa.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "chart.fullname" . }}-solid-worker-hpa - namespace: {{ .Values.kubernetesNamespace }} - labels: - {{- include "chart.labels" . | nindent 4 }} - app.kubernetes.io/component: worker-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "chart.fullname" . }}-solid-worker - minReplicas: {{ .Values.hpa.multiwovenSolidWorker.minReplicas }} - maxReplicas: {{ .Values.hpa.multiwovenSolidWorker.maxReplicas }} - behavior: - scaleDown: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleDown.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleDown.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleDown.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleDown.policies.percentPolicy.periodSeconds }} - scaleUp: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.percentPolicy.periodSeconds }} - - type: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.podPolicy.type }} - value: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.podPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.podPolicy.periodSeconds }} - selectPolicy: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.selectPolicy }} - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenSolidWorker.cpuAverageUtilizationPercentageThreshold }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenSolidWorker.memoryAverageUtilizationPercentageThreshold }} -{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-ui-hpa.yaml b/charts/multiwoven/templates/multiwoven-ui-hpa.yaml deleted file mode 100644 index 113bb13..0000000 --- a/charts/multiwoven/templates/multiwoven-ui-hpa.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{ if .Values.hpa.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "chart.fullname" . }}-ui-hpa - namespace: {{ .Values.kubernetesNamespace }} - labels: - {{- include "chart.labels" . | nindent 4 }} - app.kubernetes.io/component: ui-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "chart.fullname" . }}-ui - minReplicas: {{ .Values.hpa.multiwovenUI.minReplicas }} - maxReplicas: {{ .Values.hpa.multiwovenUI.maxReplicas }} - behavior: - scaleDown: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleDown.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenUI.behavior.scaleDown.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenUI.behavior.scaleDown.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleDown.policies.percentPolicy.periodSeconds }} - scaleUp: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.percentPolicy.periodSeconds }} - - type: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.podPolicy.type }} - value: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.podPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.podPolicy.periodSeconds }} - selectPolicy: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.selectPolicy }} - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenUI.cpuAverageUtilizationPercentageThreshold }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenUI.memoryAverageUtilizationPercentageThreshold }} -{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-worker-hpa.yaml b/charts/multiwoven/templates/multiwoven-worker-hpa.yaml deleted file mode 100644 index d2a250d..0000000 --- a/charts/multiwoven/templates/multiwoven-worker-hpa.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{ if .Values.hpa.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "chart.fullname" . }}-worker-hpa - namespace: {{ .Values.kubernetesNamespace }} - labels: - {{- include "chart.labels" . | nindent 4 }} - app.kubernetes.io/component: worker-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "chart.fullname" . }}-worker - minReplicas: {{ .Values.hpa.multiwovenWorker.minReplicas }} - maxReplicas: {{ .Values.hpa.multiwovenWorker.maxReplicas }} - behavior: - scaleDown: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleDown.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenWorker.behavior.scaleDown.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenWorker.behavior.scaleDown.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleDown.policies.percentPolicy.periodSeconds }} - scaleUp: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.percentPolicy.periodSeconds }} - - type: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.podPolicy.type }} - value: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.podPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.podPolicy.periodSeconds }} - selectPolicy: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.selectPolicy }} - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenWorker.cpuAverageUtilizationPercentageThreshold }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenWorker.memoryAverageUtilizationPercentageThreshold }} -{{ end }} \ No newline at end of file From a5a27a78fa0991028692526b279a546ddac1e52b Mon Sep 17 00:00:00 2001 From: AngeloAISquared Date: Mon, 18 Aug 2025 15:21:14 -0400 Subject: [PATCH 2/4] fix -- update branding on recent helm chart changes --- charts/aisquared/templates/aisquared-postgresql-deployment.yaml | 2 +- charts/aisquared/templates/aisquared-server-deployment.yaml | 2 +- charts/aisquared/templates/aisquared-ui-deployment.yaml | 2 +- charts/aisquared/templates/aisquared-worker-deployment.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/aisquared/templates/aisquared-postgresql-deployment.yaml b/charts/aisquared/templates/aisquared-postgresql-deployment.yaml index cf0803c..a901719 100644 --- a/charts/aisquared/templates/aisquared-postgresql-deployment.yaml +++ b/charts/aisquared/templates/aisquared-postgresql-deployment.yaml @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-postgresql {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenPostgresql.annotations }} + {{- with .Values.aisquaredPostgresql.annotations }} {{- toYaml . | nindent 4 }} {{- end }} spec: diff --git a/charts/aisquared/templates/aisquared-server-deployment.yaml b/charts/aisquared/templates/aisquared-server-deployment.yaml index 615bb30..2556d47 100644 --- a/charts/aisquared/templates/aisquared-server-deployment.yaml +++ b/charts/aisquared/templates/aisquared-server-deployment.yaml @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-server {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenServer.annotations }} + {{- with .Values.aisquaredServer.annotations }} {{ toYaml . | nindent 4 }} {{- end }} spec: diff --git a/charts/aisquared/templates/aisquared-ui-deployment.yaml b/charts/aisquared/templates/aisquared-ui-deployment.yaml index 916846f..fe604c7 100644 --- a/charts/aisquared/templates/aisquared-ui-deployment.yaml +++ b/charts/aisquared/templates/aisquared-ui-deployment.yaml @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-ui {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenUI.annotations }} + {{- with .Values.aisquaredUI.annotations }} {{ toYaml . | nindent 4 }} {{- end }} spec: diff --git a/charts/aisquared/templates/aisquared-worker-deployment.yaml b/charts/aisquared/templates/aisquared-worker-deployment.yaml index e141671..4bd1f15 100644 --- a/charts/aisquared/templates/aisquared-worker-deployment.yaml +++ b/charts/aisquared/templates/aisquared-worker-deployment.yaml @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-worker {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenWorker.annotations }} + {{- with .Values.aisquaredWorker.annotations }} {{ toYaml . | nindent 4 }} {{- end }} spec: From f253ae0fb91f98283b6e130c8896b9e3c710ac86 Mon Sep 17 00:00:00 2001 From: AngeloAISquared Date: Mon, 18 Aug 2025 15:21:56 -0400 Subject: [PATCH 3/4] fix -- update chart version --- charts/aisquared/Chart.yaml | 4 ++-- .../templates/aisquared-solid-worker-deployment.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/aisquared/Chart.yaml b/charts/aisquared/Chart.yaml index 0a5f13c..8f470c6 100644 --- a/charts/aisquared/Chart.yaml +++ b/charts/aisquared/Chart.yaml @@ -4,8 +4,8 @@ description: | AI Squared is an open-source reverse ETL tool, offering an alternative to qHightouch, Census, and similar platforms. 🔥 # kubeVersion: ">=1.16.0" type: application -version: 0.62.0 -appVersion: "0.62.0" +version: 0.63.0 +appVersion: "0.63.0" home: https://github.com/Multiwoven/multiwoven sources: - https://docs.squared.ai/open-source/guides/setup/helm diff --git a/charts/aisquared/templates/aisquared-solid-worker-deployment.yaml b/charts/aisquared/templates/aisquared-solid-worker-deployment.yaml index 48343fa..23804c3 100644 --- a/charts/aisquared/templates/aisquared-solid-worker-deployment.yaml +++ b/charts/aisquared/templates/aisquared-solid-worker-deployment.yaml @@ -8,7 +8,7 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-solid-worker {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenSolidWorker.annotations }} + {{- with .Values.aisquaredSolidWorker.annotations }} {{ toYaml . | nindent 4 }} {{- end }} spec: From 3a248268081900a2cc7b65af75498d2a3a3c2648 Mon Sep 17 00:00:00 2001 From: AngeloAISquared Date: Mon, 18 Aug 2025 15:33:05 -0400 Subject: [PATCH 4/4] fix -- undo bad find/replace job --- charts/aisquared/templates/aisquared-worker-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/aisquared/templates/aisquared-worker-deployment.yaml b/charts/aisquared/templates/aisquared-worker-deployment.yaml index 4bd1f15..da8f022 100644 --- a/charts/aisquared/templates/aisquared-worker-deployment.yaml +++ b/charts/aisquared/templates/aisquared-worker-deployment.yaml @@ -84,7 +84,7 @@ spec: env: - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} - - name: aisquared_WORKER_HEALTH_CHECK_PORT + - name: MULTIWOVEN_WORKER_HEALTH_CHECK_PORT value: {{ quote .Values.aisquaredWorker.healthPort }} {{ if .Values.secretsStore.enabled }} - name: DB_PASSWORD