Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for image pull secrets for the helm chart #81

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: aalexand@adobe.com
- name: radu-catalina
email: caradu@adobe.com
- name: aalexandru
email: aalexand@adobe.com
- name: radu-catalina
email: caradu@adobe.com

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
Loading