Skip to content

Commit ce55237

Browse files
authored
fix repository bug (#807)
1 parent f1dbfbd commit ce55237

File tree

5 files changed

+6
-17
lines changed

5 files changed

+6
-17
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ artifacts: kustomize helm
235235
$(HELM) package --version $(GIT_TAG) --app-version $(GIT_TAG) charts/jobset -d artifacts/
236236
mv artifacts/jobset-$(GIT_TAG).tgz artifacts/jobset-chart-$(GIT_TAG).tgz
237237
# Revert the image changes
238-
$(YQ) e '.image.repository = "$(IMAGE_REGISTRY)/$(IMAGE_NAME)" | del(.image.tag) | .image.pullPolicy = "Always"' -i charts/jobset/values.yaml
238+
$(YQ) e '.image.repository = "$(IMAGE_REGISTRY)/$(IMAGE_NAME)" | .image.tag="main" | .image.pullPolicy = "Always"' -i charts/jobset/values.yaml
239239

240240
GOLANGCI_LINT = $(PROJECT_DIR)/bin/golangci-lint
241241
.PHONY: golangci-lint

charts/jobset/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall) for command docum
6060
| nameOverride | string | `""` | String to partially override release name. |
6161
| fullnameOverride | string | `""` | String to fully override release name. |
6262
| commonLabels | object | `{}` | Common labels to add to the jobset resources. |
63-
| image.registry | string | `"registry.k8s.io"` | Image registry. |
64-
| image.repository | string | `"jobset/jobset"` | Image repository. |
65-
| image.tag | string | If not set, the chart version will be used. | Image tag. |
66-
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
63+
| image.repository | string | `"us-central1-docker.pkg.dev/k8s-staging-images/jobset/jobset"` | Image repository. |
64+
| image.pullPolicy | string | `"Always"` | Image pull policy. |
6765
| image.pullSecrets | list | `[]` | Image pull secrets for private image registry. |
66+
| image.tag | string | `"main"` | |
6867
| controller.replicas | int | `1` | Replicas of the jobset controller deployment. |
6968
| controller.leaderElection.enable | bool | `true` | Whether to enable leader election for jobset controller. |
7069
| controller.clientConnection.qps | int | `500` | QPS is the number of queries per second allowed for K8S api server connection. |

charts/jobset/templates/_helpers.tpl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,3 @@ Selector labels of the jobset resources.
6666
app.kubernetes.io/name: {{ include "jobset.name" . }}
6767
app.kubernetes.io/instance: {{ .Release.Name }}
6868
{{- end }}
69-
70-
{{/*
71-
Create the name of jobset image.
72-
*/}}
73-
{{- define "jobset.image" -}}
74-
{{ printf "%s/%s:%s" .Values.image.registry .Values.image.repository (.Values.image.tag | default .Chart.Version) }}
75-
{{- end -}}

charts/jobset/templates/controller/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
spec:
3636
containers:
3737
- name: controller
38-
image: {{ include "jobset.controller.image" . }}
38+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3939
{{- with .Values.image.pullPolicy }}
4040
imagePullPolicy: {{ . }}
4141
{{- end }}

charts/jobset/values.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,13 @@ fullnameOverride: ""
2222
# -- Common labels to add to the jobset resources.
2323
commonLabels: {}
2424
image:
25-
# -- Image registry.
26-
registry: registry.k8s.io
2725
# -- Image repository.
28-
repository: us-central1-docker.pkg.dev/k8s-staging-images/jobset/
26+
repository: us-central1-docker.pkg.dev/k8s-staging-images/jobset/jobset
2927
# -- Image pull policy.
3028
pullPolicy: Always
3129
# -- Image pull secrets for private image registry.
3230
pullSecrets: []
3331
# - name: <secret-name>
34-
3532
tag: main
3633
controller:
3734
# -- Replicas of the jobset controller deployment.

0 commit comments

Comments
 (0)