-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the logic for applicationset resources reconcilation when spec.ap…
…plicationset.enabled is false (#1089) * fix the logic for applicationset resources reconciliation when spec.applicationset.enabled is false Signed-off-by: ishitasequeira <[email protected]> Signed-off-by: Raghavi Shirur <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * fix tests Signed-off-by: ishitasequeira <[email protected]> Signed-off-by: Raghavi Shirur <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * delete repo server when repo.enabled is set to false Signed-off-by: ishitasequeira <[email protected]> Signed-off-by: Raghavi Shirur <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * Update status.Phase based on component enabled flag Signed-off-by: ishitasequeira <[email protected]> Signed-off-by: Raghavi Shirur <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * Added kuttl tests Signed-off-by: Raghavi Shirur <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * Added namespace creation step Signed-off-by: Raghavi Shirur <[email protected]> Signed-off-by: ishitasequeira <[email protected]> * delete services created for resources Signed-off-by: ishitasequeira <[email protected]> * delete server deployment when enabled flag set to false Signed-off-by: ishitasequeira <[email protected]> * fix e2e test Signed-off-by: ishitasequeira <[email protected]> * fix log message Signed-off-by: ishitasequeira <[email protected]> * revert kuttl test timeout Signed-off-by: ishitasequeira <[email protected]> * Added test for reverse scenario Signed-off-by: Raghavi Shirur <[email protected]> * Dir rename Signed-off-by: Raghavi Shirur <[email protected]> * Added e2e test for ha mode Signed-off-by: Raghavi Shirur <[email protected]> --------- Signed-off-by: ishitasequeira <[email protected]> Signed-off-by: Raghavi Shirur <[email protected]> Co-authored-by: Raghavi Shirur <[email protected]>
- Loading branch information
1 parent
a78a842
commit c238af6
Showing
39 changed files
with
1,000 additions
and
27 deletions.
There are no files selected for viewing
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
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
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
63 changes: 63 additions & 0 deletions
63
tests/k8s/1-034_validate_applicationset_reconcile_enabled_set_false/01-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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
apiVersion: argoproj.io/v1beta1 | ||
kind: ArgoCD | ||
metadata: | ||
name: argocd-test | ||
namespace: test | ||
status: | ||
phase: Available | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: argocd-test-redis | ||
namespace: test | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: argocd-test-repo-server | ||
namespace: test | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: argocd-test-server | ||
namespace: test | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: argocd-test-server | ||
namespace: test | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: argocd-test-application-controller | ||
namespace: test | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: argocd-test-argocd-application-controller | ||
namespace: test | ||
|
||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: argocd-test-argocd-server | ||
namespace: test | ||
|
||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: argocd-test-argocd-redis-ha | ||
namespace: test | ||
|
22 changes: 22 additions & 0 deletions
22
tests/k8s/1-034_validate_applicationset_reconcile_enabled_set_false/01-install.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,22 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: test | ||
--- | ||
|
||
apiVersion: argoproj.io/v1beta1 | ||
kind: ArgoCD | ||
metadata: | ||
name: argocd-test | ||
namespace: test | ||
spec: | ||
controller: | ||
enabled: false | ||
redis: | ||
enabled: false | ||
repo: | ||
enabled: false | ||
server: | ||
enabled: false | ||
applicationSet: | ||
enabled: false |
25 changes: 25 additions & 0 deletions
25
tests/k8s/1-034_validate_applicationset_reconcile_enabled_set_false/02-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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: argoproj.io/v1beta1 | ||
kind: ArgoCD | ||
metadata: | ||
name: argocd-test | ||
namespace: test | ||
status: | ||
phase: Available | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: argocd-test-application-controller | ||
namespace: test | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: argocd-test-argocd-application-controller | ||
namespace: test | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: argocd-test-argocd-application-controller | ||
namespace: test |
34 changes: 34 additions & 0 deletions
34
tests/k8s/1-034_validate_applicationset_reconcile_enabled_set_false/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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: argocd-test-redis | ||
namespace: test | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: argocd-test-repo-server | ||
namespace: test | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: argocd-test-server | ||
namespace: test | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: argocd-test-server | ||
namespace: test | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: argocd-test-repo-server | ||
namespace: test |
Oops, something went wrong.