Skip to content

Commit

Permalink
added minikube addons flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bushwhackr committed Oct 20, 2022
1 parent 147e039 commit 3b01c0a
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: "build-test"
on: # rebuild any PRs and main branch changes
pull_request:
types:
[ opened, synchronize, reopened ]
push:
branches:
- master
Expand All @@ -10,14 +12,14 @@ jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- run: |
npm install
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- uses: ./
with:
milliseconds: 1000
with:
addons: ingress
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,48 @@
</pre>
</details>

<details>
<summary>addons (optional)</summary>
<pre>
- default: ''
- options:
- ambassador
- auto-pause
- csi-hostpath-driver
- dashboard
- default-storageclass
- efk
- freshpod
- gcp-auth
- gvisor
- headlamp
- helm-tiller
- inaccel
- ingress
- ingress-dns
- istio
- istio-provisioner
- kong
- kubevirt
- logviewer
- metallb
- metrics-server
- nvidia-driver-installer
- nvidia-gpu-device-plugin
- olm
- pod-security-policy
- portainer
- registry
- registry-aliases
- registry-creds
- storage-provisioner
- storage-provisioner-gluster
- volumesnapshots
- (minikube addons list)
- example: ingress,registry
</pre>
</details>

## Example 1:
#### Start Kubernetes on pull request

Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'setup-minikube'
description: 'test your app against real Kubernetes.'
author: 'Medya Gh'
branding:
icon: 'box'
icon: 'box'
color: 'blue'
inputs:
minikube-version:
Expand Down Expand Up @@ -33,6 +33,10 @@ inputs:
description: 'CNI plug-in to use. Valid options: auto, bridge, calico, cilium, flannel, kindnet, or path to a CNI manifest'
required: false
default: 'auto'
addons:
description: 'Choose optional addons to install. Valid options: ingress, gcp-auth, registry ...'
required: false
default: ''
runs:
using: 'node16'
main: 'dist/index.js'
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function setArgs(args) {
{ key: 'cpus', flag: '--cpus' },
{ key: 'memory', flag: '--memory' },
{ key: 'cni', flag: '--cni' },
{ key: 'addons', flag: '--addons' },
];
inputs.forEach((input) => {
const value = (0, core_1.getInput)(input.key).toLowerCase();
Expand Down
1 change: 1 addition & 0 deletions src/minikube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export function setArgs(args: string[]) {
{key: 'cpus', flag: '--cpus'},
{key: 'memory', flag: '--memory'},
{key: 'cni', flag: '--cni'},
{key: 'addons', flag: '--addons'},
]
inputs.forEach((input) => {
const value = getInput(input.key).toLowerCase()
Expand Down

0 comments on commit 3b01c0a

Please sign in to comment.