Skip to content

Commit b1215e9

Browse files
committed
chore(registry): canonical charts naming
1 parent 6fb861f commit b1215e9

5 files changed

Lines changed: 19 additions & 19 deletions

File tree

.drone/drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ steps:
115115
- name: generate chart
116116
commands:
117117
- IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo ${DRONE_TAG:1} || echo \"canary\")
118-
- sed -i "s/image_tag:\ \"canary\"/image_tag:\ $IMAGE_TAG/g" charts/registry/values.yaml
118+
- sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/registry/values.yaml
119119
- helm package charts/registry --version ${DRONE_TAG:-v1.0.0}
120120
- curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@registry-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
121121
environment:

charts/registry/templates/registry-deployment.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
{{- if eq .Values.global.registry_location "on-cluster" }}
1+
{{- if eq .Values.global.registryLocation "on-cluster" }}
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
55
name: drycc-registry
66
labels:
77
heritage: drycc
88
annotations:
9-
component.drycc.cc/version: {{ .Values.image_tag }}
9+
component.drycc.cc/version: {{ .Values.imageTag }}
1010
spec:
1111
replicas: 1
1212
strategy:
@@ -26,24 +26,24 @@ spec:
2626
initContainers:
2727
- name: drycc-registry-init
2828
image: docker.io/drycc/python-dev:latest
29-
imagePullPolicy: {{.Values.image_pull_policy}}
29+
imagePullPolicy: {{.Values.imagePullPolicy}}
3030
command:
3131
- netcat
3232
- -v
3333
- -a
3434
- $(DRYCC_MINIO_SERVICE_HOST):$(DRYCC_MINIO_SERVICE_PORT)
3535
containers:
3636
- name: drycc-registry
37-
image: {{.Values.image_registry}}/{{.Values.image_org}}/registry:{{.Values.image_tag}}
38-
imagePullPolicy: {{.Values.image_pull_policy}}
39-
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
37+
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/registry:{{.Values.imageTag}}
38+
imagePullPolicy: {{.Values.imagePullPolicy}}
39+
{{- if or (.Values.limitsCpu) (.Values.limitsMemory)}}
4040
resources:
4141
limits:
42-
{{- if (.Values.limits_cpu) }}
43-
cpu: {{.Values.limits_cpu}}
42+
{{- if (.Values.limitsCpu) }}
43+
cpu: {{.Values.limitsCpu}}
4444
{{- end}}
45-
{{- if (.Values.limits_memory) }}
46-
memory: {{.Values.limits_memory}}
45+
{{- if (.Values.limitsMemory) }}
46+
memory: {{.Values.limitsMemory}}
4747
{{- end}}
4848
{{- end}}
4949
livenessProbe:

charts/registry/templates/registry-service-account.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if eq .Values.global.registry_location "on-cluster" }}
1+
{{- if eq .Values.global.registryLocation "on-cluster" }}
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:

charts/registry/templates/registry-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if eq .Values.global.registry_location "on-cluster" }}
1+
{{- if eq .Values.global.registryLocation "on-cluster" }}
22
apiVersion: v1
33
kind: Service
44
metadata:

charts/registry/values.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
image_org: "drycc"
2-
image_pull_policy: "Always"
3-
image_tag: "canary"
4-
image_registry: "docker.io"
5-
# limits_cpu: "100m"
6-
# limits_memory: "50Mi"
1+
imageOrg: "drycc"
2+
imagePullPolicy: "Always"
3+
imageTag: "canary"
4+
imageRegistry: "docker.io"
5+
# limitsCpu: "100m"
6+
# limitsMemory: "50Mi"

0 commit comments

Comments
 (0)