Closed varshab1210 closed 3 years ago
To get the argocd admin password we need the kubectl command to execute command $ kubectl get secret argocd-cluster-cluster -n openshift-gitops -ojsonpath='{.data.admin.password}' | base64 -d. So we need the kubectl binary available in openshift CI test container path.
@varshab1210 Can you please try this scenario in the local feature file. For example
Scenario: Execute KAM bootstrap command with --output and --push-to-git=true flags
When executing "kam bootstrap --service-repo-url $SERVICE_REPO_URL --gitops-repo-url $GITOPS_REPO_URL --git-host-access-token $GIT_ACCESS_TOKEN --push-to-git=true --output bootstrapresources" succeeds
Then stderr should be empty
When executing "oc apply -k bootstrapresources/config/argocd/" succeeds
Then stderr should be empty
And login "argocd-cluster-server"
To get the argocd admin password we need the kubectl command to execute command $ kubectl get secret argocd-cluster-cluster -n openshift-gitops -ojsonpath='{.data.admin.password}' | base64 -d. So we need the kubectl binary available in openshift CI test container path.
@varshab1210 Can you please try this scenario in the local feature file. For example
Scenario: Execute KAM bootstrap command with --output and --push-to-git=true flags When executing "kam bootstrap --service-repo-url $SERVICE_REPO_URL --gitops-repo-url $GITOPS_REPO_URL --git-host-access-token $GIT_ACCESS_TOKEN --push-to-git=true --output bootstrapresources" succeeds Then stderr should be empty When executing "oc apply -k bootstrapresources/config/argocd/" succeeds Then stderr should be empty And login "argocd-cluster-server"
Sure, I will do it in a separate pr. Thanks @amitkrout for scenario step
Thanks @varshab1210 for addressing all review comments. /approve /lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: amitkrout
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What type of PR is this?
/kind enhancement
What does this PR do / why we need it:
To get the argocd admin password we need the kubectl command to execute command
$ kubectl get secret argocd-cluster-cluster -n openshift-gitops -ojsonpath='{.data.admin\.password}' | base64 -d
. So we need the kubectl binary available in openshift CI test container path.Have you updated the necessary documentation?
Which issue(s) this PR fixes:
Fixes #?
N/A
How to test changes / Special notes to the reviewer:
In the CI test container kubectl binary should be downloaded to
bin/
directory. For local verification you can execute the scriptinstall-kubectl.sh
and check the kubectl binary should be downloaded tobin/
directory