-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
None
-
False
-
-
Manual test case 1
1. pre-req: install openshift gitops v1.13
kubectl create ns argo-rollouts
2. Create and apply the following resource to the cluster:
apiVersion: argoproj.io/v1alpha1 kind: RolloutManager metadata: name: rollout-manager namespace: argo-rollouts labels: example: basic spec: {}
kubectl create -f rollouts.yaml
3. git clone https://github.com/argoproj-labs/rollouts-plugin-trafficrouter-openshift
4. cd rollouts-plugin-trafficrouter-openshift
5. go get github.com/argoproj-labs/rollouts-plugin-trafficrouter-openshift/pkg/plugin
6. make test-e2e
Manual test case 2
1. To make ArgoCD server available on localhost
$ oc port-forward -n openshift-gitops svc/openshift-gitops-server 8443:443 > /dev/null 2>&1 &
2. Fetch the password for loggin into the server
$ ADMIN_PASSWD=$(oc get secret -n openshift-gitops openshift-gitops-cluster -o jsonpath='{.data.admin\.password}' | base64 -d)
3. Log in to the server
$ argocd login --username admin --password ${ADMIN_PASSWD} localhost:8443 --insecure
4. Create a deployment with socks5 image
$ oc create deployment socks5 --image serjs/go-socks5-proxy --replicas=1 --port=1080 -n openshift-gitops
5. Expose the deployment to get a service
$ oc expose deployment socks5 -n openshift-gitops
6. Attept to add repo via proxy
$ argocd repo add git@github.com:argoproj/argocd-example-apps --proxy "socks5://socks5.openshift-gitops.svc.cluster.local:1080" --name testrepo5 --ssh-private-key-path <path to ssh private key>
7. You can check the socks5 pod log at this point
( Note: If you want to test repo addition via route, navigate to Network -> Services -> 'Socks5' and edit the Yaml. Update the `type` in the socks5 service to `LoadBalancer`. Expose the service with the command below to get a route.
$ oc expose svc socks5 -n openshift-gitops
Get the Location (Found in Network -> Services -> 'Socks5' -> Location (example: af40ba0f9a3844a35b536056d302070e-2091270776.us-east-1.elb.amazonaws.com)
$ argocd repo add git@github.com:argoproj/argocd-example-apps --proxy "socks5://<LOCATION>:1080" --name testrepo5 --ssh-private-key-path <ssh private key path> --upsert
8. Create a sample app
$ argocd app create guestbook --repo git@github.com:argoproj/argocd-example-apps --path guestbook --dest-namespace openshift-gitops --dest-server https://kubernetes.default.svc --directory-recurse
9. Sync the app
$ argocd app sync guestbook
- clones
-
GITOPS-4827 [Test Execution] - ArgoCD Rollouts E2E Tests | ROSA - 4.14
- Closed
- is cloned by
-
GITOPS-5246 [Test Execution] - ArgoCD Rollouts E2E Tests | Hypershift 4.14
- Closed
-
GITOPS-5279 [Test Execution] - ArgoCD Rollouts E2E Tests | Hypershift 4.14
- Closed
-
GITOPS-5318 [Test Execution] - ArgoCD Rollouts E2E Tests | Hypershift 4.14
- Closed
-
GITOPS-5354 [Test Execution] - ArgoCD Rollouts E2E Tests | Hypershift 4.15
- Closed