Skip to content

Commit

Permalink
Add support for image pull secrets for the helm chart (#81)
Browse files Browse the repository at this point in the history
* Add support for image pull secrets for the helm chart

* Update helm docs
  • Loading branch information
adriananeci committed Oct 12, 2023
1 parent 1c4b0a0 commit 74757d7
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
18 changes: 11 additions & 7 deletions charts/cluster-registry-client/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
apiVersion: v2
name: cluster-registry-client
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.

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.

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

maintainers:
- name: aalexandru
email: [email protected]
- name: radu-catalina
email: [email protected]
- name: aalexandru
email: [email protected]
- name: radu-catalina
email: [email protected]

version: 0.1.3
appVersion: "v1.4.1"
version: 0.1.4
appVersion: v1.4.2
5 changes: 3 additions & 2 deletions charts/cluster-registry-client/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cluster-registry-client

![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)
![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)

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.

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

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Autogenerated from chart metadata using [helm-docs v1.11.2](https://github.com/norwoodj/helm-docs/releases/v1.11.2)
4 changes: 2 additions & 2 deletions charts/cluster-registry-client/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: "client-config"
name: client-config
labels:
{{- include "cluster-registry-client.labels" . | nindent 4 }}
data:
Expand All @@ -24,7 +24,7 @@ data:
bindAddress: {{ .Values.clusterRegistryClient.alertmanagerWebhook.bindAddress }}
{{- if gt (len .Values.clusterRegistryClient.alertmanagerWebhook.alertMap) 0 }}
alertMap:
{{- range $_, $am := .Values.clusterRegistryClient.alertmanagerWebhook.alertMap }}
{{- range $_, $am := .Values.clusterRegistryClient.alertmanagerWebhook.alertMap }}
- alertName: {{ $am.alertName }}
onFiring:
{{- toYaml $am.onFiring | nindent 12 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/cluster-registry-client/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ spec:
annotations:
kubectl.kubernetes.io/default-container: manager
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- args:
- --leader-elect
Expand Down
23 changes: 7 additions & 16 deletions charts/cluster-registry-client/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
nameOverride: "cluster-registry-client"
fullnameOverride: "cluster-registry-client"

nameOverride: cluster-registry-client
fullnameOverride: cluster-registry-client
replicaCount: 2

clusterRegistryClient:
alertmanagerWebhook:
bindAddress: 0.0.0.0:9092
Expand All @@ -17,48 +15,41 @@ clusterRegistryClient:
leaderElect: true
resourceNamespace: cluster-registry
resourceName: 0c4967d2.registry.ethos.adobe.com

rbac:
create: true
nameSuffix: "cluster-client"

nameSuffix: cluster-client
serviceAccount:
# Specifies whether a service account should be created, else use: 'name: "default"''
create: true
# The name of the service account to use.
# If set, override, else will use chart fullname template
name: "cluster-registry-client"

name: cluster-registry-client
imagePullSecrets: []
image:
pullPolicy: "IfNotPresent"
registry: "ghcr.io/adobe/cluster-registry-client"

pullPolicy: IfNotPresent
registry: ghcr.io/adobe/cluster-registry-client
ports:
- name: metrics
containerPort: 9090
- name: amwebhook
containerPort: 9092

resources:
limits:
cpu: 200m
memory: 400Mi
requests:
cpu: 100m
memory: 200Mi

livenessProbe:
httpGet:
path: /healthz
port: 9091
initialDelaySeconds: 15
periodSeconds: 20

readinessProbe:
httpGet:
path: /readyz
port: 9091
initialDelaySeconds: 5
periodSeconds: 10

terminationGracePeriodSeconds: 10

0 comments on commit 74757d7

Please sign in to comment.