Skip to content

Commit 2808efe

Browse files
committed
chore(helmbroker): canonical charts naming
1 parent 9480b03 commit 2808efe

8 files changed

Lines changed: 34 additions & 34 deletions

File tree

.drone/drone.yml

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

charts/helmbroker/templates/helmbroker-celery.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ metadata:
55
labels:
66
heritage: drycc
77
annotations:
8-
component.drycc.cc/version: {{ .Values.image_tag }}
8+
component.drycc.cc/version: {{ .Values.imageTag }}
99
spec:
10-
replicas: {{ .Values.celery_replicas }}
10+
replicas: {{ .Values.celeryReplicas }}
1111
strategy:
1212
rollingUpdate:
1313
maxSurge: 1
@@ -24,8 +24,8 @@ spec:
2424
serviceAccount: drycc-helmbroker
2525
containers:
2626
- name: drycc-helmbroker-celery
27-
image: {{.Values.image_registry}}/{{.Values.image_org}}/helmbroker:{{.Values.image_tag}}
28-
imagePullPolicy: {{.Values.image_pull_policy}}
27+
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/helmbroker:{{.Values.imageTag}}
28+
imagePullPolicy: {{.Values.imagePullPolicy}}
2929
command:
3030
- /bin/bash
3131
- -c

charts/helmbroker/templates/helmbroker-certificate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.cert_manager_enabled }}
1+
{{- if .Values.certManagerEnabled }}
22
apiVersion: cert-manager.io/v1
33
kind: Certificate
44
metadata:
@@ -9,7 +9,7 @@ spec:
99
name: drycc-cluster-issuer
1010
kind: ClusterIssuer
1111
dnsNames:
12-
- drycc-helmbroker.{{ .Values.platform_domain }}
12+
- drycc-helmbroker.{{ .Values.platformDomain }}
1313
privateKey:
1414
rotationPolicy: Always
1515
{{- end }}

charts/helmbroker/templates/helmbroker-cm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
labels:
77
heritage: drycc
88
annotations:
9-
component.drycc.cc/version: {{ .Values.image_tag }}
9+
component.drycc.cc/version: {{ .Values.imageTag }}
1010
data:
1111
repositories: |
1212
{{- range .Values.repositories }}

charts/helmbroker/templates/helmbroker-cronjob-daily.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ metadata:
55
labels:
66
heritage: drycc
77
annotations:
8-
component.drycc.cc/version: {{ .Values.image_tag }}
8+
component.drycc.cc/version: {{ .Values.imageTag }}
99
spec:
1010
schedule: "0 0 * * *"
11-
concurrencyPolicy: {{ .Values.concurrency_policy }}
11+
concurrencyPolicy: {{ .Values.concurrencyPolicy }}
1212
successfulJobsHistoryLimit: 1
1313
failedJobsHistoryLimit: 1
1414
jobTemplate:
@@ -18,8 +18,8 @@ spec:
1818
restartPolicy: OnFailure
1919
serviceAccount: drycc-helmbroker
2020
containers:
21-
- image: {{.Values.image_registry}}/{{.Values.image_org}}/helmbroker:{{.Values.image_tag}}
22-
imagePullPolicy: {{.Values.image_pull_policy}}
21+
- image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/helmbroker:{{.Values.imageTag}}
22+
imagePullPolicy: {{.Values.imagePullPolicy}}
2323
name: drycc-helmbroker-cleaner
2424
command:
2525
- /bin/bash

