Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

pixelfederation/gh-action-kubectl

Repository files navigation

kubectl GitHub Actions

This repo provides a collection of kubectl related actions for use in your workflows.

Usage

Example workflow

Inputs

parameter description required default
namespace K8s namespace to use true
regexp Regexp to match hpa true
kubeconfig Path to kubeconfig false

Outputs

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 }}"