Fix wrong context name for kubectl #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hurui200320/actions-kubernetes:fix-context-name"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Today I was testing the action and got the error in this run: https://git.cleverthis.com/clevermicro/amq-adapter-python/actions/runs/630/jobs/2
When creating a kind cluster with a name:
kind create cluster -n name, the actual context will be named askind-name. Thus, in the action, when we need to use kubctl command, the context name should bekind-${{ inputs.inputs.cluster-name }}.This PR fixed this issue, along with the following changes:
--docker-emailflag when adding the docker registry secretThe modified action has been used in the clevermicro's python adapter and is working fine.