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

Test feature flags management #588

Closed
wants to merge 3 commits into from
Closed
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
6 changes: 3 additions & 3 deletions chart/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ dependencies:
version: 16.13.2
- name: replicated
repository: oci://registry.replicated.com/library
version: 1.0.0-beta.21
digest: sha256:e5e9be5949b002165bed577fdbbef4b22b497542916ae544360f8b0da8394719
generated: "2024-06-11T13:43:46.305989+02:00"
version: 1.0.0-beta.26
digest: sha256:075af1449e55fb29d5f9b55ab3f9f1a59156ab7eb8d4afe7b98972e98773fbd3
generated: "2024-08-01T13:08:39.224775+02:00"
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
version: 16.x.x
- name: replicated
repository: oci://registry.replicated.com/library
version: 1.0.0-beta.21
version: 1.0.0-beta.26
condition: replicated.enabled
description: CARTO Location Intelligence Platform. Unlock the power of spatial analysis in the cloud
engine: gotpl
Expand Down
3 changes: 3 additions & 0 deletions chart/feature-flags.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
featureFlags:
- 2024-ff1
- 2024-ff2
5 changes: 5 additions & 0 deletions chart/templates/_commonChecks.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ Return common collectors for preflights and support-bundle
securityContext: {{- toYaml .Values.tenantRequirementsChecker.containerSecurityContext | nindent 14 }}
resources: {{- toYaml .Values.tenantRequirementsChecker.resources | nindent 14 }}
env:
{{- $featureFlags := .Files.Get "feature-flags.yaml" | fromYaml }}
{{- range $index, $flag := $featureFlags.featureFlags }}
- name: FEATURE_FLAG_{{ $index }}
value: {{ $flag | quote }}
{{- end }}
- name: PUBSUB_PROJECT_ID
value: {{ .Values.cartoConfigValues.selfHostedGcpProjectId | quote }}
- name: TENANT_REQUIREMENTS_CHECKER_PUBSUB_TENANT_BUS_TOPIC
Expand Down
Loading