charts/helmbroker/templates/helmbroker-deployment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
heritage: drycc
77
annotations:
8-
component.drycc.cc/version: {{ .Values.image_tag }}
8+
component.drycc.cc/version: {{ .Values.imageTag }}
99
spec:
1010
replicas: {{ .Values.replicas }}
1111
strategy:
@@ -24,8 +24,8 @@ spec:
2424
serviceAccount: drycc-helmbroker
2525
initContainers:
2626
- name: loader
27-
image: {{.Values.image_registry}}/{{.Values.image_org}}/helmbroker:{{.Values.image_tag}}
28-
imagePullPolicy: {{.Values.image_pull_policy}}
27+
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/helmbroker:{{.Values.imageTag}}
28+
imagePullPolicy: {{.Values.imagePullPolicy}}
2929
command:
3030
- /bin/bash
3131
- -c
@@ -35,8 +35,8 @@ spec:
3535
{{- include "helmbroker.volumeMounts" . | indent 10 }}
3636
containers:
3737
- name: drycc-helmbroker
38-
image: {{.Values.image_registry}}/{{.Values.image_org}}/helmbroker:{{.Values.image_tag}}
39-
imagePullPolicy: {{.Values.image_pull_policy}}
38+
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/helmbroker:{{.Values.imageTag}}
39+
imagePullPolicy: {{.Values.imagePullPolicy}}
4040
livenessProbe:
4141
httpGet:
4242
path: /healthz

charts/helmbroker/templates/helmbroker-ingress.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ metadata:
99
heritage: "{{ .Release.Service }}"
1010
annotations:
1111
kubernetes.io/tls-acme: "true"
12-
{{- if not (eq .Values.ingress_class "") }}
13-
kubernetes.io/ingress.class: "{{ .Values.ingress_class }}"
12+
{{- if not (eq .Values.ingressClass "") }}
13+
kubernetes.io/ingress.class: "{{ .Values.ingressClass }}"
1414
{{- end }}
1515
spec:
1616
rules:
17-
- host: drycc-helmbroker.{{ .Values.platform_domain }}
17+
- host: drycc-helmbroker.{{ .Values.platformDomain }}
1818
http:
1919
paths:
2020
- pathType: Prefix
21-
{{- if eq .Values.ingress_class "gce" "alb" }}
21+
{{- if eq .Values.ingressClass "gce" "alb" }}
2222
path: /*
2323
{{- else }}{{/* Has annotations but ingress class is not "gce" nor "alb" */}}
2424
path: /
@@ -28,9 +28,9 @@ spec:
2828
name: drycc-helmbroker
2929
port:
3030
number: 80
31-
{{- if .Values.cert_manager_enabled }}
31+
{{- if .Values.certManagerEnabled }}
3232
tls:
3333
- secretName: drycc-helmbroker-certificate-auto
3434
hosts:
35-
- drycc-helmbroker.{{ .Values.platform_domain }}
35+
- drycc-helmbroker.{{ .Values.platformDomain }}
3636
{{- end }}

charts/helmbroker/values.yaml

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

99
## config the helm-broker repositories
1010
repositories:
1111
- name: drycc-helm-broker
1212
url: https://github.com/drycc/addons/releases/download/latest/index.yaml
1313

14-
celery_replicas: 1
14+
celeryReplicas: 1
1515

1616
# broker_credentials:
1717
# Optional Usernames and passwords that will be required to communicate with service broker
@@ -30,15 +30,15 @@ persistence:
3030
storageClass: ""
3131
volumeName: ""
3232

33-
ingress_class: ""
33+
ingressClass: ""
3434
# A domain name consists of one or more parts.
3535
# Periods (.) are used to separate these parts.
3636
# Each part must be 1 to 63 characters in length and can contain lowercase letters, digits, and hyphens (-).
3737
# It must start and end with a lowercase letter or digit.
38-
cluster_domain: "cluster.local"
38+
clusterDomain: "cluster.local"
3939
# The public resolvable hostname to build your cluster with.
4040
#
4141
# This will be the hostname that is used to build endpoints such as "drycc-helmbroker.$HOSTNAME"
42-
platform_domain: ""
42+
platformDomain: ""
4343
# Whether cert_manager is enabled to automatically generate helmbroker certificates
44-
cert_manager_enabled: true
44+
certManagerEnabled: true

0 commit comments

Comments
 (0)