diff --git a/.woodpecker.yml b/.woodpecker.yml index 7399b70..1f79e0b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -14,11 +14,15 @@ steps: - helm package -u charts/$${CI_REPO_NAME} --version $CHART_VERSION --app-version $APP_VERSION - echo $CONTAINER_PASSWORD | helm registry login $DRYCC_REGISTRY -u $CONTAINER_USERNAME --password-stdin - helm push $${CI_REPO_NAME}-$CHART_VERSION.tgz oci://$DRYCC_REGISTRY/$([ -z $CI_COMMIT_TAG ] && echo charts-testing || echo charts) - secrets: - - dev_registry - - drycc_registry - - container_username - - container_password + environment: + DEV_REGISTRY: + from_secret: dev_registry + DRYCC_REGISTRY: + from_secret: drycc_registry + CONTAINER_USERNAME: + from_secret: container_username + CONTAINER_PASSWORD: + from_secret: container_password when: event: - push diff --git a/charts/gateway/templates/gateway.yaml b/charts/gateway/templates/gateway.yaml index 1eb0292..1d01e76 100644 --- a/charts/gateway/templates/gateway.yaml +++ b/charts/gateway/templates/gateway.yaml @@ -7,7 +7,7 @@ metadata: cert-manager.io/issuer: drycc-issuer {{- end }} spec: - gatewayClassName: {{ .Values.global.gatewayClass }} + gatewayClassName: {{ .Values.gatewayClass }} listeners: {{- range $index, $app := .Values.apps }} - name: {{ printf "%s-%v-%d" $app.protocol $app.port $index | lower }} diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 5a8f9e8..55761d1 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -1,3 +1,7 @@ + +# GatewayClass is cluster-scoped resource defined by the infrastructure provider. +gatewayClass: "" + # acme configuration takes effect if and only if certManagerEnabled is true acme: server: https://acme-v02.api.letsencrypt.org/directory @@ -20,13 +24,13 @@ apps: services: - name: drycc-controller-api port: 80 - - name: drycc-rabbitmq + - name: drycc-grafana port: 80 - hostname: drycc-rabbitmq.{{ .Values.global.platformDomain }} + hostname: drycc-grafana.{{ .Values.global.platformDomain }} protocol: HTTP services: - - name: drycc-rabbitmq - port: 15672 + - name: drycc-grafana + port: 80 - name: drycc-passport port: 80 hostname: drycc-passport.{{ .Values.global.platformDomain }} @@ -34,25 +38,24 @@ apps: services: - name: drycc-passport port: 80 - - name: drycc-prometheus + - name: drycc-storage port: 80 - hostname: drycc-prometheus.{{ .Values.global.platformDomain }} + hostname: drycc-storage.{{ .Values.global.platformDomain }} protocol: HTTP services: - - name: drycc-prometheus - port: 9090 - - name: drycc-monitor-grafana + - name: drycc-storage + port: 9000 + - name: drycc-storage-console port: 80 - hostname: drycc-monitor-grafana.{{ .Values.global.platformDomain }} + hostname: drycc-storage-console.{{ .Values.global.platformDomain }} protocol: HTTP services: - - name: drycc-monitor-grafana - port: 80 + - name: drycc-storage + port: 9001 global: # Admin email, used for each component to send email to administrator email: "drycc@drycc.cc" - gatewayClass: "" # The publicly resolvable hostname to build your cluster with. # # This will be the hostname that is used to build endpoints such as "drycc.$HOSTNAME"