Skip to content

Commit

Permalink
Comment out credential setup for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPansino committed May 14, 2024
1 parent dcb90d3 commit 7bbd268
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Login to Docker Hub Container Registry
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # 3.1.0
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Login to Docker Hub Container Registry
# uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # 3.1.0
# with:
# username: ${{ github.repository_owner }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and publish init container image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # 5.3.0
Expand Down
24 changes: 24 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# helm upgrade --install newrelic-agent-operator newrelic-agent-operator/newrelic-agent-operator --set licenseKey=$NEW_RELIC_LICENSE_KEY -n newrelic
# kubectl create secret generic newrelic-key-secret -n newrelic --from-literal=new_relic_license_key=$NEW_RELIC_LICENSE_KEY

# kubectl delete secret newrelic-key-secret -n test-python --ignore-not-found
# kubectl create secret generic newrelic-key-secret -n test-python --from-literal=new_relic_license_key=$NEW_RELIC_LICENSE_KEY

minikube image build -t e2e/initcontainer-python:e2e python/
minikube image build -t e2e/test-app-python:e2e tests/python/

kubectl delete -f tests/python/customresource.yaml -n test-python
kubectl apply -f tests/python/customresource.yaml -n test-python

kubectl delete -f tests/python/test_app_deployment.yaml -n test-python
kubectl apply -f tests/python/test_app_deployment.yaml -n test-python

sleep 1
kubectl get pods --namespace=test-python
kubectl wait --for=condition=Ready --namespace test-python --all pods

minikube service test-app-python-service --namespace test-python

# kubectl logs -n test-python $(kubectl get pods --namespace=test-python | grep test-app-python | cut -d" " -f1)

0 comments on commit 7bbd268

Please sign in to comment.