mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 18:18:41 +00:00
This patch drops the custom caching of the Cozystack resource definitions in favor of the informer cache and adds a flag to the Cozystack controller to select, whether it restarts the cozystack-api deployment or the cozystack-api daemonset. As with the new default behavior of using a local endpoint for the k8s API by the lineage webhook and the Cozystack API, the Cozystack controller now also defaults to restarting a Cozystack API DaemonSet instead of a Deployment. To revert to the old behavior, disable the local k8s API endpoint on the webhook and cozystack API and set the `cozystackController.cozystackAPIKind` value in the Cozystack controller system Helm chart to "Deployment". ```release-note [controller] Use informer cache instead of the older bespoke implementation and add support for running the Cozystack API as a DaemonSet. ``` Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
34 lines
930 B
YAML
34 lines
930 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: cozystack-controller
|
|
labels:
|
|
app: cozystack-controller
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: cozystack-controller
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: cozystack-controller
|
|
spec:
|
|
serviceAccountName: cozystack-controller
|
|
containers:
|
|
- name: cozystack-controller
|
|
image: "{{ .Values.cozystackController.image }}"
|
|
args:
|
|
- --cozystack-version={{ .Values.cozystackController.cozystackVersion }}
|
|
{{- if .Values.cozystackController.debug }}
|
|
- --zap-log-level=debug
|
|
{{- else }}
|
|
- --zap-log-level=info
|
|
{{- end }}
|
|
{{- if .Values.cozystackController.disableTelemetry }}
|
|
- --disable-telemetry
|
|
{{- end }}
|
|
{{- if eq .Values.cozystackController.cozystackAPIKind "Deployment" }}
|
|
- --reconcile-deployment
|
|
{{- end }}
|