Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add network-plugin option #32

Merged
merged 2 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ By default setup-minikube caches the ISO, kicbase, and preload using GitHub Acti
</pre>
</details>

<details>
<summary>network-plugin (optional)</summary>
<pre>
- default: auto
- options:
- cni
</pre>
</details>

<details>
<summary>cni (optional)</summary>
<pre>
Expand All @@ -116,6 +125,19 @@ By default setup-minikube caches the ISO, kicbase, and preload using GitHub Acti
</pre>
</details>

<details>
<summary>wait (optional)</summary>
<pre>
- default: all
- options:
- comma separated list of Kubernetes components (e.g. apiserver,system_pods,default_sa,apps_running,node_ready,kubelet)
- all
- none
- true
- false
</pre>
</details>

<details>
<summary>addons (optional)</summary>
<pre>
Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ inputs:
description: 'Amount of RAM to allocate to Kubernetes (format: <number>[<unit>], where unit = b, k, m or g). Use "max" to use the maximum amount of memory.'
required: false
default: ''
network-plugin:
description: 'Kubelet network plug-in to use (default: auto). Valid options: cni'
required: false
default: ''
cni:
description: 'CNI plug-in to use. Valid options: auto, bridge, calico, cilium, flannel, kindnet, or path to a CNI manifest'
required: false
Expand All @@ -53,6 +57,10 @@ inputs:
description: 'Mount the source directory from your host into the target directory inside the cluster (format: <source directory>:<target directory>)'
required: false
default: ''
wait:
description: 'comma separated list of Kubernetes components to verify and wait for after starting a cluster. defaults to "apiserver,system_pods", available options: "apiserver,system_pods,default_sa,apps_running,node_ready,kubelet". Other acceptable values are "all" or "none", "true" and "false"'
required: false
default: 'all'
runs:
using: 'node16'
main: 'dist/index.js'
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export const setArgs = (args: string[]) => {
{key: 'listen-address', flag: '--listen-address'},
{key: 'memory', flag: '--memory'},
{key: 'mount-path', flag: '--mount-string'},
{key: 'network-plugin', flag: '--network-plugin'},
{key: 'wait', flag: '--wait'},
]
inputs.forEach((input) => {
const value = getInput(input.key).toLowerCase()
Expand Down
2 changes: 1 addition & 1 deletion src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {setArgs} from './inputs'
import {installNoneDriverDeps} from './none-driver'

export const startMinikube = async (): Promise<void> => {
const args = ['start', '--wait', 'all']
const args = ['start']
setArgs(args)
const cacheHits = await restoreCaches()
await installNoneDriverDeps()
Expand Down