Skip to content

Commit

Permalink
Update config-syncer chart (#150)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Apr 7, 2024
1 parent 0fae3d3 commit 2be674e
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 103 deletions.
4 changes: 2 additions & 2 deletions charts/config-syncer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
description: 'Config Syncer by AppsCode'
name: config-syncer
version: v0.14.7
appVersion: v0.14.7
version: v0.15.0
appVersion: v0.15.0
home: https://github.com/kubeops/config-syncer
icon: https://cdn.appscode.com/images/products/kubed/icons/android-icon-192x192.png
sources:
Expand Down
10 changes: 5 additions & 5 deletions charts/config-syncer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
```bash
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/config-syncer --version=v0.14.7
$ helm upgrade -i config-syncer appscode/config-syncer -n kubeops --create-namespace --version=v0.14.7
$ helm search repo appscode/config-syncer --version=v0.15.0
$ helm upgrade -i config-syncer appscode/config-syncer -n kubeops --create-namespace --version=v0.15.0
```

## Introduction
Expand All @@ -24,7 +24,7 @@ This chart deploys a Config Syncer operator on a [Kubernetes](http://kubernetes.
To install/upgrade the chart with the release name `config-syncer`:

```bash
$ helm upgrade -i config-syncer appscode/config-syncer -n kubeops --create-namespace --version=v0.14.7
$ helm upgrade -i config-syncer appscode/config-syncer -n kubeops --create-namespace --version=v0.15.0
```

The command deploys a Config Syncer operator on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.
Expand Down Expand Up @@ -87,12 +87,12 @@ The following table lists the configurable parameters of the `config-syncer` cha
Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example:

```bash
$ helm upgrade -i config-syncer appscode/config-syncer -n kubeops --create-namespace --version=v0.14.7 --set replicaCount=1
$ helm upgrade -i config-syncer appscode/config-syncer -n kubeops --create-namespace --version=v0.15.0 --set replicaCount=1
```

Alternatively, a YAML file that specifies the values for the parameters can be provided while
installing the chart. For example:

```bash
$ helm upgrade -i config-syncer appscode/config-syncer -n kubeops --create-namespace --version=v0.14.7 --values values.yaml
$ helm upgrade -i config-syncer appscode/config-syncer -n kubeops --create-namespace --version=v0.15.0 --values values.yaml
```
58 changes: 0 additions & 58 deletions charts/config-syncer/templates/apiregistration.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion charts/config-syncer/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rules:
- apiGroups: [""]
resources:
- nodes
verbs: ["list"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources:
- events
Expand Down
68 changes: 31 additions & 37 deletions charts/config-syncer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ spec:
labels:
{{- include "config-syncer.selectorLabels" . | nindent 8 }}
annotations:
checksum/apiregistration.yaml: {{ include (print $.Template.BasePath "/apiregistration.yaml") . | sha256sum }}
{{- if $criticalAddon }}
scheduler.alpha.kubernetes.io/critical-pod: ''
{{- end }}
Expand All @@ -42,43 +41,44 @@ spec:
image: {{ include "image.registry" . }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}{{if include "mode.enterprise" .}}-ent{{end}}
imagePullPolicy: {{ .Values.imagePullPolicy }}
args:
- run
- --v={{ .Values.logLevel }}
- --secure-port={{ default "8443" .Values.apiserver.securePort }}
- --audit-log-path=-
- --tls-cert-file=/var/serving-cert/tls.crt
- --tls-private-key-file=/var/serving-cert/tls.key
- --use-kubeapiserver-fqdn-for-aks={{ .Values.apiserver.useKubeapiserverFqdnForAks }}
{{- if .Values.license }}
- --license-file=/var/run/secrets/appscode/license/key.txt
{{- end }}
{{- with .Values.config.clusterName }}
- --cluster-name={{ . }}
{{- end }}
{{- with .Values.config.configSourceNamespace }}
- --config-source-namespace={{ . }}
{{- end }}
{{- if .Values.config.kubeconfigContent }}
- --kubeconfig-file=/srv/config-syncer/kubeconfig
{{- end }}
{{- range .Values.config.additionalOptions }}
- {{ . }}
{{- end }}
ports:
- containerPort: {{ default "8443" .Values.apiserver.securePort }}
- run
{{- if .Values.license }}
- --license-file=/var/run/secrets/appscode/license/key.txt
{{- end }}
{{- with .Values.config.clusterName }}
- --cluster-name={{ . }}
{{- end }}
{{- with .Values.config.configSourceNamespace }}
- --config-source-namespace={{ . }}
{{- end }}
{{- if .Values.config.kubeconfigContent }}
- --kubeconfig-file=/srv/config-syncer/kubeconfig
{{- end }}
{{- range .Values.config.additionalOptions }}
- {{ . }}
{{- end }}
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- if .Values.apiserver.healthcheck.enabled }}
readinessProbe:
httpGet:
path: /healthz
port: {{ default "8443" .Values.apiserver.securePort }}
scheme: HTTPS
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: {{ default "8443" .Values.apiserver.securePort }}
scheme: HTTPS
initialDelaySeconds: 5
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
{{- end }}
resources:
{{- toYaml .Values.image.resources | nindent 10 }}
Expand All @@ -87,8 +87,6 @@ spec:
mountPath: /srv/config-syncer
- name: scratch
mountPath: /tmp
- mountPath: /var/serving-cert
name: serving-cert
{{- if .Values.license }}
- mountPath: /var/run/secrets/appscode/license
name: license
Expand All @@ -99,10 +97,6 @@ spec:
secretName: {{ template "config-syncer.fullname" . }}
- name: scratch
emptyDir: {}
- name: serving-cert
secret:
defaultMode: 420
secretName: {{ template "config-syncer.fullname" . }}-apiserver-cert
{{- if .Values.license }}
- name: license
secret:
Expand Down

0 comments on commit 2be674e

Please sign in to comment.