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

Merged
merged 8 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/actions/setup-kind/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ inputs:
metrics:
description: Whether Metrics Server should be installed upon cluster creation
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.
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -58,3 +62,11 @@ runs:
--for=condition=ready pod \
--selector=app.kubernetes.io/component=controller \
--timeout=90s

- name: Create registries auth secret
shell: bash
if: inputs.import-docker-credentials-secret-name != ''
run: |
kubectl create secret generic ${{ inputs.import-docker-credentials-secret-name }} \
--from-file=.dockerconfigjson=$HOME/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
10 changes: 6 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1593,13 +1593,15 @@ Spin up a local kubernetes cluster with nginx ingress exposing http/https ports.
with:
# Specify kind and k8s version to use.
# see https://github.com/kubernetes-sigs/kind/releases
# kind-version: v0.20.0
# kind-node-image: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
kind-version: v0.20.0
kind-node-image: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
# Optional but ensure repeatable builds (defaults to latest nginx ingress version otherwise).
# see https://github.com/kubernetes/ingress-nginx
# ingress-nginx-ref: controller-v1.8.2
ingress-nginx-ref: controller-v1.8.2
# Enable deploying Metrics server with KinD
# metrics: true
metrics: true
# Enable creating docker registry secret using given name
import-docker-credentials-secret-name: regcred
- name: Helm deploy
run: |
helm dep up ./helm/chart
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.10.0
v8.11.0
Loading