This repo provides a collection of kubectl related actions for use in your workflows.
parameter | description | required | default |
---|---|---|---|
namespace | K8s namespace to use | true |
|
regexp | Regexp to match hpa | true |
|
kubeconfig | Path to kubeconfig | false |
parameter | description |
---|---|
replicas | Min replicas |
- name: Get min replicas
id: get-replicas
uses: pixelfederation/gh-action-kubectl/[email protected]
with:
namespace: echoheaders
regexp: ".*echo.*"
- name: Print min replicas output
run: |
echo "${{ steps.get-replicas.outputs.replicas }}"