Skip to content

getporter/kubernetes-mixin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f47ca24 · Sep 2, 2022

History

56 Commits
Mar 9, 2022
Aug 30, 2020
Sep 16, 2020
Sep 1, 2022
Nov 8, 2021
Aug 31, 2020
Feb 7, 2022
Sep 17, 2020
Jan 3, 2022
Feb 7, 2022
Mar 9, 2022
Aug 10, 2022
Mar 9, 2022
Feb 23, 2021
Mar 9, 2022

Repository files navigation

kubernetes Mixin for Porter

Build Status

This is a kubernetes mixin for Porter. It executes the appropriate helm command based on which action it is included within: install, upgrade, or delete.

Install or Upgrade

porter mixin install kubernetes

Install or Upgrade canary version

porter mixin install kubernetes --version canary --url https://cdn.porter.sh/mixins/kubernetes

Install or Upgrade from feed-url

porter mixin install kubernetes --feed-url https://cdn.porter.sh/mixins/atom.xml

Manually Install or Upgrade with a specific version from github

porter mixin install kubernetes --version $VERSION --url https://github.com/getporter/kubernetes-mixin/releases/download

Mixin Configuration

Kubernetes client version

You can use the clientVersion field to specify the kubectl CLI version.

- kubernetes:
    clientVersion: v1.20.13 # Replace this value with the latest patched version of kubectl

Mixin Actions Syntax

Install Action

install:
  - kubernetes:
      description: "Install Hello World App"
      manifests:
        - /cnab/app/manifests/hello
      wait: true

Upgrade Action

upgrade:
  - kubernetes:
      description: "Upgrade Hello World App"
      manifests:
        - /cnab/app/manifests/hello
      wait: true

Uninstall Action

uninstall:
  - kubernetes:
      description: "Uninstall Hello World App"
      manifests:
        - /cnab/app/manifests/hello
      wait: true

\* Uninstall automatically applies the --ignore-not-found flag so that you can safely repeat the uninstall action without errors.

Outputs

The mixin supports extracting resource metadata from Kubernetes as outputs.

outputs:
    - name: NAME
      resourceType: RESOURCE_TYPE
      resourceName: RESOURCE_TYPE_NAME
      namespace: NAMESPACE
      jsonPath: JSON_PATH_DEFINITION