Skip to content

Commit

Permalink
updated ids
Browse files Browse the repository at this point in the history
  • Loading branch information
rajashekhargundeti committed May 28, 2024
1 parent 02ce85e commit cd17e29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@ jobs:
run: sleep 90

- name: user principal authentication - Verify pods are running
id: pod-names
id: pod-names-user
run: kubectl get pods -l testingSecretName=${{ env.OCI_VAULT_SECRET_NAME }} -o='custom-columns=PodName:.metadata.name' --no-headers -n app-user

- name: user principal authentication - capture pod name into env
run: echo "POD_NAME=`kubectl get pods -l testingSecretName=${{ env.OCI_VAULT_SECRET_NAME }} -o='custom-columns=PodName:.metadata.name' --no-headers -n app-user`" >> $GITHUB_ENV

- name: user principal authentication - print secret value
id: print-secret-content
id: print-secret-content-user
run: echo "SECRET_CONTENT=`kubectl exec -n app-user -it ${{ env.POD_NAME }} -- cat /mnt/secrets-store/${{ env.OCI_VAULT_SECRET_NAME }} 2> /dev/null | base64`" >> $GITHUB_ENV

# - name: convert to base64
Expand Down Expand Up @@ -285,14 +285,14 @@ jobs:
run: sleep 90

- name: workload identity principal authentication - Verify pods are running
id: pod-names
id: pod-names-workload
run: kubectl get pods -l testingSecretName=workload-${{ env.OCI_VAULT_SECRET_NAME }} -o='custom-columns=PodName:.metadata.name' --no-headers -n app-workload

- name: workload identity principal authentication - capture pod name into env
run: echo "POD_NAME=`kubectl get pods -l testingSecretName=workload-${{ env.OCI_VAULT_SECRET_NAME }} -o='custom-columns=PodName:.metadata.name' --no-headers -n app-workload`" >> $GITHUB_ENV

- name: workload identity principal authentication - print secret value
id: print-secret-content
id: print-secret-content-workload
run: echo "SECRET_CONTENT=`kubectl exec -n app-workload -it ${{ env.POD_NAME }} -- cat /mnt/secrets-store/${{ env.OCI_VAULT_SECRET_NAME }} 2> /dev/null | base64`" >> $GITHUB_ENV

- name: workload identity principal authentication - print values
Expand Down Expand Up @@ -333,14 +333,14 @@ jobs:
run: sleep 90

- name: instance principal authentication - Verify pods are running
id: pod-names
id: pod-names-instance
run: kubectl get pods -l testingSecretName=instance-${{ env.OCI_VAULT_SECRET_NAME }} -o='custom-columns=PodName:.metadata.name' --no-headers -n app-instance

- name: instance principal authentication - capture pod name into env
run: echo "POD_NAME=`kubectl get pods -l testingSecretName=instance-${{ env.OCI_VAULT_SECRET_NAME }} -o='custom-columns=PodName:.metadata.name' --no-headers -n app-instance`" >> $GITHUB_ENV

- name: instance principal authentication - print secret value
id: print-secret-content
id: print-secret-content-instance
run: echo "SECRET_CONTENT=`kubectl exec -n app-instance -it ${{ env.POD_NAME }} -- cat /mnt/secrets-store/${{ env.OCI_VAULT_SECRET_NAME }} 2> /dev/null | base64`" >> $GITHUB_ENV

- name: instance principal authentication - print values
Expand Down

0 comments on commit cd17e29

Please sign in to comment.