Skip to content

Commit fd8108e

Browse files
committed
chore(builder): canonical charts naming
1 parent 72e394e commit fd8108e

7 files changed

Lines changed: 26 additions & 26 deletions

File tree

.drone/drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ steps:
125125
- name: generate chart
126126
commands:
127127
- IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
128-
- sed -i "s/image_tag:\ \"canary\"/image_tag:\ $IMAGE_TAG/g" charts/builder/values.yaml
128+
- sed -i "s/imageTag:\ \"canary\"/imageTag:\ $IMAGE_TAG/g" charts/builder/values.yaml
129129
- helm package charts/builder --version ${DRONE_TAG:-v1.0.0}
130130
- curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@builder-${DRONE_TAG:-v1.0.0}.tgz "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
131131
environment:

charts/builder/templates/builder-clusterrole.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if (.Values.global.use_rbac) -}}
1+
{{- if (.Values.global.rbac) -}}
22
kind: ClusterRole
33
apiVersion: rbac.authorization.k8s.io/v1
44
metadata:

charts/builder/templates/builder-clusterrolebinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if (.Values.global.use_rbac) -}}
1+
{{- if (.Values.global.rbac) -}}
22
kind: ClusterRoleBinding
33
apiVersion: rbac.authorization.k8s.io/v1
44
metadata:

charts/builder/templates/builder-deployment.yaml

Lines changed: 13 additions & 13 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: 1
1111
strategy:
@@ -25,55 +25,55 @@ spec:
2525
initContainers:
2626
- name: drycc-builder-init
2727
image: docker.io/drycc/python-dev:latest
28-
imagePullPolicy: {{.Values.image_pull_policy}}
28+
imagePullPolicy: {{.Values.imagePullPolicy}}
2929
command:
3030
- netcat
3131
- -v
3232
- -a
3333
- $(DRYCC_MINIO_SERVICE_HOST):$(DRYCC_MINIO_SERVICE_PORT)
3434
containers:
3535
- name: drycc-builder
36-
image: {{.Values.image_registry}}/{{.Values.image_org}}/builder:{{.Values.image_tag}}
37-
imagePullPolicy: {{.Values.image_pull_policy}}
36+
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/builder:{{.Values.imageTag}}
37+
imagePullPolicy: {{.Values.imagePullPolicy}}
3838
ports:
3939
- containerPort: 2223
4040
name: ssh
4141
- containerPort: 8092
4242
name: healthsrv
43-
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
43+
{{- if or (.Values.limitsCpu) (.Values.limitsMemory)}}
4444
resources:
4545
limits:
46-
{{- if (.Values.limits_cpu) }}
47-
cpu: {{.Values.limits_cpu}}
46+
{{- if (.Values.limitsCpu) }}
47+
cpu: {{.Values.limitsCpu}}
4848
{{- end}}
49-
{{- if (.Values.limits_memory) }}
50-
memory: {{.Values.limits_memory}}
49+
{{- if (.Values.limitsMemory) }}
50+
memory: {{.Values.limitsMemory}}
5151
{{- end}}
5252
{{- end}}
5353
env:
5454
# NOTE(bacongobbler): use drycc/registry_proxy to work around Docker --insecure-registry requirements
5555
- name: "DRYCC_REGISTRY_PROXY_HOST"
5656
value: "127.0.0.1"
5757
- name: "DRYCC_REGISTRY_PROXY_PORT"
58-
value: "{{ .Values.global.registry_proxy_port }}"
58+
value: "{{ .Values.global.registryProxyPort }}"
5959
- name: "HEALTH_SERVER_PORT"
6060
value: "8092"
6161
- name: "EXTERNAL_PORT"
6262
value: "2223"
6363
- name: BUILDER_STORAGE
6464
value: "{{ .Values.global.storage }}"
6565
- name: "DRYCC_REGISTRY_LOCATION"
66-
value: "{{ .Values.global.registry_location }}"
66+
value: "{{ .Values.global.registryLocation }}"
6767
- name: "TTL_SECONDS_AFTER_FINISHED"
68-
value: "{{ .Values.global.ttl_seconds_after_finished }}"
68+
value: "{{ .Values.global.ttlSecondsAfterFinished }}"
6969
# Set GIT_LOCK_TIMEOUT to number of minutes you want to wait to git push again to the same repository
7070
- name: "GIT_LOCK_TIMEOUT"
7171
value: "30"
7272
- name: IMAGEBUILDER_IMAGE_PULL_POLICY
7373
valueFrom:
7474
configMapKeyRef:
7575
name: imagebuilder-config
76-
key: image_pull_policy
76+
key: imagePullPolicy
7777
# This var needs to be passed so that the minio client (https://github.com/minio/mc) will work in Alpine linux
7878
- name: "DOCKERIMAGE"
7979
value: "1"

charts/builder/templates/builder-role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if (.Values.global.use_rbac) -}}
1+
{{- if (.Values.global.rbac) -}}
22
kind: Role
33
apiVersion: rbac.authorization.k8s.io/v1
44
metadata:

charts/builder/templates/builder-rolebinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if (.Values.global.use_rbac) -}}
1+
{{- if (.Values.global.rbac) -}}
22
kind: RoleBinding
33
apiVersion: rbac.authorization.k8s.io/v1
44
metadata:

charts/builder/values.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
image_org: "drycc"
2-
image_pull_policy: "Always"
3-
image_tag: "canary"
4-
image_registry: "docker.io"
1+
imageOrg: "drycc"
2+
imagePullPolicy: "Always"
3+
imageTag: "canary"
4+
imageRegistry: "docker.io"
55
service:
66
# Service type default to LoadBalancer
77
type: ClusterIP
88
# If service.type is not set to NodePort, the following statement will be ignored.
99
nodePort: ""
10-
# limits_cpu: "100m"
11-
# limits_memory: "50Mi"
10+
# limitsCpu: "100m"
11+
# limitsMemory: "50Mi"
1212
# builder_pod_node_selector: "disk:ssd"
1313

1414
# When the TTL controller cleans up the Job. default: 6h
1515
# see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#ttl-mechanism-for-finished-jobs
16-
ttl_seconds_after_finished: 21600
16+
ttlSecondsAfterFinished: 21600
1717

1818
global:
1919
# Role-Based Access Control for Kubernetes >= 1.5
20-
use_rbac: false
20+
rbac: false

0 commit comments

Comments
 (0)