-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: delete/don't create deployment resources if using .remote field (#…
…1545) * fix: delete/dont create deployemnt resources if using .remote field Signed-off-by: Anand Kumar Singh <[email protected]> * fix: skip service creation if route is enabled Signed-off-by: Anand Kumar Singh <[email protected]> * update documentation Signed-off-by: Anand Kumar Singh <[email protected]> * add unit-tests Signed-off-by: Anand Kumar Singh <[email protected]> * add IsRemote for redis and repo-server component Signed-off-by: Anand Kumar Singh <[email protected]> * fix docs Signed-off-by: Anand Kumar Singh <[email protected]> * fix test Signed-off-by: Anand Kumar Singh <[email protected]> * rebase Signed-off-by: Anand Kumar Singh <[email protected]> * fix: goimports error Signed-off-by: Anand Kumar Singh <[email protected]> * fix: isRemote enabled should delete Signed-off-by: Anand Kumar Singh <[email protected]> --------- Signed-off-by: Anand Kumar Singh <[email protected]>
- Loading branch information
1 parent
14032c7
commit 2ef2bc4
Showing
14 changed files
with
305 additions
and
9 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
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
50 changes: 50 additions & 0 deletions
50
tests/k8s/1-043_validate_cleanup_when_using_remote/01-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,50 @@ | ||
# Increase the timeout for the first test because it needs to download | ||
# a number of container images | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 720 | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ArgoCD | ||
metadata: | ||
name: example-argocd | ||
status: | ||
phase: Available | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: example-argocd-application-controller | ||
status: | ||
readyReplicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-argocd-redis | ||
status: | ||
readyReplicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-argocd-repo-server | ||
status: | ||
readyReplicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-argocd-server | ||
status: | ||
readyReplicas: 1 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: example-argocd-repo-server | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: example-argocd-redis |
7 changes: 7 additions & 0 deletions
7
tests/k8s/1-043_validate_cleanup_when_using_remote/01-basic.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: argoproj.io/v1alpha1 | ||
kind: ArgoCD | ||
metadata: | ||
name: example-argocd | ||
labels: | ||
example: basic | ||
spec: {} |
11 changes: 11 additions & 0 deletions
11
tests/k8s/1-043_validate_cleanup_when_using_remote/02-add-remote.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,11 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ArgoCD | ||
metadata: | ||
name: example-argocd | ||
labels: | ||
example: basic | ||
spec: | ||
redis: | ||
remote: https://redis.remote.host:6379 | ||
repo: | ||
remote: https://repo-server.remote.host:8081 |
30 changes: 30 additions & 0 deletions
30
tests/k8s/1-043_validate_cleanup_when_using_remote/02-error.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,30 @@ | ||
# Increase the timeout for the first test because it needs to download | ||
# a number of container images | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: sleep 30 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-argocd-redis | ||
status: | ||
readyReplicas: 1 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-argocd-repo-server | ||
status: | ||
readyReplicas: 1 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: example-argocd-repo-server | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: example-argocd-redis |
Oops, something went wrong.