Documentation ¶
Overview ¶
Package k3dv1alpha5 implements the v1alpha4 apiVersion of k3d's config file.
+k8s:deepcopy-gen=package
Index ¶
- type EnvVarWithNodeFilters
- type K3sArgWithNodeFilters
- type LabelWithNodeFilters
- type ObjectMeta
- type PortWithNodeFilters
- type SimpleConfig
- type SimpleConfigHostAlias
- type SimpleConfigOptions
- type SimpleConfigOptionsK3d
- type SimpleConfigOptionsK3dLoadbalancer
- type SimpleConfigOptionsK3s
- type SimpleConfigOptionsKubeconfig
- type SimpleConfigOptionsRuntime
- type SimpleConfigRegistries
- type SimpleConfigRegistryCreateConfig
- type SimpleExposureOpts
- type TypeMeta
- type Ulimit
- type VolumeWithNodeFilters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvVarWithNodeFilters ¶
type EnvVarWithNodeFilters struct { EnvVar string `mapstructure:"envVar" yaml:"envVar,omitempty"` NodeFilters []string `mapstructure:"nodeFilters" yaml:"nodeFilters,omitempty"` }
func (*EnvVarWithNodeFilters) DeepCopy ¶
func (in *EnvVarWithNodeFilters) DeepCopy() *EnvVarWithNodeFilters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVarWithNodeFilters.
func (*EnvVarWithNodeFilters) DeepCopyInto ¶
func (in *EnvVarWithNodeFilters) DeepCopyInto(out *EnvVarWithNodeFilters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K3sArgWithNodeFilters ¶
type K3sArgWithNodeFilters struct { Arg string `mapstructure:"arg" yaml:"arg,omitempty"` NodeFilters []string `mapstructure:"nodeFilters" yaml:"nodeFilters,omitempty"` }
func (*K3sArgWithNodeFilters) DeepCopy ¶
func (in *K3sArgWithNodeFilters) DeepCopy() *K3sArgWithNodeFilters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3sArgWithNodeFilters.
func (*K3sArgWithNodeFilters) DeepCopyInto ¶
func (in *K3sArgWithNodeFilters) DeepCopyInto(out *K3sArgWithNodeFilters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LabelWithNodeFilters ¶
type LabelWithNodeFilters struct { Label string `mapstructure:"label" yaml:"label,omitempty"` NodeFilters []string `mapstructure:"nodeFilters" yaml:"nodeFilters,omitempty"` }
func (*LabelWithNodeFilters) DeepCopy ¶
func (in *LabelWithNodeFilters) DeepCopy() *LabelWithNodeFilters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelWithNodeFilters.
func (*LabelWithNodeFilters) DeepCopyInto ¶
func (in *LabelWithNodeFilters) DeepCopyInto(out *LabelWithNodeFilters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectMeta ¶
type ObjectMeta struct {
Name string `mapstructure:"name,omitempty" yaml:"name,omitempty"`
}
func (*ObjectMeta) DeepCopy ¶
func (in *ObjectMeta) DeepCopy() *ObjectMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMeta.
func (*ObjectMeta) DeepCopyInto ¶
func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PortWithNodeFilters ¶
type PortWithNodeFilters struct { Port string `mapstructure:"port" yaml:"port,omitempty"` NodeFilters []string `mapstructure:"nodeFilters" yaml:"nodeFilters,omitempty"` }
func (*PortWithNodeFilters) DeepCopy ¶
func (in *PortWithNodeFilters) DeepCopy() *PortWithNodeFilters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortWithNodeFilters.
func (*PortWithNodeFilters) DeepCopyInto ¶
func (in *PortWithNodeFilters) DeepCopyInto(out *PortWithNodeFilters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfig ¶
type SimpleConfig struct { TypeMeta `mapstructure:",squash" yaml:",inline"` ObjectMeta `mapstructure:"metadata" yaml:"metadata,omitempty"` Servers int `mapstructure:"servers" yaml:"servers,omitempty"` //nolint:lll // default 1 Agents int `mapstructure:"agents" yaml:"agents,omitempty"` //nolint:lll // default 0 ExposeAPI SimpleExposureOpts `mapstructure:"kubeAPI" yaml:"kubeAPI,omitempty"` Image string `mapstructure:"image" yaml:"image,omitempty"` Network string `mapstructure:"network" yaml:"network,omitempty"` Subnet string `mapstructure:"subnet" yaml:"subnet,omitempty"` ClusterToken string `mapstructure:"token" yaml:"clusterToken,omitempty"` // default: auto-generated Volumes []VolumeWithNodeFilters `mapstructure:"volumes" yaml:"volumes,omitempty"` Ports []PortWithNodeFilters `mapstructure:"ports" yaml:"ports,omitempty"` Options SimpleConfigOptions `mapstructure:"options" yaml:"options,omitempty"` Env []EnvVarWithNodeFilters `mapstructure:"env" yaml:"env,omitempty"` Registries SimpleConfigRegistries `mapstructure:"registries" yaml:"registries,omitempty"` HostAliases []SimpleConfigHostAlias `mapstructure:"hostAliases" yaml:"hostAliases,omitempty"` }
SimpleConfig describes the toplevel k3d configuration file.
func (*SimpleConfig) DeepCopy ¶
func (in *SimpleConfig) DeepCopy() *SimpleConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfig.
func (*SimpleConfig) DeepCopyInto ¶
func (in *SimpleConfig) DeepCopyInto(out *SimpleConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfigHostAlias ¶
type SimpleConfigHostAlias struct { IP string `mapstructure:"ip" yaml:"ip" json:"ip"` Hostnames []string `mapstructure:"hostnames" yaml:"hostnames" json:"hostnames"` }
func (*SimpleConfigHostAlias) DeepCopy ¶
func (in *SimpleConfigHostAlias) DeepCopy() *SimpleConfigHostAlias
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfigHostAlias.
func (*SimpleConfigHostAlias) DeepCopyInto ¶
func (in *SimpleConfigHostAlias) DeepCopyInto(out *SimpleConfigHostAlias)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfigOptions ¶
type SimpleConfigOptions struct { K3dOptions SimpleConfigOptionsK3d `mapstructure:"k3d" yaml:"k3d"` K3sOptions SimpleConfigOptionsK3s `mapstructure:"k3s" yaml:"k3s"` KubeconfigOptions SimpleConfigOptionsKubeconfig `mapstructure:"kubeconfig" yaml:"kubeconfig"` Runtime SimpleConfigOptionsRuntime `mapstructure:"runtime" yaml:"runtime"` }
func (*SimpleConfigOptions) DeepCopy ¶
func (in *SimpleConfigOptions) DeepCopy() *SimpleConfigOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfigOptions.
func (*SimpleConfigOptions) DeepCopyInto ¶
func (in *SimpleConfigOptions) DeepCopyInto(out *SimpleConfigOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfigOptionsK3d ¶
type SimpleConfigOptionsK3d struct { Wait bool `mapstructure:"wait" yaml:"wait"` Timeout time.Duration `mapstructure:"timeout" yaml:"timeout,omitempty"` DisableLoadbalancer bool `mapstructure:"disableLoadbalancer" yaml:"disableLoadbalancer"` DisableImageVolume bool `mapstructure:"disableImageVolume" yaml:"disableImageVolume"` NoRollback bool `mapstructure:"disableRollback" yaml:"disableRollback"` Loadbalancer SimpleConfigOptionsK3dLoadbalancer `mapstructure:"loadbalancer" yaml:"loadbalancer,omitempty"` }
func (*SimpleConfigOptionsK3d) DeepCopy ¶
func (in *SimpleConfigOptionsK3d) DeepCopy() *SimpleConfigOptionsK3d
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfigOptionsK3d.
func (*SimpleConfigOptionsK3d) DeepCopyInto ¶
func (in *SimpleConfigOptionsK3d) DeepCopyInto(out *SimpleConfigOptionsK3d)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfigOptionsK3dLoadbalancer ¶
type SimpleConfigOptionsK3dLoadbalancer struct {
ConfigOverrides []string `mapstructure:"configOverrides" yaml:"configOverrides,omitempty"`
}
func (*SimpleConfigOptionsK3dLoadbalancer) DeepCopy ¶
func (in *SimpleConfigOptionsK3dLoadbalancer) DeepCopy() *SimpleConfigOptionsK3dLoadbalancer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfigOptionsK3dLoadbalancer.
func (*SimpleConfigOptionsK3dLoadbalancer) DeepCopyInto ¶
func (in *SimpleConfigOptionsK3dLoadbalancer) DeepCopyInto(out *SimpleConfigOptionsK3dLoadbalancer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfigOptionsK3s ¶
type SimpleConfigOptionsK3s struct { ExtraArgs []K3sArgWithNodeFilters `mapstructure:"extraArgs" yaml:"extraArgs,omitempty"` NodeLabels []LabelWithNodeFilters `mapstructure:"nodeLabels" yaml:"nodeLabels,omitempty"` }
func (*SimpleConfigOptionsK3s) DeepCopy ¶
func (in *SimpleConfigOptionsK3s) DeepCopy() *SimpleConfigOptionsK3s
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfigOptionsK3s.
func (*SimpleConfigOptionsK3s) DeepCopyInto ¶
func (in *SimpleConfigOptionsK3s) DeepCopyInto(out *SimpleConfigOptionsK3s)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfigOptionsKubeconfig ¶
type SimpleConfigOptionsKubeconfig struct { UpdateDefaultKubeconfig bool `mapstructure:"updateDefaultKubeconfig" yaml:"updateDefaultKubeconfig,omitempty"` // default: true SwitchCurrentContext bool `mapstructure:"switchCurrentContext" yaml:"switchCurrentContext,omitempty"` //nolint:lll // default: true }
SimpleConfigOptionsKubeconfig describes the set of options referring to the kubeconfig during cluster creation.
func (*SimpleConfigOptionsKubeconfig) DeepCopy ¶
func (in *SimpleConfigOptionsKubeconfig) DeepCopy() *SimpleConfigOptionsKubeconfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfigOptionsKubeconfig.
func (*SimpleConfigOptionsKubeconfig) DeepCopyInto ¶
func (in *SimpleConfigOptionsKubeconfig) DeepCopyInto(out *SimpleConfigOptionsKubeconfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfigOptionsRuntime ¶
type SimpleConfigOptionsRuntime struct { GPURequest string `mapstructure:"gpuRequest" yaml:"gpuRequest,omitempty"` ServersMemory string `mapstructure:"serversMemory" yaml:"serversMemory,omitempty"` AgentsMemory string `mapstructure:"agentsMemory" yaml:"agentsMemory,omitempty"` HostPidMode bool `mapstructure:"hostPidMode" yyaml:"hostPidMode,omitempty"` Labels []LabelWithNodeFilters `mapstructure:"labels" yaml:"labels,omitempty"` Ulimits []Ulimit `mapstructure:"ulimits" yaml:"ulimits,omitempty"` }
func (*SimpleConfigOptionsRuntime) DeepCopy ¶
func (in *SimpleConfigOptionsRuntime) DeepCopy() *SimpleConfigOptionsRuntime
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfigOptionsRuntime.
func (*SimpleConfigOptionsRuntime) DeepCopyInto ¶
func (in *SimpleConfigOptionsRuntime) DeepCopyInto(out *SimpleConfigOptionsRuntime)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfigRegistries ¶
type SimpleConfigRegistries struct { Use []string `mapstructure:"use" yaml:"use,omitempty"` Create *SimpleConfigRegistryCreateConfig `mapstructure:"create" yaml:"create,omitempty"` Config string `mapstructure:"config" yaml:"config,omitempty"` // registries.yaml (k3s config for containerd registry override) }
func (*SimpleConfigRegistries) DeepCopy ¶
func (in *SimpleConfigRegistries) DeepCopy() *SimpleConfigRegistries
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfigRegistries.
func (*SimpleConfigRegistries) DeepCopyInto ¶
func (in *SimpleConfigRegistries) DeepCopyInto(out *SimpleConfigRegistries)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleConfigRegistryCreateConfig ¶
type SimpleConfigRegistryCreateConfig struct { Name string `mapstructure:"name" yaml:"name,omitempty"` Host string `mapstructure:"host" yaml:"host,omitempty"` HostPort string `mapstructure:"hostPort" yaml:"hostPort,omitempty"` Image string `mapstructure:"image" yaml:"image,omitempty"` Volumes []string `mapstructure:"volumes" yaml:"volumes,omitempty"` }
func (*SimpleConfigRegistryCreateConfig) DeepCopy ¶
func (in *SimpleConfigRegistryCreateConfig) DeepCopy() *SimpleConfigRegistryCreateConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleConfigRegistryCreateConfig.
func (*SimpleConfigRegistryCreateConfig) DeepCopyInto ¶
func (in *SimpleConfigRegistryCreateConfig) DeepCopyInto(out *SimpleConfigRegistryCreateConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SimpleExposureOpts ¶
type SimpleExposureOpts struct { Host string `mapstructure:"host" yaml:"host,omitempty"` HostIP string `mapstructure:"hostIP" yaml:"hostIP,omitempty"` HostPort string `mapstructure:"hostPort" yaml:"hostPort,omitempty"` }
SimpleExposureOpts provides a simplified syntax compared to the original k3d.ExposureOpts
func (*SimpleExposureOpts) DeepCopy ¶
func (in *SimpleExposureOpts) DeepCopy() *SimpleExposureOpts
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleExposureOpts.
func (*SimpleExposureOpts) DeepCopyInto ¶
func (in *SimpleExposureOpts) DeepCopyInto(out *SimpleExposureOpts)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TypeMeta ¶
type TypeMeta struct { Kind string `yaml:"kind,omitempty"` APIVersion string `yaml:"apiVersion,omitempty"` }
TypeMeta partially copies apimachinery/pkg/apis/meta/v1.TypeMeta No need for a direct dependence; the fields are stable.
func (*TypeMeta) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypeMeta.
func (*TypeMeta) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Ulimit ¶
type Ulimit struct { Name string `mapstructure:"name" yaml:"name"` Soft int64 `mapstructure:"soft" yaml:"soft"` Hard int64 `mapstructure:"hard" yaml:"hard"` }
func (*Ulimit) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ulimit.
func (*Ulimit) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeWithNodeFilters ¶
type VolumeWithNodeFilters struct { Volume string `mapstructure:"volume" yaml:"volume,omitempty"` NodeFilters []string `mapstructure:"nodeFilters" yaml:"nodeFilters,omitempty"` }
func (*VolumeWithNodeFilters) DeepCopy ¶
func (in *VolumeWithNodeFilters) DeepCopy() *VolumeWithNodeFilters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeWithNodeFilters.
func (*VolumeWithNodeFilters) DeepCopyInto ¶
func (in *VolumeWithNodeFilters) DeepCopyInto(out *VolumeWithNodeFilters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.