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

pixelfederation/gh-action-helm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helm GitHub Actions

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

Description

Helm upgrade

Inputs

parameter description required default type
namespace K8s namespace to use true string
release Helm relsese name true string
kubeconfig Path to kubeconfig false string
directory Working directory false . string
chart Helm chart true string
version Helm chart version true string
files Helm values files false list
set Helm values set false map
timeout Helm deploy timeout false 600 int
atomic Helm deploy atomic false true bool
wait Helm deploy wait false true bool
install Helm deploy install false true bool
dryrun Helm deploy with dry run false false bool

Example

- name: Helm upgrade
  id: helm-upgrade
  uses: pixelfederation/gh-action-helm/upgrade
  with:
    namespace: echoheaders
    release: "tombotest"
    chart: "tom"
    version: "0.0.1"
    wait: false # optional
    dryrun: true # optional
    atomic: false # optional
    kubeconfig: /root/.kube/config # optional
    files: | # list is defined as value per line
      foo.yaml
      bar.yaml
    set: | # map is defined as key,val pipe delimited for each line
      service.selector.app | projectName
      service.selector.appVersion | deploymentName 
      service.selector[0].release | deploymentName 
      buildLabels.jenkinsBuildJobName | ${{ steps.justvar.outputs.JUST_VARIABLE }}
      buildLabels.jenkinsBuildID | ${{ matrix.os }}

Description

Helm cleanup releses

Inputs

parameter description required default type
namespace K8s namespace to use true string
regexp Regexp to match deploys to be deleted true string
excludes Exclude deploys from delete false list
kubeconfig Path to kubeconfig false string
dir Working directory false . string
dryrun Helm deploy with dry run false false bool

Example

- name: Helm clenup
  id: helm-cleanup
  uses: pixelfederation/gh-action-helm/cleanup
  with:
    namespace: echoheaders
    regexp: "^(tombo|kombo).*" #regexp matching deployment to delete
    excludes: |
      .*-${{ appVersion }} # usually we want to preserve new deploy
      .*login.* # preserve login
      .*-ingress # preserve live ingress