7
// PlayOptions are optional options for replaying kube YAML files
9
//go:generate go run ../generator/generator.go PlayOptions
10
type PlayOptions struct {
11
// Annotations - Annotations to add to Pods
12
Annotations map[string]string
13
// Authfile - path to an authentication file.
15
// CertDir - to a directory containing TLS certifications and keys.
17
// Username for authenticating against the registry.
19
// Password for authenticating against the registry.
21
// Network - name of the networks to connect to.
23
// NoHosts - do not generate /etc/hosts file in pod's containers
25
// Quiet - suppress output when pulling images.
27
// SignaturePolicy - path to a signature-policy file.
28
SignaturePolicy *string
29
// SkipTLSVerify - skip https and certificate validation when
30
// contacting container registries.
31
SkipTLSVerify *bool `schema:"-"`
32
// SeccompProfileRoot - path to a directory containing seccomp
34
SeccompProfileRoot *string
35
// StaticIPs - Static IP address used by the pod(s).
37
// StaticMACs - Static MAC address used by the pod(s).
38
StaticMACs *[]net.HardwareAddr
39
// ConfigMaps - slice of pathnames to kubernetes configmap YAMLs.
41
// LogDriver for the container. For example: journald
43
// LogOptions for the container. For example: journald
45
// Replace - replace existing pods and containers
47
// Start - don't start the pod if false
49
// NoTrunc - use annotations that were not truncated to the
50
// Kubernetes maximum of 63 characters
52
// Userns - define the user namespace to use.
54
// Force - remove volumes on --down
56
// PublishPorts - configure how to expose ports configured inside the K8S YAML file
58
// PublishAllPorts - whether to publish all ports defined in the K8S YAML file
59
// (containerPort, hostPort) otherwise only hostPort will be published
61
// Wait - indicates whether to return after having created the pods
63
ServiceContainer *bool
66
// ApplyOptions are optional options for applying kube YAML files to a k8s cluster
68
//go:generate go run ../generator/generator.go ApplyOptions
69
type ApplyOptions struct {
70
// Kubeconfig - path to the cluster's kubeconfig file.
72
// Namespace - namespace to deploy the workload in on the cluster.
74
// CACertFile - the path to the CA cert file for the Kubernetes cluster.
76
// File - the path to the Kubernetes yaml to deploy.
78
// Service - creates a service for the container being deployed.
82
// DownOptions are optional options for tearing down kube YAML files to a k8s cluster
84
//go:generate go run ../generator/generator.go DownOptions
85
type DownOptions struct {
86
// Force - remove volumes on --down