-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump github.com/argoproj-labs/argocd-operator (#846)
* upgrade argocd-operator Signed-off-by: Mangaal <[email protected]> * e2e test for redis scc Signed-off-by: Mangaal <[email protected]> * go mod tidy Signed-off-by: Mangaal <[email protected]> * Remove misplaced copy of go.mod from incorrect folder Signed-off-by: Mangaal <[email protected]> * random runAsUser in openshift Signed-off-by: Mangaal <[email protected]> * random runAsUser in openshift Signed-off-by: Mangaal <[email protected]> --------- Signed-off-by: Mangaal <[email protected]>
- Loading branch information
Showing
8 changed files
with
59 additions
and
5 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
15 changes: 15 additions & 0 deletions
15
test/openshift/e2e/sequential/1-107_validate_redis_ssc/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,15 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 300 | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ArgoCD | ||
metadata: | ||
name: argocd | ||
labels: | ||
example: basic | ||
spec: | ||
ha: | ||
enabled: true | ||
status: | ||
redis: Running |
9 changes: 9 additions & 0 deletions
9
test/openshift/e2e/sequential/1-107_validate_redis_ssc/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,9 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ArgoCD | ||
metadata: | ||
name: argocd | ||
labels: | ||
example: basic | ||
spec: | ||
ha: | ||
enabled: true |
14 changes: 14 additions & 0 deletions
14
test/openshift/e2e/sequential/1-107_validate_redis_ssc/02-check-ha-redis-server-ssc.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,14 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
pod_name=$(oc get pod -l app.kubernetes.io/name=argocd-redis-ha -n $NAMESPACE -o jsonpath="{.items[0].metadata.name}") | ||
actual_scc=$(oc get pod $pod_name -n $NAMESPACE -o jsonpath="{.metadata.annotations.openshift\.io/scc}") | ||
expected_scc="restricted-v2" | ||
if [[ "$actual_scc" != "$expected_scc" ]]; then | ||
echo "SCC check failed: Expected '$expected_scc' but got '$actual_scc'" | ||
exit 1 | ||
else | ||
echo "SCC check passed: '$actual_scc'" | ||
fi |
14 changes: 14 additions & 0 deletions
14
test/openshift/e2e/sequential/1-107_validate_redis_ssc/03-check-ha-proxy-ssc.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,14 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: | | ||
pod_name=$(oc get pod -l app.kubernetes.io/name=argocd-redis-ha-haproxy -n $NAMESPACE -o jsonpath="{.items[0].metadata.name}") | ||
actual_scc=$(oc get pod $pod_name -n $NAMESPACE -o jsonpath="{.metadata.annotations.openshift\.io/scc}") | ||
expected_scc="restricted-v2" | ||
if [[ "$actual_scc" != "$expected_scc" ]]; then | ||
echo "SCC check failed: Expected '$expected_scc' but got '$actual_scc'" | ||
exit 1 | ||
else | ||
echo "SCC check passed: '$actual_scc'" | ||
fi |