Skip to content

Commit

Permalink
openstack-seeder: allow ignoring or focusing on multiple namespaces (#…
Browse files Browse the repository at this point in the history
…6597)

This requires the patch from
<sapcc/kubernetes-operators#105> to be applied.
  • Loading branch information
majewsky authored Nov 26, 2024
1 parent 62d43e1 commit 6ae6b15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion openstack/openstack-seeder/templates/bin/_start.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ export OS_DOMAIN_ID={{ .Values.keystone.domainId }}
export OS_REGION={{.Values.global.region}}

echo "Starting openstack-seeder.."
/usr/local/bin/openstack-seeder --logtostderr --v {{ default 1 .Values.logLevel }} --resync {{ default "24h" .Values.resync | quote }} {{- if .Values.dryRun }} --dry-run{{- end }} {{- if .Values.ignoreNamespace }} --ignorenamespace={{- .Values.ignoreNamespace }}{{- end }} {{- if .Values.onlyNamespace }} --onlynamespace={{- .Values.onlyNamespace }}{{- end }}
/usr/local/bin/openstack-seeder --logtostderr --v {{ default 1 .Values.logLevel }} --resync {{ default "24h" .Values.resync | quote }} {{- if .Values.dryRun }} --dry-run{{- end }} {{- range (.Values.ignoreNamespace | splitList ",") }}{{- if . }} --ignorenamespace={{- . }}{{- end }}{{- end }} {{- range (.Values.onlyNamespace | splitList ",") }}{{- if . }} --onlynamespace={{- . }}{{- end }}{{- end }}
8 changes: 4 additions & 4 deletions openstack/openstack-seeder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ owner-info:

# only simulate, don't actually seed
# dryRun: true
# ignore seeds from a certain k8s namespace
ignoreNamespace: monsoon3global
# only apply seeds from a certain k8s namespace
# onlyNamespace: monsoon3global
# ignore seeds from a certain k8s namespace (or multiple namespaces, if a comma-separated list is given like below)
ignoreNamespace: "limes-global,monsoon3global"
# only apply seeds from a certain k8s namespace (or multiple namespaces, if a comma-separated list is given like above)
onlyNamespace: ""

keystone:
#authUrl: http://identity.cluster.cloud.sap/v3
Expand Down

0 comments on commit 6ae6b15

Please sign in to comment.