Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/getporter/kubernetes-mixin
A Kubernetes mixin for Porter
https://github.com/getporter/kubernetes-mixin
kubectl kubernetes mixin porter
Last synced: 4 months ago
JSON representation
A Kubernetes mixin for Porter
- Host: GitHub
- URL: https://github.com/getporter/kubernetes-mixin
- Owner: getporter
- License: apache-2.0
- Created: 2020-08-30T00:04:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T18:41:09.000Z (4 months ago)
- Last Synced: 2024-07-15T22:54:26.696Z (4 months ago)
- Topics: kubectl, kubernetes, mixin, porter
- Language: Go
- Homepage: https://getporter.org/mixins/kubernetes
- Size: 348 KB
- Stars: 6
- Watchers: 11
- Forks: 10
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-cnab - kubernetes-mixin - kubernetes Mixin for Porter by @get_porter (Implementations / Porter)
README
# kubernetes Mixin for Porter
[![Build Status](https://dev.azure.com/getporter/porter/_apis/build/status/kubernetes-mixin?branchName=main)](https://dev.azure.com/getporter/porter/_build/latest?definitionId=9&branchName=main)
This is a kubernetes mixin for [Porter](https://github.com/getporter/porter). It executes the
appropriate helm command based on which action it is included within: `install`,
`upgrade`, or `delete`.### Install or Upgrade
```shell
porter mixin install kubernetes
```#### Install or Upgrade canary version
```shell
porter mixin install kubernetes --version canary --url https://cdn.porter.sh/mixins/kubernetes
```#### Install or Upgrade from feed-url
```shell
porter mixin install kubernetes --feed-url https://cdn.porter.sh/mixins/atom.xml
```#### Manually Install or Upgrade with a specific version from github
```shell
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.```yaml
- kubernetes:
clientVersion: v1.20.13 # Replace this value with the latest patched version of kubectl
```### Mixin Actions Syntax
#### Install Action
```yaml
install:
- kubernetes:
description: "Install Hello World App"
manifests:
- /cnab/app/manifests/hello
wait: true```
#### Upgrade Action
```yaml
upgrade:
- kubernetes:
description: "Upgrade Hello World App"
manifests:
- /cnab/app/manifests/hello
wait: true```
#### Uninstall Action
```yaml
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.
```yaml
outputs:
- name: NAME
resourceType: RESOURCE_TYPE
resourceName: RESOURCE_TYPE_NAME
namespace: NAMESPACE
jsonPath: JSON_PATH_DEFINITION
```