Skip to content

Commit d19d7c8

Browse files
authored
fix(manifests): use secretKeyRef instead of configMapKeyRef for QUAY_WEBHOOK_SECRET; add resource request and limit (#1279)
Signed-off-by: Cheng Fang <[email protected]>
1 parent 2ba14b5 commit d19d7c8

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

manifests/base/deployment/argocd-image-updater-deployment.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ spec:
127127
optional: true
128128
- name: QUAY_WEBHOOK_SECRET
129129
valueFrom:
130-
configMapKeyRef:
130+
secretKeyRef:
131131
name: argocd-image-updater-secret
132132
key: webhook.quay-secret
133133
optional: true
@@ -170,6 +170,13 @@ spec:
170170
port: 8080
171171
initialDelaySeconds: 3
172172
periodSeconds: 30
173+
resources:
174+
limits:
175+
cpu: 500m
176+
memory: 1024Mi
177+
requests:
178+
cpu: 250m
179+
memory: 512Mi
173180
securityContext:
174181
allowPrivilegeEscalation: false
175182
capabilities:

manifests/install.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ spec:
235235
optional: true
236236
- name: QUAY_WEBHOOK_SECRET
237237
valueFrom:
238-
configMapKeyRef:
238+
secretKeyRef:
239239
key: webhook.quay-secret
240240
name: argocd-image-updater-secret
241241
optional: true
@@ -280,6 +280,13 @@ spec:
280280
port: 8080
281281
initialDelaySeconds: 3
282282
periodSeconds: 30
283+
resources:
284+
limits:
285+
cpu: 500m
286+
memory: 1024Mi
287+
requests:
288+
cpu: 250m
289+
memory: 512Mi
283290
securityContext:
284291
allowPrivilegeEscalation: false
285292
capabilities:

0 commit comments

Comments
 (0)