-
Notifications
You must be signed in to change notification settings - Fork 839
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Varsha B <[email protected]>
- Loading branch information
1 parent
03e22ef
commit d051b9f
Showing
15 changed files
with
71 additions
and
114 deletions.
There are no files selected for viewing
44 changes: 22 additions & 22 deletions
44
tests/k8s/1-046_validate_impersonation_cluster_scoped_instance/03-assert.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,24 +1,24 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: guestbook | ||
namespace: argocd-test-impersonation | ||
spec: | ||
destination: | ||
namespace: guestbook | ||
server: 'https://kubernetes.default.svc' | ||
project: guestbook-proj | ||
source: | ||
directory: | ||
jsonnet: {} | ||
recurse: true | ||
path: guestbook | ||
repoURL: 'https://github.com/argoproj/argocd-example-apps' | ||
syncPolicy: | ||
automated: {} | ||
syncOptions: | ||
- ServerSideApply=true | ||
- CreateNamespace=true | ||
status: | ||
sync: | ||
status: OutOfSync | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: guestbook-deployer | ||
namespace: guestbook | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: guestbook-deployer-rb | ||
namespace: guestbook | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-admin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: guestbook-deployer | ||
namespace: guestbook |
File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions
10
tests/k8s/1-046_validate_impersonation_cluster_scoped_instance/04-check-app.yaml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
62 changes: 41 additions & 21 deletions
62
tests/k8s/1-046_validate_impersonation_cluster_scoped_instance/05-assert.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,24 +1,44 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: guestbook | ||
name: guestbook-proj | ||
namespace: argocd-test-impersonation | ||
spec: | ||
clusterResourceWhitelist: | ||
- group: '*' | ||
kind: '*' | ||
destinationServiceAccounts: | ||
- defaultServiceAccount: guestbook-deployer | ||
namespace: guestbook | ||
server: 'https://kubernetes.default.svc' | ||
destinations: | ||
- namespace: guestbook | ||
server: 'https://kubernetes.default.svc' | ||
- namespace: guestbook-dev | ||
server: 'https://kubernetes.default.svc' | ||
sourceRepos: | ||
- 'https://github.com/argoproj/argocd-example-apps.git' | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: guestbook-deployer | ||
namespace: guestbook | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: guestbook-deployer-rb | ||
namespace: guestbook | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-admin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: guestbook-deployer | ||
namespace: guestbook | ||
name: guestbook-dev | ||
namespace: argocd-test-impersonation | ||
spec: | ||
destination: | ||
namespace: guestbook-dev | ||
server: 'https://kubernetes.default.svc' | ||
project: guestbook-proj | ||
source: | ||
directory: | ||
jsonnet: {} | ||
recurse: true | ||
path: guestbook | ||
repoURL: 'https://github.com/argoproj/argocd-example-apps' | ||
syncPolicy: | ||
automated: {} | ||
syncOptions: | ||
- ServerSideApply=true | ||
status: | ||
health: | ||
status: Missing |
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
12 changes: 0 additions & 12 deletions
12
tests/k8s/1-046_validate_impersonation_cluster_scoped_instance/06-argocd-login.yaml
This file was deleted.
Oops, something went wrong.
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
44 changes: 0 additions & 44 deletions
44
tests/k8s/1-046_validate_impersonation_cluster_scoped_instance/08-assert.yaml
This file was deleted.
Oops, something went wrong.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
tests/k8s/1-047_validate_impersonation_namespace_scoped_instance/06-create-app.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,4 +1,3 @@ | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
|
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