-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new kustomization e2e test yamls
Signed-off-by: Xiangjing Li <xiangli@redhat.com>
- Loading branch information
1 parent
5aeb0f3
commit 0af0407
Showing
5 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
test/github/kustomizeLabels/base/KlusterletAddonConfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
apiVersion: agent.open-cluster-management.io/v1 | ||
kind: KlusterletAddonConfig | ||
metadata: | ||
name: REPLACED BY KUSTOMIZE | ||
namespace: REPLACED BY KUSTOMIZE | ||
spec: | ||
clusterName: REPLACED BY KUSTOMIZE | ||
clusterNamespace: REPLACED BY KUSTOMIZE | ||
applicationManager: | ||
enabled: true | ||
certPolicyController: | ||
enabled: true | ||
clusterLabels: | ||
cloud: auto-detect | ||
vendor: auto-detect | ||
iamPolicyController: | ||
enabled: true | ||
policyController: | ||
enabled: true | ||
searchCollector: | ||
enabled: true | ||
version: 2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
apiVersion: cluster.open-cluster-management.io/v1 | ||
kind: ManagedCluster | ||
metadata: | ||
name: REPLACED BY KUSTOMIZE | ||
namespace: REPLACED BY KUSTOMIZE | ||
labels: #LABELS ADDED BY KUSTOMIZE | ||
|
||
spec: | ||
hubAcceptsClient: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
kind: Namespace | ||
apiVersion: v1 | ||
metadata: | ||
name: REPLACED BY KUSTOMIZE | ||
labels: | ||
#cluster.open-cluster-management.io/managedCluster: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- KlusterletAddonConfig.yaml | ||
- ManagedCluster.yaml | ||
- Namespace.yaml |
42 changes: 42 additions & 0 deletions
42
test/github/kustomizeLabels/namctigtd27d/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
resources: | ||
- ../base | ||
|
||
patches: | ||
- target: | ||
kind: KlusterletAddonConfig | ||
patch: | | ||
- op: replace | ||
path: /metadata/name | ||
value: "namctigtd27d" | ||
- op: replace | ||
path: /metadata/namespace | ||
value: "namctigtd27d" | ||
- op: replace | ||
path: /spec/clusterName | ||
value: "namctigtd27d" | ||
- op: replace | ||
path: /spec/clusterNamespace | ||
value: "namctigtd27d" | ||
- target: | ||
kind: ManagedCluster | ||
patch: | | ||
- op: replace | ||
path: /metadata/name | ||
value: "namctigtd27d" | ||
- op: replace | ||
path: /metadata/namespace | ||
value: "namctigtd27d" | ||
- op: add | ||
path: /metadata/labels | ||
value: | ||
environment: dev | ||
test1: test1 | ||
test2: test2 | ||
vault-csi-provider-enabled: true | ||
- target: | ||
kind: Namespace | ||
patch: | | ||
- op: replace | ||
path: /metadata/name | ||
value: "namctigtd27d" |