Documentation ¶
Index ¶
- Constants
- Variables
- func AddAdmissionWebhooks(c Opts, virtualk8s *provider.VirtualK8S)
- func AddInformers(ctx context.Context, c Opts, k8sclientset *kubernetes.Clientset) (corev1.PodInformer, corev1.SecretInformer, corev1.ConfigMapInformer, ...)
- func GetUserHomeDir() string
- func NewCommand(ctx context.Context, name string, c Opts) *cobra.Command
- type Opts
Constants ¶
View Source
const ( EnvKubeletAddress = "VKUBELET_ADDRESS" EnvAPICertLocation = "APISERVER_CERT_LOCATION" EnvAPIKeyLocation = "APISERVER_KEY_LOCATION" )
Variables ¶
View Source
var DefaultLogger = zap.New(zap.UseDevMode(true))
Functions ¶
func AddAdmissionWebhooks ¶
func AddAdmissionWebhooks(c Opts, virtualk8s *provider.VirtualK8S)
func AddInformers ¶
func AddInformers(ctx context.Context, c Opts, k8sclientset *kubernetes.Clientset) ( corev1.PodInformer, corev1.SecretInformer, corev1.ConfigMapInformer, corev1.ServiceInformer, corev1.PersistentVolumeClaimInformer, error, )
func GetUserHomeDir ¶ added in v0.1.2
func GetUserHomeDir() string
Types ¶
type Opts ¶
type Opts struct { DefaultHostEnvironment compute.HostEnvironment // KubeletAddress determines which address to tell API Server to use. // Node listens on all of its IP addresses on port 10250 and advertises the value specified in KubeletAddress to other nodes. KubeletAddress string // KubeletPorts determines the port to listen for requests from the Kubernetes API server. KubeletPort int32 K8sAPICertFilepath string K8sAPIKeyFilepath string // Namespace to watch for pods and other resources KubeNamespace string // Node name to use when creating a node in Kubernetes NodeName string FSPollingInterval time.Duration // Number of workers to use to handle pod notifications PodSyncWorkers int InformerResyncPeriod time.Duration // Startup Timeout is how long to wait for the kubelet to start StartupTimeout time.Duration DisableTaint bool TaintKey string TaintValue string TaintEffect string }
Opts stores all the options for configuring the root virtual-kubelet command. It is used for setting flag values.
You can set the default options by creating a new `Opts` struct and passing it into `SetDefaultOpts`
Click to show internal directories.
Click to hide internal directories.