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

OPSEXP-3005 Add registry secret login for setup-kind action #877

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

pmacius
Copy link
Contributor

@pmacius pmacius commented Jan 21, 2025

Checklist

Description

@pmacius pmacius marked this pull request as ready for review January 21, 2025 14:57
@pmacius pmacius requested a review from a team as a code owner January 21, 2025 14:57
.github/actions/setup-kind/action.yml Outdated Show resolved Hide resolved
.github/actions/setup-kind/action.yml Outdated Show resolved Hide resolved
@pmacius pmacius changed the title OPSEXP-3005 Add registry secret login and ingress nginx configmap patch for setup-kind action OPSEXP-3005 Add registry secret login for setup-kind action Jan 22, 2025
@pmacius pmacius requested a review from gionn January 22, 2025 16:48
Comment on lines +26 to +30
import-docker-registry-secret:
description: |
Whether to create a secret for the docker registry. It will create a secret from file $HOME/.docker/config.json.
You have to login to the registry when enabling this option.
default: "false"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import-docker-registry-secret:
description: |
Whether to create a secret for the docker registry. It will create a secret from file $HOME/.docker/config.json.
You have to login to the registry when enabling this option.
default: "false"
import-docker-credentials-secret-name:
description: |
Whether to create a secret using the given name using file $HOME/.docker/config.json.
You have to login to one or more registries before using this option.

Comment on lines +69 to +71
if: inputs.import-docker-registry-secret == 'true'
run: |
kubectl create secret generic regcred \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if: inputs.import-docker-registry-secret == 'true'
run: |
kubectl create secret generic regcred \
if: inputs.import-docker-registry-secret != ''
run: |
kubectl create secret generic ${{ inputs.import-docker-credentials-secret-name }} \

@@ -1600,6 +1600,9 @@ Spin up a local kubernetes cluster with nginx ingress exposing http/https ports.
# ingress-nginx-ref: controller-v1.8.2
# Enable deploying Metrics server with KinD
# metrics: true
# Whether to create a secret for the docker registry. It will create a secret from file $HOME/.docker/config.json.
# You have to login to the registry when enabling this option (defaults to false)
# import-docker-registry-secret: "true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks a bit unreadable, maybe try to simplify every documented input

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