A simple action providing kubectl and its configuration.
steps:
# Will watch all deployments labeled with current commit.
- name: Watch rollout
uses: ironhalik/kube-rollout-action@v1
with:
config: ${{ secrets.CONFIG }} # base64 encoded or neat
namespace: my-awesome-app
selector: commit==${{ github.sha }}
Supported inputs are:
debugcan be enabled explicitly via action input, or is implicitly enabled when a job is rerun with debug enabled. Will make kubectl and related scripts verbose.configkubectl config file. Can be either a whole config file (e.g. via ${{ secrets.CONFIG }}), or base64 encoded.eks_clusterThe name of the EKS cluster to get config for. Will use AWS CLI to generate a valid config. Will need standardaws-clienv vars and eks:DescribeCluster permission. Mutually exclusive withconfig.contextkubectl config context to use. Not needed if the config has a context already selected.eks_role_arnIAM role ARN that should be assumed byaws-cliwhen interacting with EKS cluster.namespacenamespace to use. You can use env vars here.resourceresource to watch.namename of the deployment to watch. Incompatible with selector.selectorkubectl selector for the deployments to watch. Incompatible with name.timeoutHow long to try tailing for.
Many thanks to the creators of the tools included:
kubectl, helm, stern, aws-cli