Skip to content

Commit

Permalink
Added the decoder for secret
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Dec 18, 2024
1 parent 8712dbf commit 979334d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/e2e_tests_brownfield_use_case.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ log_and_run kubectl apply -f cosi-examples/brownfield/bucketaccessclass.yaml
log_and_run echo "Applying Bucket Access..."
log_and_run kubectl apply -f cosi-examples/brownfield/bucketaccess.yaml

# Step 10: Verify the brownfield-bucket-secret
log_and_run echo "Verifying brownfield-bucket-secret in the default namespace..."
SECRET_JSON="$(kubectl get secret "$SECRET_NAME" --namespace "$NAMESPACE" -o json)"
log_and_run kubectl get all --namespace "$NAMESPACE"
kubectl get secret "$SECRET_NAME" --namespace "$NAMESPACE" -o json
echo $SECRET_JSON

# Decode the Base64 encoded BucketInfo
BUCKET_INFO_BASE64="$(echo "$SECRET_JSON" | jq -r '.data.BucketInfo')"
BUCKET_INFO_JSON="$(echo "$BUCKET_INFO_BASE64" | base64 --decode)"

log_and_run echo "Decoded BucketInfo: $BUCKET_INFO_JSON"

Expand Down

0 comments on commit 979334d

Please sign in to comment.