generated from pulumi/pulumi-provider-boilerplate
/
config.go
44 lines (35 loc) · 1.48 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package config
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
// Kind config file to use. Optional
func GetConfigFile(ctx *pulumi.Context) string {
return config.Get(ctx, "kind:configFile")
}
// File to save generated kubeconfig. Default: not set. Optional
func GetKubeconfigFile(ctx *pulumi.Context) string {
return config.Get(ctx, "kind:kubeconfigFile")
}
// Node image to use. Optional
func GetNodeImage(ctx *pulumi.Context) string {
return config.Get(ctx, "kind:nodeImage")
}
// Provider to use. Supports docker/podman. Default: docker. Optional
func GetProvider(ctx *pulumi.Context) string {
return config.Get(ctx, "kind:provider")
}
// Whether to retain the nodes when creation fails. Needs manual cleanup when set to true Default: false. Optional
func GetRetainNodesOnFailure(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "kind:retainNodesOnFailure")
}
// Stop before running kubeadm commands. This would need the user to manually retrieve the Kubeconfig. Default: false. Optional
func GetStopBeforeSettingK8s(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "kind:stopBeforeSettingK8s")
}
// Time in seconds to wait for nodes to become ready. Default: none. Optional
func GetWaitForNodeReady(ctx *pulumi.Context) int {
return config.GetInt(ctx, "kind:waitForNodeReady")
}