Skip to content

Commit 74757d7

Browse files
authored
Add support for image pull secrets for the helm chart (#81)
* Add support for image pull secrets for the helm chart * Update helm docs
1 parent 1c4b0a0 commit 74757d7

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed
Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
apiVersion: v2
22
name: cluster-registry-client
3-
description: Cluster Registry is a Rest API representing the source of record for all Kubernetes clusters in the infrastructure fleet. All clusters are automatically registered, and the information is accurately reflected in the Cluster Registry using a client-server architecture.
3+
4+
description: Cluster Registry is a Rest API representing the source of record for
5+
all Kubernetes clusters in the infrastructure fleet. All clusters are automatically
6+
registered, and the information is accurately reflected in the Cluster Registry
7+
using a client-server architecture.
48

59
type: application
610
home: https://github.com/adobe/cluster-registry
711

812
maintainers:
9-
- name: aalexandru
10-
11-
- name: radu-catalina
12-
13+
- name: aalexandru
14+
15+
- name: radu-catalina
16+
1317

14-
version: 0.1.3
15-
appVersion: "v1.4.1"
18+
version: 0.1.4
19+
appVersion: v1.4.2

charts/cluster-registry-client/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cluster-registry-client
22

3-
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.4.1](https://img.shields.io/badge/AppVersion-v1.4.1-informational?style=flat-square)
3+
![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.4.2](https://img.shields.io/badge/AppVersion-v1.4.2-informational?style=flat-square)
44

55
Cluster Registry is a Rest API representing the source of record for all Kubernetes clusters in the infrastructure fleet. All clusters are automatically registered, and the information is accurately reflected in the Cluster Registry using a client-server architecture.
66

@@ -28,6 +28,7 @@ Cluster Registry is a Rest API representing the source of record for all Kuberne
2828
| fullnameOverride | string | `"cluster-registry-client"` | |
2929
| image.pullPolicy | string | `"IfNotPresent"` | |
3030
| image.registry | string | `"ghcr.io/adobe/cluster-registry-client"` | |
31+
| imagePullSecrets | list | `[]` | |
3132
| livenessProbe.httpGet.path | string | `"/healthz"` | |
3233
| livenessProbe.httpGet.port | int | `9091` | |
3334
| livenessProbe.initialDelaySeconds | int | `15` | |
@@ -53,4 +54,4 @@ Cluster Registry is a Rest API representing the source of record for all Kuberne
5354
| terminationGracePeriodSeconds | int | `10` | |
5455

5556
----------------------------------------------
56-
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
57+
Autogenerated from chart metadata using [helm-docs v1.11.2](https://github.com/norwoodj/helm-docs/releases/v1.11.2)

charts/cluster-registry-client/templates/configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: ConfigMap
44
metadata:
5-
name: "client-config"
5+
name: client-config
66
labels:
77
{{- include "cluster-registry-client.labels" . | nindent 4 }}
88
data:
@@ -24,7 +24,7 @@ data:
2424
bindAddress: {{ .Values.clusterRegistryClient.alertmanagerWebhook.bindAddress }}
2525
{{- if gt (len .Values.clusterRegistryClient.alertmanagerWebhook.alertMap) 0 }}
2626
alertMap:
27-
{{- range $_, $am := .Values.clusterRegistryClient.alertmanagerWebhook.alertMap }}
27+
{{- range $_, $am := .Values.clusterRegistryClient.alertmanagerWebhook.alertMap }}
2828
- alertName: {{ $am.alertName }}
2929
onFiring:
3030
{{- toYaml $am.onFiring | nindent 12 }}

charts/cluster-registry-client/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ spec:
1616
annotations:
1717
kubectl.kubernetes.io/default-container: manager
1818
spec:
19+
{{- with .Values.imagePullSecrets }}
20+
imagePullSecrets:
21+
{{- toYaml . | nindent 8 }}
22+
{{- end }}
1923
containers:
2024
- args:
2125
- --leader-elect
Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
nameOverride: "cluster-registry-client"
2-
fullnameOverride: "cluster-registry-client"
3-
1+
nameOverride: cluster-registry-client
2+
fullnameOverride: cluster-registry-client
43
replicaCount: 2
5-
64
clusterRegistryClient:
75
alertmanagerWebhook:
86
bindAddress: 0.0.0.0:9092
@@ -17,48 +15,41 @@ clusterRegistryClient:
1715
leaderElect: true
1816
resourceNamespace: cluster-registry
1917
resourceName: 0c4967d2.registry.ethos.adobe.com
20-
2118
rbac:
2219
create: true
23-
nameSuffix: "cluster-client"
24-
20+
nameSuffix: cluster-client
2521
serviceAccount:
2622
# Specifies whether a service account should be created, else use: 'name: "default"''
2723
create: true
2824
# The name of the service account to use.
2925
# If set, override, else will use chart fullname template
30-
name: "cluster-registry-client"
31-
26+
name: cluster-registry-client
27+
imagePullSecrets: []
3228
image:
33-
pullPolicy: "IfNotPresent"
34-
registry: "ghcr.io/adobe/cluster-registry-client"
35-
29+
pullPolicy: IfNotPresent
30+
registry: ghcr.io/adobe/cluster-registry-client
3631
ports:
3732
- name: metrics
3833
containerPort: 9090
3934
- name: amwebhook
4035
containerPort: 9092
41-
4236
resources:
4337
limits:
4438
cpu: 200m
4539
memory: 400Mi
4640
requests:
4741
cpu: 100m
4842
memory: 200Mi
49-
5043
livenessProbe:
5144
httpGet:
5245
path: /healthz
5346
port: 9091
5447
initialDelaySeconds: 15
5548
periodSeconds: 20
56-
5749
readinessProbe:
5850
httpGet:
5951
path: /readyz
6052
port: 9091
6153
initialDelaySeconds: 5
6254
periodSeconds: 10
63-
6455
terminationGracePeriodSeconds: 10

0 commit comments

Comments
 (0)