Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kubepug/kubepug-installer
kubepug-installer GitHub Action
https://github.com/kubepug/kubepug-installer
github-actions kubepug kubernetes
Last synced: about 2 months ago
JSON representation
kubepug-installer GitHub Action
- Host: GitHub
- URL: https://github.com/kubepug/kubepug-installer
- Owner: kubepug
- License: apache-2.0
- Created: 2021-11-05T15:40:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T08:45:16.000Z (3 months ago)
- Last Synced: 2024-09-26T10:08:40.638Z (3 months ago)
- Topics: github-actions, kubepug, kubernetes
- Homepage:
- Size: 36.1 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubepug-installer GitHub Action
This action enables you to install and use [kubepug](https://github.com/kubepug/kubepug) in your GitHub action workflow.
## Usage
Add the following entry to your Github workflow YAML file:
```yaml
uses: kubepug/kubepug-installer@main
with:
kubepug-release: '1.7.1' # optional
```Example using a pinned version:
```yaml
jobs:
test_action:
runs-on: ubuntu-latestpermissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: nonename: Install kubepug and test presence in path
steps:
- name: Install kubepug
uses: kubepug/kubepug-installer@main
with:
kubepug-release: '1.7.1'
- name: Check install!
run: kubepug --version
```Example using the default version:
```yaml
jobs:
test_action:
runs-on: ubuntu-latestpermissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: nonename: Install kubepug and test presence in path
steps:
- name: Install kubepug
uses: kubepug/kubepug-installer@main
- name: Check install!
run: kubepug --version
```This action does not need any GitHub permission to run, however, if your workflow needs to update, create or perform any
action against your repository, then you should change the scope of the permission appropriately.For example, if you are using the `gcr.io` as your registry to push the images you will need to give the `write` permission
to the `packages` scope.Example of a simple workflow:
```yaml
jobs:
test_action:
runs-on: ubuntu-latestenv:
HELM_VERSION: "v3.2.4"
K8S_TARGET_VERSION: "v1.16.0"permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: write
pull-requests: none
repository-projects: none
security-events: none
statuses: none
id-token: write # needed for signing the images with GitHub OIDC **not production ready**name: Install kubepug
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1- uses: azure/setup-helm@v1
with:
version: '' # default is latest stable
id: install- name: Install kubepug
uses: kubepug/kubepug-installer@main- name: Run Kubepug with your Helm Charts Repository
run: |
find charts -mindepth 1 -maxdepth 1 -type d | xargs -t -n1 -I% /bin/bash -c 'helm template % --api-versions ${K8S_TARGET_VERSION} | kubepug --error-on-deprecated --error-on-deleted --k8s-version ${K8S_TARGET_VERSION} --input-file /dev/stdin'
```### Optional Inputs
The following optional inputs:| Input | Description |
| --- | --- |
| `kubepug-release` | `kubepug` version to use instead of the default. |