Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read basic-auth data from secret #1

Merged
merged 14 commits into from
Oct 15, 2024

Conversation

matthijswolters-rl
Copy link
Collaborator

Reads basic-auth data from secret. Does that by creating a kubernetes client based on the service account used by the pod and reading secrets in it's own namespace. For more info read the included docs.

To Test:

  1. run a local kubernetes cluster and set KUBECONFIG to the correct kubeconfig
  2. run make install in repo dir
  3. run the local docker registry docker run -d -p 5000:5000 --name registry registry:2
  4. build the image and push it
  • docker build -t localhost:5000/controller:latest .
  • docker push localhost:5000/controller:latest
  1. add the secret imc-config and test-secret and the endpoint monitor (ask me for the commands)
  2. run make deploy
  3. edit the deployment in ingressmonitorcontroller-system to use the image localhost:5000/controller:latest
  4. kill the pod so it pulls the most recent version

matthijswolters-rl added a commit that referenced this pull request Oct 4, 2024
matthijswolters-rl added a commit that referenced this pull request Oct 4, 2024
pkg/secret/secrets.go Show resolved Hide resolved
pkg/secret/secrets.go Show resolved Hide resolved
@matthijswolters-rl matthijswolters-rl merged commit 076e1ab into master Oct 15, 2024
1 check passed
@matthijswolters-rl matthijswolters-rl deleted the feature/read-basicauth-from-secret branch October 15, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants