Skip to content

Commit

Permalink
introduce telemetry-enabled flag
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
  • Loading branch information
kvaps committed Jan 8, 2025
1 parent eb264e1 commit 2d432d2
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
11 changes: 11 additions & 0 deletions packages/core/platform/bundles/paas-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ releases:
namespace: cozy-system
dependsOn: [cilium,kubeovn]

- name: cozystack-controller
releaseName: cozystack-controller
chart: cozy-cozystack-controller
namespace: cozy-system
dependsOn: [cilium,kubeovn]
{{- if eq (index $cozyConfig.data "telemetry-enabled") "false" }}
values:
cozystackController:
disableTelemetry: true
{{- end }}

- name: cert-manager
releaseName: cert-manager
chart: cozy-cert-manager
Expand Down
11 changes: 11 additions & 0 deletions packages/core/platform/bundles/paas-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ releases:
namespace: cozy-system
dependsOn: []

- name: cozystack-controller
releaseName: cozystack-controller
chart: cozy-cozystack-controller
namespace: cozy-system
dependsOn: []
{{- if eq (index $cozyConfig.data "telemetry-enabled") "false" }}
values:
cozystackController:
disableTelemetry: true
{{- end }}

- name: cert-manager
releaseName: cert-manager
chart: cozy-cert-manager
Expand Down
2 changes: 1 addition & 1 deletion packages/system/cozystack-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
app: cozystack-api
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: cozystack-api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ spec:
- name: cozystack-controller
image: "{{ .Values.cozystackController.image }}"
args:
{{- if .Values.cozystackController.debug }}
- --zap-log-level=debug
{{- else }}
- --zap-log-level=info
{{- end }}
{{- if .Values.cozystackController.disableTelemetry }}
- --disable-telemetry
{{- end }}
2 changes: 2 additions & 0 deletions packages/system/cozystack-controller/values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
cozystackController:
image: ghcr.io/aenix-io/cozystack/cozystack-controller:latest@sha256:0638f77f16b778794bd8514a3c5a3c39408a078ad21a2ccc25c5fd8a1f66185f
debug: false
disableTelemetry: false

0 comments on commit 2d432d2

Please sign in to comment.