Skip to content

Commit

Permalink
Fixed the problem that the image tag fails to use the default value
Browse files Browse the repository at this point in the history
  • Loading branch information
mason committed Oct 17, 2024
1 parent 061f2cb commit 4e841a3
Show file tree
Hide file tree
Showing 29 changed files with 32 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
command: [ "/bin/sh", "-c", "until nc -z {{ include "server.internal.domain" . }} {{ include "server.internal.port" . }}; do echo 'Waiting for server can be connected'; sleep 2; done" ]
containers:
- name: accounting
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion (default .Values.global.server.image.tag .Values.global.accounting.image.tag) }}
image: {{ $conf.image.repository }}:{{ .Values.global.server.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/starhub-bin/starhub", "accounting", "launch" ]
ports:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/charts/csghub/charts/accounting/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ image:
## Specifies the location of the Accounting Docker image in the Accounting.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_server
## Defines the specific version of the Accounting image to use.
tag: v0.9.3
# tag: v0.9.3
## Determines how the image should be pulled from the Accounting.
pullPolicy: "IfNotPresent"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
{{- end }}
containers:
- name: builder
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.builder.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.builder.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
ports:
- containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/charts/csghub/charts/builder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ image:
## Specifies the location of the Builder Docker image in the Builder.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_space_builder
## Defines the specific version of the Builder image to use.
tag: v0.9.3
# tag: v0.9.3
## Determines how the image should be pulled from the Builder.
pullPolicy: "IfNotPresent"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ spec:
{{- end }}
containers:
- name: casdoor
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.casdoor.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.casdoor.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
ports:
- containerPort: 8000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
{{- end }}
containers:
- name: coredns
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.coredns.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.coredns.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
args: [ "-conf", "/var/opt/coredns/corefile" ]
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
{{- end }}
containers:
- name: gitaly
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.gitaly.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.gitaly.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/bin/sh", "-c", "/scripts/process-wrapper" ]
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
{{- end }}
containers:
- name: gitea
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.gitea.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.gitea.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
ports:
- containerPort: 3001
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/charts/csghub/charts/gitea/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ image:
## Specifies the location of the Gitea Docker image in the Gitea.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_git
## Defines the specific version of the Gitea image to use.
tag: v0.9.3
# tag: v0.7.0
## Determines how the image should be pulled from the Gitea.
pullPolicy: "IfNotPresent"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
readOnly: false
containers:
- name: gitlab-shell
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.gitlabShell.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.gitlabShell.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/bin/bash", "-c", "cp /opt/gitlab-shell/{config.yml,.gitlab_shell_secret} /srv/gitlab-shell/ && /scripts/process-wrapper" ]
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
{{- end }}
containers:
- name: minio
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.minio.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.minio.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
args: ["server", "/data", "--console-address", ":9001"]
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
command: [ "/bin/sh", "-c", "until nc -z {{ include "server.internal.domain" . }} {{ include "server.internal.port" . }}; do echo 'Waiting for server can be connected'; sleep 2; done" ]
containers:
- name: mirror-repo
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion (default .Values.global.server.image.tag .Values.global.mirror.image.tag) }}
image: {{ $conf.image.repository }}:{{ .Values.global.mirror.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/bin/sh", "-c", "update-ca-certificates && /starhub-bin/starhub mirror repo-sync" ]
envFrom:
Expand Down Expand Up @@ -103,7 +103,7 @@ spec:
securityContext:
{{- $conf.podSecurityContext | toYaml | nindent 12 }}
- name: mirror-lfs
image: {{ $conf.image.repository }}:{{ $conf.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.mirror.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/bin/sh", "-c", "update-ca-certificates && /starhub-bin/starhub mirror lfs-sync" ]
envFrom:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/charts/csghub/charts/mirror/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ image:
## Specifies the location of the Nats Docker image in the registry.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_server
## Defines the specific version of the Nats image to use.
tag: v0.9.3
# tag: v0.9.3
## Determines how the image should be pulled from the registry.
pullPolicy: "IfNotPresent"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
{{- end }}
containers:
- name: nats
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.nats.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.nats.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
ports:
- containerPort: 4222
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
command: [ "/bin/sh", "-c", "until nc -z {{ include "server.internal.domain" . }} {{ include "server.internal.port" . }}; do echo 'Waiting for server can be connected'; sleep 2; done" ]
containers:
- name: portal
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.portal.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.portal.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/bin/sh", "-c", "/myapp/csghub-portal migration init && /myapp/csghub-portal migration migrate && /myapp/csghub-portal start server" ]
ports:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/charts/csghub/charts/portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ image:
## Specifies the location of the Runner Docker image in the Runner.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_portal
## Defines the specific version of the Runner image to use.
tag: v0.9.3
# tag: v0.9.3
## Determines how the image should be pulled from the Runner.
pullPolicy: "IfNotPresent"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
{{- end }}
containers:
- name: postgresql
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.postgresql.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.postgresql.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
ports:
- containerPort: 5432
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
command: [ "/bin/sh", "-c", "until nc -z {{ include "server.internal.domain" . }} {{ include "server.internal.port" . }}; do echo 'Waiting for server can be connected'; sleep 2; done" ]
containers:
- name: proxy
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion (default .Values.global.server.image.tag .Values.global.proxy.image.tag) }}
image: {{ $conf.image.repository }}:{{ .Values.global.server.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/bin/sh", "-c", "update-ca-certificates && /starhub-bin/starhub start rproxy" ]
ports:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/charts/csghub/charts/proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ image:
## Specifies the location of the Runner Docker image in the Runner.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_server
## Defines the specific version of the Runner image to use.
tag: v0.9.3
# tag: v0.9.3
## Determines how the image should be pulled from the Runner.
pullPolicy: "IfNotPresent"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
{{- end }}
containers:
- name: redis
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.redis.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.redis.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
args: [ "--requirepass", "$(REDIS_PASSWD)", "--save", "60 1000", "--appendonly", "yes" ]
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
{{- end }}
containers:
- name: registry
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.registry.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.registry.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
ports:
- containerPort: 5000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
command: [ "/bin/sh", "-c", "until nc -z {{ include "server.internal.domain" . }} {{ include "server.internal.port" . }}; do echo 'Waiting for server can be connected'; sleep 2; done" ]
containers:
- name: runner
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion (default .Values.global.server.image.tag .Values.global.runner.image.tag) }}
image: {{ $conf.image.repository }}:{{ .Values.global.server.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/starhub-bin/starhub", "deploy", "runner" ]
ports:
Expand Down Expand Up @@ -120,8 +120,8 @@ spec:
{{- $exists := lookup "v1" "Secret" .Release.Namespace .Values.global.runner.kubeConfig.secretName }}
{{- if $exists }}
secretName: {{ .Values.global.runner.kubeConfig.secretName }}
{{- else }}
{{ fail "You must specify a kube config secret (you need to create it yourself)" }}
{{/* {{- else }}*/}}
{{/* {{ fail "You must specify a kube config secret (you need to create it yourself)" }}*/}}
{{- end }}
- name: docker-daemon
configMap:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/charts/csghub/charts/runner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ image:
## Specifies the location of the Runner Docker image in the Runner.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_server
## Defines the specific version of the Runner image to use.
tag: v0.9.3
# tag: v0.9.3
## Determines how the image should be pulled from the Runner.
pullPolicy: "IfNotPresent"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ spec:
{{- end }}
containers:
- name: server
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.server.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.server.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/bin/sh", "-c", "update-ca-certificates && /starhub-bin/scripts/init.sh" ]
ports:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/charts/csghub/charts/server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ image:
## Specifies the location of the Server Docker image in the Server.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_server
## Defines the specific version of the Server image to use.
tag: v0.9.3
# tag: v0.9.3
## Determines how the image should be pulled from the Server.
pullPolicy: "IfNotPresent"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
command: [ "/bin/sh", "-c", "until nc -z {{ include "server.internal.domain" . }} {{ include "server.internal.port" . }}; do echo 'Waiting for server can be connected'; sleep 2; done" ]
containers:
- name: user
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion (default .Values.global.server.image.tag .Values.global.user.image.tag) }}
image: {{ $conf.image.repository }}:{{ .Values.global.server.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/bin/sh", "-c", "update-ca-certificates && /starhub-bin/starhub user launch" ]
ports:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/charts/csghub/charts/user/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ image:
## Specifies the location of the Server Docker image in the Server.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_server
## Defines the specific version of the Server image to use.
tag: v0.9.3
# tag: v0.9.3
## Determines how the image should be pulled from the Server.
pullPolicy: "IfNotPresent"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
mountPath: /scripts
containers:
- name: watcher
image: {{ $conf.image.repository }}:{{ default .Chart.AppVersion .Values.global.watcher.image.tag }}
image: {{ $conf.image.repository }}:{{ .Values.global.watcher.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ $conf.image.pullPolicy }}
env:
- name: NAMESPACE
Expand Down
1 change: 1 addition & 0 deletions helm-chart/charts/csghub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ global:
## Specifies the location of the Builder Docker image in the Builder.
repository: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/csghub_space_builder
## Defines the specific version of the Builder image to use.
## Please keep this default
tag: v0.9.3
## Determines how the image should be pulled from the Builder.
pullPolicy: "IfNotPresent"
Expand Down

0 comments on commit 4e841a3

Please sign in to comment.