-
Task
-
Resolution: Won't Do
-
Undefined
-
None
-
None
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, change the `type` in the socks5 service to `LoadBalancer` and expose the service to get a route
$ oc expose svc socks5 -n openshift-gitops
$ argocd repo add git@github.com:argoproj/argocd-example-apps --proxy "socks5://<aa7d68f412f7d4c7cb74f6003e866ce7-1367938740.us-east-2.elb.amazonaws.com>: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