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

namespaceLabels and namespaceAnnotations as targetCustomization #21

Merged
merged 3 commits into from
Jul 23, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: config-chart
description: A test chart that verifies its config
type: application
version: 0.1.0
appVersion: "1.16.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: test-simple-chart-config
data:
test: "value123"
name: {{ .Values.name }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: default-name
17 changes: 17 additions & 0 deletions target-customization-namespace-labels/fleet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
defaultNamespace: ns-1
namespaceLabels:
foo: bar
namespaceAnnotations:
foo: bar
helm:
releaseName: simple-chart
chart: config-chart
values:
name: example-value
targetCustomizations:
- name: custom-target
clusterName: cluster-1
namespaceLabels:
this.is/a: test
namespaceAnnotations:
this.is/a: test
1 change: 1 addition & 0 deletions target-customization-namespace-labels/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
url: global.fleet.clusterLabels.name