-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructured kuttl files and added operator patch file
- Loading branch information
1 parent
8acb169
commit be9ae2b
Showing
13 changed files
with
116 additions
and
71 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
tests/k8s/1-033_validate_label_selector/01-add-label-selector.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,7 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
# patches the subscription to add label selector in argocd-operator | ||
- script: | | ||
kubectl patch -n $NAMESPACE argocd/argocd --type='json' -p='[{"op": "remove", "path": "/spec/sso"}]' | ||
- script: sleep 10 |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...33_validate_label_selector/01-errors.yaml → ...33_validate_label_selector/02-errors.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ArgoCD | ||
metadata: | ||
name: example-argocd | ||
name: test1 | ||
status: | ||
phase: Available |
File renamed without changes.
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
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 |
---|---|---|
@@ -1,31 +1,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test1-redis | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test1-repo-server | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test1-server | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test1-metrics | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test1-redis | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test1-repo-server | ||
--- | ||
apiVersion: v1 | ||
data: | ||
policy.csv: "" | ||
policy.default: role:readonly | ||
scopes: '[email]' | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app.kubernetes.io/managed-by: test1 | ||
app.kubernetes.io/name: argocd-rbac-cm | ||
app.kubernetes.io/part-of: argocd | ||
name: argocd-rbac-cm | ||
namespace: test-argocd | ||
|
||
|
||
|
||
|
||
# apiVersion: argoproj.io/v1alpha1 | ||
# kind: ArgoCD | ||
# metadata: | ||
# name: test1 | ||
# namespace: test-argocd | ||
# labels: | ||
# example: basic | ||
# spec: | ||
# rbac: | ||
# policy: | | ||
# g, system:cluster-admins, role:admin | ||
# g, cluster-admins, role:admin | ||
# scopes: '[email]' | ||
|
||
kind: Service | ||
metadata: | ||
name: test1-server | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test1-server-metrics |
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,31 @@ | ||
apiVersion: v1 | ||
data: | ||
policy.csv: "" | ||
policy.default: role:readonly | ||
scopes: '[email]' | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app.kubernetes.io/managed-by: test1 | ||
app.kubernetes.io/name: argocd-rbac-cm | ||
app.kubernetes.io/part-of: argocd | ||
name: argocd-rbac-cm | ||
namespace: test-argocd | ||
|
||
|
||
|
||
|
||
# apiVersion: argoproj.io/v1alpha1 | ||
# kind: ArgoCD | ||
# metadata: | ||
# name: test1 | ||
# namespace: test-argocd | ||
# labels: | ||
# example: basic | ||
# spec: | ||
# rbac: | ||
# policy: | | ||
# g, system:cluster-admins, role:admin | ||
# g, cluster-admins, role:admin | ||
# scopes: '[email]' | ||
|
File renamed without changes.
File renamed without changes.
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,31 @@ | ||
apiVersion: v1 | ||
data: | ||
policy.csv: "" | ||
policy.default: role:readonly | ||
scopes: '[email]' | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app.kubernetes.io/managed-by: test1 | ||
app.kubernetes.io/name: argocd-rbac-cm | ||
app.kubernetes.io/part-of: argocd | ||
name: argocd-rbac-cm | ||
namespace: test-argocd | ||
|
||
|
||
|
||
|
||
# apiVersion: argoproj.io/v1alpha1 | ||
# kind: ArgoCD | ||
# metadata: | ||
# name: test1 | ||
# namespace: test-argocd | ||
# labels: | ||
# example: basic | ||
# spec: | ||
# rbac: | ||
# policy: | | ||
# g, system:cluster-admins, role:admin | ||
# g, cluster-admins, role:admin | ||
# scopes: '[email]' | ||
|
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
tests/k8s/1-033_validate_label_selector/07-remove-label-selector.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,7 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
# patches the subscription to add label selector in argocd-operator | ||
- script: | | ||
kubectl patch -n $NAMESPACE argocd/argocd --type='json' -p='[{"op": "remove", "path": "/spec/sso"}]' | ||
- script: sleep 10 |