Skip to content

Commit e1ecea1

Browse files
committed
Apply the ubbagent patch
Signed-off-by: Richard Wall <[email protected]>
1 parent e0c799e commit e1ecea1

File tree

2 files changed

+53
-3
lines changed

2 files changed

+53
-3
lines changed

chart/jetstack-secure-gcm/charts/cert-manager/templates/deployment.yaml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,15 @@ spec:
6363
{{- toYaml .Values.securityContext | nindent 8 }}
6464
{{- end }}
6565
{{- end }}
66-
{{- with .Values.volumes }}
6766
volumes:
68-
{{- toYaml . | nindent 8 }}
69-
{{- end }}
67+
# GCM-specific volume added by Mael. DO NOT REMOVE when updating the
68+
# Helm chart.
69+
- name: ubbagent-config
70+
configMap:
71+
name: ubbagent-config
72+
{{- if .Values.volumes }}
73+
{{ toYaml .Values.volumes | indent 8 }}
74+
{{- end }}
7075
containers:
7176
- name: {{ .Chart.Name }}
7277
{{- with .Values.image }}
@@ -146,6 +151,40 @@ spec:
146151
resources:
147152
{{- toYaml . | nindent 12 }}
148153
{{- end }}
154+
155+
# GCM-specific container added by Mael. DO NOT REMOVE when updating the
156+
# Helm chart.
157+
- name: ubbagent
158+
image: "{{ .Values.ubbagent.image.repository }}:{{ .Values.ubbagent.image.tag }}"
159+
env:
160+
- name: AGENT_CONFIG_FILE
161+
value: "/etc/ubbagent/config.yaml"
162+
- name: AGENT_LOCAL_PORT
163+
value: "4567"
164+
- name: AGENT_ENCODED_KEY
165+
valueFrom:
166+
secretKeyRef:
167+
name: {{ default (print (.Release.Name | trunc 63 | trimSuffix "-") "-license") .Values.ubbagent.reportingSecretName }}
168+
key: reporting-key
169+
- name: AGENT_CONSUMER_ID
170+
valueFrom:
171+
secretKeyRef:
172+
name: {{ default (print (.Release.Name | trunc 63 | trimSuffix "-") "-license") .Values.ubbagent.reportingSecretName }}
173+
key: consumer-id
174+
volumeMounts:
175+
- name: ubbagent-config
176+
mountPath: /etc/ubbagent
177+
resources:
178+
limits:
179+
cpu: 200m
180+
memory: 100Mi
181+
requests:
182+
cpu: 10m
183+
memory: 20Mi
184+
securityContext:
185+
runAsUser: 1001
186+
runAsNonRoot: true
187+
149188
{{- with .Values.nodeSelector }}
150189
nodeSelector:
151190
{{- toYaml . | nindent 8 }}

chart/jetstack-secure-gcm/charts/cert-manager/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# GCM-specific Helm values added by Mael. DO NOT REMOVE when updating the
2+
# Helm chart.
3+
ubbagent:
4+
# By default, the reportingSecretName will be set to
5+
# ${helm-release}-license.
6+
#
7+
# reportingSecretName: chartname-license
8+
image:
9+
repository: gcr.io/cloud-marketplace-tools/metering/ubbagent
10+
tag: latest
11+
112
# Default values for cert-manager.
213
# This is a YAML-formatted file.
314
# Declare variables to be passed into your templates.

0 commit comments

Comments
 (0)