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

Bre 507 feature flag cm availability #23

Closed
wants to merge 5 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
2 changes: 2 additions & 0 deletions charts/self-host/templates/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
app: {{ template "bitwarden.api" . }}
template:
metadata:
annotations:
checksum/feature-flags-config: {{ include ( print $.Template.BasePath "/pre-install-hook-feature-flags.yaml") . | sha256sum }}
labels:
app: {{ template "bitwarden.api" . }}
app.kubernetes.io/component: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ metadata:
labels:
app.kubernetes.io/component: pre-install-hook
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-weight": "0"
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "-5"
{{- if .Values.argoCDSupport }}
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/sync-wave: "0"
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
argocd.argoproj.io/sync-wave: "-2"
{{ end }}
data:
# Iterate over the featureFlags map and create a JSON object.
Expand Down
3 changes: 2 additions & 1 deletion charts/self-host/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ nameOverride: ""
# LaunchDarkly feature flags
# Flags can be added as key-value pairs, e.g., flagName: true. See the documentation for more information.
# See https://contributing.bitwarden.com/contributing/feature-flags/#flag-data-sources for more information.
featureFlags: {}
featureFlags:
generator-tools-modernization: true

# Enable Argo CD support
# Adds annotations for sync waves and hooks on various jobs to ensure proper ordering of resources.
Expand Down