Documentation ¶
Overview ¶
Package k8s provides resources which interface with Kubernetes.
Package k8s provides resources which interface with Kubernetes.
Package k8s provides resources which interface with Kubernetes.
Package k8s provides resources which interface with Kubernetes.
Package k8s provides resources which interface with Kubernetes.
Package k8s provides resources which interface with Kubernetes.
Package k8s provides resources which interface with Kubernetes.
Package k8s provides resources which interface with Kubernetes.
Package k8s provides resources which interface with Kubernetes.
Index ¶
- Constants
- type APIServerConfig
- type APIServerConfigRD
- type APIServerConfigSpec
- type AdmissionControlConfig
- type AdmissionControlConfigRD
- type AdmissionControlConfigSpec
- type AdmissionPluginSpec
- type BootstrapManifestsConfig
- type BootstrapManifestsConfigRD
- type BootstrapManifestsConfigSpec
- type ConfigStatus
- type ConfigStatusRD
- type ConfigStatusSpec
- type ControllerManagerConfig
- type ControllerManagerConfigRD
- type ControllerManagerConfigSpec
- type Endpoint
- type EndpointList
- type EndpointRD
- type EndpointSpec
- type ExtraManifest
- type ExtraManifestsConfig
- type ExtraManifestsConfigRD
- type ExtraManifestsConfigSpec
- type ExtraVolume
- type KubeletConfig
- type KubeletConfigRD
- type KubeletConfigSpec
- type KubeletLifecycle
- type KubeletLifecycleRD
- type KubeletLifecycleSpec
- type KubeletSpec
- type KubeletSpecRD
- type KubeletSpecSpec
- type Manifest
- type ManifestRD
- type ManifestSpec
- type ManifestStatus
- type ManifestStatusRD
- type ManifestStatusSpec
- type NodeIP
- type NodeIPConfig
- type NodeIPConfigRD
- type NodeIPConfigSpec
- type NodeIPRD
- type NodeIPSpec
- type Nodename
- type NodenameRD
- type NodenameSpec
- type SchedulerConfig
- type SchedulerConfigRD
- type SchedulerConfigSpec
- type SecretsStatus
- type SecretsStatusRD
- type SecretsStatusSpec
- type SingleManifest
- type StaticPod
- type StaticPodRD
- type StaticPodSpec
- type StaticPodStatus
- type StaticPodStatusRD
- type StaticPodStatusSpec
Constants ¶
const APIServerConfigID = resource.ID(APIServerID)
APIServerConfigID is a singleton resource ID for APIServerConfig.
const APIServerConfigType = resource.Type("APIServerConfigs.kubernetes.talos.dev")
APIServerConfigType is type of APIServerConfig resource.
const APIServerID = "kube-apiserver"
APIServerID is a generic ID for resources related to kube-apiserver.
const AdmissionControlConfigID = resource.ID("admission-control")
AdmissionControlConfigID is a singleton resource ID for AdmissionControlConfig.
const AdmissionControlConfigType = resource.Type("AdmissionControlConfigs.kubernetes.talos.dev")
AdmissionControlConfigType is type of AdmissionControlConfig resource.
const BootstrapManifestsConfigID = resource.ID("manifests")
BootstrapManifestsConfigID is a singleton resource ID for BootstrapManifestsConfig.
const BootstrapManifestsConfigType = resource.Type("BootstrapManifestsConfigs.kubernetes.talos.dev")
BootstrapManifestsConfigType is type of BootstrapManifestsConfig resource.
const ConfigStatusStaticPodID = resource.ID("static-pods")
ConfigStatusStaticPodID is resource ID for ConfigStatus resource for static pods.
const ConfigStatusType = resource.Type("ConfigStatuses.kubernetes.talos.dev")
ConfigStatusType is type of ConfigStatus resource.
const ControlPlaneAPIServerEndpointsID = resource.ID("kube-apiserver")
ControlPlaneAPIServerEndpointsID is resource ID for kube-apiserver based Endpoints.
const ControlPlaneDiscoveredEndpointsID = resource.ID("discovery")
ControlPlaneDiscoveredEndpointsID is resource ID for cluster discovery based Endpoints.
const ControlPlaneNamespaceName resource.Namespace = "controlplane"
ControlPlaneNamespaceName contains resources supporting Kubernetes control plane.
const ControllerManagerConfigID = resource.ID(ControllerManagerID)
ControllerManagerConfigID is a singleton resource ID for ControllerManagerConfig.
const ControllerManagerConfigType = resource.Type("ControllerManagerConfigs.kubernetes.talos.dev")
ControllerManagerConfigType is type of ControllerManagerConfig resource.
const ControllerManagerID = "kube-controller-manager"
ControllerManagerID is a generic ID for resources related to kube-controller-manager.
const EndpointType = resource.Type("Endpoints.kubernetes.talos.dev")
EndpointType is type of Endpoint resource.
const ExtraManifestsConfigID = resource.ID("extra-manifests")
ExtraManifestsConfigID is a singleton resource ID for ExtraManifestsConfig.
const ExtraManifestsConfigType = resource.Type("ExtraManifestsConfigs.kubernetes.talos.dev")
ExtraManifestsConfigType is type of ExtraManifestsConfig resource.
const KubeletConfigType = resource.Type("KubeletConfigs.kubernetes.talos.dev")
KubeletConfigType is type of KubeletConfig resource.
const KubeletID = resource.ID("kubelet")
KubeletID is the ID of KubeletConfig resource.
const KubeletLifecycleID = resource.ID("kubelet")
KubeletLifecycleID is the singleton ID of the resource.
const KubeletLifecycleType = resource.Type("KubeletLifecycles.kubernetes.talos.dev")
KubeletLifecycleType is type of KubeletLifecycle resource.
const KubeletSpecType = resource.Type("KubeletSpecs.kubernetes.talos.dev")
KubeletSpecType is type of KubeletSpec resource.
const ManifestStatusID = resource.ID("manifests")
ManifestStatusID is a singleton resource ID.
const ManifestStatusType = resource.Type("ManifestStatuses.kubernetes.talos.dev")
ManifestStatusType is type of ManifestStatus resource.
const ManifestType = resource.Type("Manifests.kubernetes.talos.dev")
ManifestType is type of Manifest resource.
const NamespaceName resource.Namespace = "k8s"
NamespaceName contains resources supporting Kubernetes components on all node types.
const NodeAddressFilterNoK8s = "no-k8s"
NodeAddressFilterNoK8s is the ID for the node address filter which removes any Kubernetes IPs.
const NodeAddressFilterOnlyK8s = "only-k8s"
NodeAddressFilterOnlyK8s is the ID for the node address filter which leaves only Kubernetes IPs.
const NodeIPConfigType = resource.Type("NodeIPConfigs.kubernetes.talos.dev")
NodeIPConfigType is type of NodeIPConfig resource.
const NodeIPType = resource.Type("NodeIPs.kubernetes.talos.dev")
NodeIPType is type of NodeIP resource.
const NodenameID = resource.ID("nodename")
NodenameID is a singleton resource ID for Nodename.
const NodenameType = resource.Type("Nodenames.kubernetes.talos.dev")
NodenameType is type of Nodename resource.
const SchedulerConfigID = resource.ID(SchedulerID)
SchedulerConfigID is a singleton resource ID for SchedulerConfig.
const SchedulerConfigType = resource.Type("SchedulerConfigs.kubernetes.talos.dev")
SchedulerConfigType is type of SchedulerConfig resource.
const SchedulerID = "kube-scheduler"
SchedulerID is a generic ID for resources related to kube-scheduler.
const SecretsStatusType = resource.Type("SecretStatuses.kubernetes.talos.dev")
SecretsStatusType is type of SecretsStatus resource.
const StaticPodSecretsStaticPodID = resource.ID("static-pods")
StaticPodSecretsStaticPodID is resource ID for SecretStatus resource for static pods.
const StaticPodStatusType = resource.Type("StaticPodStatuses.kubernetes.talos.dev")
StaticPodStatusType is type of StaticPodStatus resource.
const StaticPodType = resource.Type("StaticPods.kubernetes.talos.dev")
StaticPodType is type of StaticPod resource.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServerConfig ¶ added in v1.1.0
type APIServerConfig = typed.Resource[APIServerConfigSpec, APIServerConfigRD]
APIServerConfig represents configuration for kube-apiserver.
func NewAPIServerConfig ¶ added in v1.1.0
func NewAPIServerConfig() *APIServerConfig
NewAPIServerConfig returns new APIServerConfig resource.
type APIServerConfigRD ¶ added in v1.1.0
type APIServerConfigRD struct{}
APIServerConfigRD defines APIServerConfig resource definition.
func (APIServerConfigRD) ResourceDefinition ¶ added in v1.1.0
func (APIServerConfigRD) ResourceDefinition(_ resource.Metadata, _ APIServerConfigSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type APIServerConfigSpec ¶ added in v1.1.0
type APIServerConfigSpec struct { Image string `yaml:"image" protobuf:"1"` CloudProvider string `yaml:"cloudProvider" protobuf:"2"` ControlPlaneEndpoint string `yaml:"controlPlaneEndpoint" protobuf:"3"` EtcdServers []string `yaml:"etcdServers" protobuf:"4"` LocalPort int `yaml:"localPort" protobuf:"5"` ServiceCIDRs []string `yaml:"serviceCIDR" protobuf:"6"` ExtraArgs map[string]string `yaml:"extraArgs" protobuf:"7"` ExtraVolumes []ExtraVolume `yaml:"extraVolumes" protobuf:"8"` EnvironmentVariables map[string]string `yaml:"environmentVariables" protobuf:"9"` PodSecurityPolicyEnabled bool `yaml:"podSecurityPolicyEnabled" protobuf:"10"` AdvertisedAddress string `yaml:"advertisedAddress" protobuf:"11"` }
APIServerConfigSpec is configuration for kube-apiserver.
func (APIServerConfigSpec) DeepCopy ¶ added in v1.1.0
func (o APIServerConfigSpec) DeepCopy() APIServerConfigSpec
DeepCopy generates a deep copy of APIServerConfigSpec.
type AdmissionControlConfig ¶ added in v1.1.0
type AdmissionControlConfig = typed.Resource[AdmissionControlConfigSpec, AdmissionControlConfigRD]
AdmissionControlConfig represents configuration for kube-apiserver Admission Control plugins.
func NewAdmissionControlConfig ¶ added in v1.1.0
func NewAdmissionControlConfig() *AdmissionControlConfig
NewAdmissionControlConfig returns new AdmissionControlConfig resource.
type AdmissionControlConfigRD ¶ added in v1.1.0
type AdmissionControlConfigRD struct{}
AdmissionControlConfigRD defines AdmissionControlConfig resource definition.
func (AdmissionControlConfigRD) ResourceDefinition ¶ added in v1.1.0
func (AdmissionControlConfigRD) ResourceDefinition(_ resource.Metadata, _ AdmissionControlConfigSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type AdmissionControlConfigSpec ¶ added in v1.1.0
type AdmissionControlConfigSpec struct {
Config []AdmissionPluginSpec `yaml:"config" protobuf:"1"`
}
AdmissionControlConfigSpec is configuration for kube-apiserver.
func (AdmissionControlConfigSpec) DeepCopy ¶ added in v1.1.0
func (o AdmissionControlConfigSpec) DeepCopy() AdmissionControlConfigSpec
DeepCopy generates a deep copy of AdmissionControlConfigSpec.
type AdmissionPluginSpec ¶ added in v1.1.0
type AdmissionPluginSpec struct { Name string `yaml:"name" protobuf:"1"` Configuration map[string]interface{} `yaml:"configuration" protobuf:"2"` }
AdmissionPluginSpec is a single admission plugin configuration Admission Control plugins.
type BootstrapManifestsConfig ¶ added in v1.1.0
type BootstrapManifestsConfig = typed.Resource[BootstrapManifestsConfigSpec, BootstrapManifestsConfigRD]
BootstrapManifestsConfig represents configuration for bootstrap manifests.
func NewBootstrapManifestsConfig ¶ added in v1.1.0
func NewBootstrapManifestsConfig() *BootstrapManifestsConfig
NewBootstrapManifestsConfig returns new BootstrapManifestsConfig resource.
type BootstrapManifestsConfigRD ¶ added in v1.1.0
type BootstrapManifestsConfigRD struct{}
BootstrapManifestsConfigRD defines BootstrapManifestsConfig resource definition.
func (BootstrapManifestsConfigRD) ResourceDefinition ¶ added in v1.1.0
func (BootstrapManifestsConfigRD) ResourceDefinition(_ resource.Metadata, _ BootstrapManifestsConfigSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type BootstrapManifestsConfigSpec ¶ added in v1.1.0
type BootstrapManifestsConfigSpec struct { Server string `yaml:"string" protobuf:"1"` ClusterDomain string `yaml:"clusterDomain" protobuf:"2"` PodCIDRs []string `yaml:"podCIDRs" protobuf:"3"` ProxyEnabled bool `yaml:"proxyEnabled" protobuf:"4"` ProxyImage string `yaml:"proxyImage" protobuf:"5"` ProxyArgs []string `yaml:"proxyArgs" protobuf:"6"` CoreDNSEnabled bool `yaml:"coreDNSEnabled" protobuf:"7"` CoreDNSImage string `yaml:"coreDNSImage" protobuf:"8"` DNSServiceIP string `yaml:"dnsServiceIP" protobuf:"9"` DNSServiceIPv6 string `yaml:"dnsServiceIPv6" protobuf:"10"` FlannelEnabled bool `yaml:"flannelEnabled" protobuf:"11"` FlannelImage string `yaml:"flannelImage" protobuf:"12"` FlannelCNIImage string `yaml:"flannelCNIImage" protobuf:"13"` PodSecurityPolicyEnabled bool `yaml:"podSecurityPolicyEnabled" protobuf:"14"` TalosAPIServiceEnabled bool `yaml:"talosAPIServiceEnabled" protobuf:"15"` }
BootstrapManifestsConfigSpec is configuration for bootstrap manifests.
func (BootstrapManifestsConfigSpec) DeepCopy ¶ added in v1.1.0
func (o BootstrapManifestsConfigSpec) DeepCopy() BootstrapManifestsConfigSpec
DeepCopy generates a deep copy of BootstrapManifestsConfigSpec.
type ConfigStatus ¶ added in v1.0.0
type ConfigStatus = typed.Resource[ConfigStatusSpec, ConfigStatusRD]
ConfigStatus resource holds definition of rendered secrets.
func NewConfigStatus ¶ added in v1.0.0
func NewConfigStatus(namespace resource.Namespace, id resource.ID) *ConfigStatus
NewConfigStatus initializes a ConfigStatus resource.
type ConfigStatusRD ¶ added in v1.1.0
type ConfigStatusRD struct{}
ConfigStatusRD provides auxiliary methods for ConfigStatus.
func (ConfigStatusRD) ResourceDefinition ¶ added in v1.1.0
func (ConfigStatusRD) ResourceDefinition(resource.Metadata, ConfigStatusSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type ConfigStatusSpec ¶ added in v1.0.0
type ConfigStatusSpec struct { Ready bool `yaml:"ready" protobuf:"1"` Version string `yaml:"version" protobuf:"2"` }
ConfigStatusSpec describes status of rendered secrets.
func (ConfigStatusSpec) DeepCopy ¶ added in v1.1.0
func (o ConfigStatusSpec) DeepCopy() ConfigStatusSpec
DeepCopy generates a deep copy of ConfigStatusSpec.
type ControllerManagerConfig ¶ added in v1.1.0
type ControllerManagerConfig = typed.Resource[ControllerManagerConfigSpec, ControllerManagerConfigRD]
ControllerManagerConfig represents configuration for kube-controller-manager.
func NewControllerManagerConfig ¶ added in v1.1.0
func NewControllerManagerConfig() *ControllerManagerConfig
NewControllerManagerConfig returns new ControllerManagerConfig resource.
type ControllerManagerConfigRD ¶ added in v1.1.0
type ControllerManagerConfigRD struct{}
ControllerManagerConfigRD defines ControllerManagerConfig resource definition.
func (ControllerManagerConfigRD) ResourceDefinition ¶ added in v1.1.0
func (ControllerManagerConfigRD) ResourceDefinition(_ resource.Metadata, _ ControllerManagerConfigSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type ControllerManagerConfigSpec ¶ added in v1.1.0
type ControllerManagerConfigSpec struct { Enabled bool `yaml:"enabled" protobuf:"1"` Image string `yaml:"image" protobuf:"2"` CloudProvider string `yaml:"cloudProvider" protobuf:"3"` PodCIDRs []string `yaml:"podCIDRs" protobuf:"4"` ServiceCIDRs []string `yaml:"serviceCIDRs" protobuf:"5"` ExtraArgs map[string]string `yaml:"extraArgs" protobuf:"6"` ExtraVolumes []ExtraVolume `yaml:"extraVolumes" protobuf:"7"` EnvironmentVariables map[string]string `yaml:"environmentVariables" protobuf:"8"` }
ControllerManagerConfigSpec is configuration for kube-controller-manager.
func (ControllerManagerConfigSpec) DeepCopy ¶ added in v1.1.0
func (o ControllerManagerConfigSpec) DeepCopy() ControllerManagerConfigSpec
DeepCopy generates a deep copy of ControllerManagerConfigSpec.
type Endpoint ¶
type Endpoint = typed.Resource[EndpointSpec, EndpointRD]
Endpoint resource holds definition of rendered secrets.
type EndpointList ¶
EndpointList is a flattened list of endpoints.
func (EndpointList) Merge ¶
func (l EndpointList) Merge(endpoint *Endpoint) EndpointList
Merge endpoints from multiple Endpoint resources into a single list.
func (EndpointList) Strings ¶
func (l EndpointList) Strings() []string
Strings returns a slice of formatted endpoints to string.
type EndpointRD ¶ added in v1.1.0
type EndpointRD struct{}
EndpointRD provides auxiliary methods for Endpoint.
func (EndpointRD) ResourceDefinition ¶ added in v1.1.0
func (EndpointRD) ResourceDefinition(resource.Metadata, EndpointSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type EndpointSpec ¶
EndpointSpec describes status of rendered secrets.
func (EndpointSpec) DeepCopy ¶ added in v1.1.0
func (o EndpointSpec) DeepCopy() EndpointSpec
DeepCopy generates a deep copy of EndpointSpec.
type ExtraManifest ¶ added in v1.1.0
type ExtraManifest struct { Name string `yaml:"name" protobuf:"1"` URL string `yaml:"url" protobuf:"2"` Priority string `yaml:"priority" protobuf:"3"` ExtraHeaders map[string]string `yaml:"extraHeaders" protobuf:"4"` InlineManifest string `yaml:"inlineManifest" protobuf:"5"` }
ExtraManifest defines a single extra manifest to download.
type ExtraManifestsConfig ¶ added in v1.1.0
type ExtraManifestsConfig = typed.Resource[ExtraManifestsConfigSpec, ExtraManifestsConfigRD]
ExtraManifestsConfig represents configuration for extra bootstrap manifests.
func NewExtraManifestsConfig ¶ added in v1.1.0
func NewExtraManifestsConfig() *ExtraManifestsConfig
NewExtraManifestsConfig returns new ExtraManifestsConfig resource.
type ExtraManifestsConfigRD ¶ added in v1.1.0
type ExtraManifestsConfigRD struct{}
ExtraManifestsConfigRD defines ExtraManifestsConfig resource definition.
func (ExtraManifestsConfigRD) ResourceDefinition ¶ added in v1.1.0
func (ExtraManifestsConfigRD) ResourceDefinition(_ resource.Metadata, _ ExtraManifestsConfigSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type ExtraManifestsConfigSpec ¶ added in v1.1.0
type ExtraManifestsConfigSpec struct {
ExtraManifests []ExtraManifest `yaml:"extraManifests" protobuf:"1"`
}
ExtraManifestsConfigSpec is configuration for extra bootstrap manifests.
func (ExtraManifestsConfigSpec) DeepCopy ¶ added in v1.1.0
func (o ExtraManifestsConfigSpec) DeepCopy() ExtraManifestsConfigSpec
DeepCopy generates a deep copy of ExtraManifestsConfigSpec.
type ExtraVolume ¶ added in v1.1.0
type ExtraVolume struct { Name string `yaml:"name" protobuf:"1"` HostPath string `yaml:"hostPath" protobuf:"2"` MountPath string `yaml:"mountPath" protobuf:"3"` ReadOnly bool `yaml:"readonly" protobuf:"4"` }
ExtraVolume is a configuration of extra volume.
type KubeletConfig ¶
type KubeletConfig = typed.Resource[KubeletConfigSpec, KubeletConfigRD]
KubeletConfig resource holds source of kubelet configuration.
func NewKubeletConfig ¶
func NewKubeletConfig(namespace resource.Namespace, id resource.ID) *KubeletConfig
NewKubeletConfig initializes an empty KubeletConfig resource.
type KubeletConfigRD ¶ added in v1.1.0
type KubeletConfigRD struct{}
KubeletConfigRD provides auxiliary methods for KubeletConfig.
func (KubeletConfigRD) ResourceDefinition ¶ added in v1.1.0
func (KubeletConfigRD) ResourceDefinition(resource.Metadata, KubeletConfigSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type KubeletConfigSpec ¶
type KubeletConfigSpec struct { Image string `yaml:"image" protobuf:"1"` ClusterDNS []string `yaml:"clusterDNS" protobuf:"2"` ClusterDomain string `yaml:"clusterDomain" protobuf:"3"` ExtraArgs map[string]string `yaml:"extraArgs,omitempty" protobuf:"4"` ExtraMounts []specs.Mount `yaml:"extraMounts,omitempty" protobuf:"5"` ExtraConfig map[string]interface{} `yaml:"extraConfig,omitempty" protobuf:"6"` CloudProviderExternal bool `yaml:"cloudProviderExternal" protobuf:"7"` DefaultRuntimeSeccompEnabled bool `yaml:"defaultRuntimeSeccompEnabled" protobuf:"8"` SkipNodeRegistration bool `yaml:"skipNodeRegistration" protobuf:"9"` }
KubeletConfigSpec holds the source of kubelet configuration.
func (KubeletConfigSpec) DeepCopy ¶ added in v1.1.0
func (o KubeletConfigSpec) DeepCopy() KubeletConfigSpec
DeepCopy generates a deep copy of KubeletConfigSpec.
type KubeletLifecycle ¶ added in v1.0.0
type KubeletLifecycle = typed.Resource[KubeletLifecycleSpec, KubeletLifecycleRD]
KubeletLifecycle resource exists to signal that the kubelet pods are running.
Components might put finalizers on the KubeletLifecycle resource to signal that additional actions should be taken before the kubelet is about to be shut down.
KubeletLifecycle is mostly about status of the workloads kubelet is running vs. the actual status of the kubelet service itself.
func NewKubeletLifecycle ¶ added in v1.0.0
func NewKubeletLifecycle(namespace resource.Namespace, id resource.ID) *KubeletLifecycle
NewKubeletLifecycle initializes an empty KubeletLifecycle resource.
type KubeletLifecycleRD ¶ added in v1.1.0
type KubeletLifecycleRD struct{}
KubeletLifecycleRD provides auxiliary methods for KubeletLifecycle.
func (KubeletLifecycleRD) ResourceDefinition ¶ added in v1.1.0
func (KubeletLifecycleRD) ResourceDefinition(resource.Metadata, KubeletLifecycleSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type KubeletLifecycleSpec ¶ added in v1.0.0
type KubeletLifecycleSpec struct{}
KubeletLifecycleSpec is empty.
func (KubeletLifecycleSpec) DeepCopy ¶ added in v1.1.0
func (o KubeletLifecycleSpec) DeepCopy() KubeletLifecycleSpec
DeepCopy generates a deep copy of KubeletLifecycleSpec.
type KubeletSpec ¶
type KubeletSpec = typed.Resource[KubeletSpecSpec, KubeletSpecRD]
KubeletSpec resource holds final definition of kubelet runtime configuration.
func NewKubeletSpec ¶
func NewKubeletSpec(namespace resource.Namespace, id resource.ID) *KubeletSpec
NewKubeletSpec initializes an empty KubeletSpec resource.
type KubeletSpecRD ¶ added in v1.1.0
type KubeletSpecRD struct{}
KubeletSpecRD provides auxiliary methods for KubeletSpec.
func (KubeletSpecRD) ResourceDefinition ¶ added in v1.1.0
func (KubeletSpecRD) ResourceDefinition(resource.Metadata, KubeletSpecSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type KubeletSpecSpec ¶
type KubeletSpecSpec struct { Image string `yaml:"image" protobuf:"1"` Args []string `yaml:"args,omitempty" protobuf:"2"` ExtraMounts []specs.Mount `yaml:"extraMounts,omitempty" protobuf:"3"` ExpectedNodename string `yaml:"expectedNodename,omitempty" protobuf:"4"` Config map[string]interface{} `yaml:"config" protobuf:"5"` }
KubeletSpecSpec holds the source of kubelet configuration.
func (KubeletSpecSpec) DeepCopy ¶ added in v1.1.0
func (o KubeletSpecSpec) DeepCopy() KubeletSpecSpec
DeepCopy generates a deep copy of KubeletSpecSpec.
type Manifest ¶
type Manifest = typed.Resource[ManifestSpec, ManifestRD]
Manifest resource holds definition of kubelet static pod.
type ManifestRD ¶ added in v1.1.0
type ManifestRD struct{}
ManifestRD provides auxiliary methods for Manifest.
func (ManifestRD) ResourceDefinition ¶ added in v1.1.0
func (ManifestRD) ResourceDefinition(resource.Metadata, ManifestSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type ManifestSpec ¶
type ManifestSpec struct {
Items []SingleManifest `protobuf:"1" yaml:"items"`
}
ManifestSpec holds the Kubernetes resources spec.
func (ManifestSpec) DeepCopy ¶ added in v1.1.0
func (o ManifestSpec) DeepCopy() ManifestSpec
DeepCopy generates a deep copy of ManifestSpec.
func (ManifestSpec) MarshalYAML ¶
func (spec ManifestSpec) MarshalYAML() (interface{}, error)
MarshalYAML implements yaml.Marshaler.
type ManifestStatus ¶
type ManifestStatus = typed.Resource[ManifestStatusSpec, ManifestStatusRD]
ManifestStatus resource holds definition of kubelet static pod.
func NewManifestStatus ¶
func NewManifestStatus(namespace resource.Namespace) *ManifestStatus
NewManifestStatus initializes an empty ManifestStatus resource.
type ManifestStatusRD ¶ added in v1.1.0
type ManifestStatusRD struct{}
ManifestStatusRD provides auxiliary methods for ManifestStatus.
func (ManifestStatusRD) ResourceDefinition ¶ added in v1.1.0
func (ManifestStatusRD) ResourceDefinition(resource.Metadata, ManifestStatusSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type ManifestStatusSpec ¶
type ManifestStatusSpec struct {
ManifestsApplied []string `yaml:"manifestsApplied" protobuf:"1"`
}
ManifestStatusSpec describes manifest application status.
func (ManifestStatusSpec) DeepCopy ¶ added in v1.1.0
func (o ManifestStatusSpec) DeepCopy() ManifestStatusSpec
DeepCopy generates a deep copy of ManifestStatusSpec.
type NodeIP ¶
type NodeIP = typed.Resource[NodeIPSpec, NodeIPRD]
NodeIP resource holds definition of Node IP specification.
type NodeIPConfig ¶
type NodeIPConfig = typed.Resource[NodeIPConfigSpec, NodeIPConfigRD]
NodeIPConfig resource holds definition of Node IP specification.
func NewNodeIPConfig ¶
func NewNodeIPConfig(namespace resource.Namespace, id resource.ID) *NodeIPConfig
NewNodeIPConfig initializes an empty NodeIPConfig resource.
type NodeIPConfigRD ¶ added in v1.1.0
type NodeIPConfigRD struct{}
NodeIPConfigRD provides auxiliary methods for NodeIPConfig.
func (NodeIPConfigRD) ResourceDefinition ¶ added in v1.1.0
func (NodeIPConfigRD) ResourceDefinition(resource.Metadata, NodeIPConfigSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type NodeIPConfigSpec ¶
type NodeIPConfigSpec struct { ValidSubnets []string `yaml:"validSubnets,omitempty" protobuf:"1"` ExcludeSubnets []string `yaml:"excludeSubnets" protobuf:"2"` }
NodeIPConfigSpec holds the Node IP specification.
func (NodeIPConfigSpec) DeepCopy ¶ added in v1.1.0
func (o NodeIPConfigSpec) DeepCopy() NodeIPConfigSpec
DeepCopy generates a deep copy of NodeIPConfigSpec.
type NodeIPRD ¶ added in v1.1.0
type NodeIPRD struct{}
NodeIPRD provides auxiliary methods for NodeIP.
func (NodeIPRD) ResourceDefinition ¶ added in v1.1.0
func (NodeIPRD) ResourceDefinition(resource.Metadata, NodeIPSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type NodeIPSpec ¶
NodeIPSpec holds the Node IP specification.
func (NodeIPSpec) DeepCopy ¶ added in v1.1.0
func (o NodeIPSpec) DeepCopy() NodeIPSpec
DeepCopy generates a deep copy of NodeIPSpec.
type Nodename ¶
type Nodename = typed.Resource[NodenameSpec, NodenameRD]
Nodename resource holds Kubernetes nodename.
type NodenameRD ¶ added in v1.1.0
type NodenameRD struct{}
NodenameRD provides auxiliary methods for Nodename.
func (NodenameRD) ResourceDefinition ¶ added in v1.1.0
func (NodenameRD) ResourceDefinition(resource.Metadata, NodenameSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type NodenameSpec ¶
type NodenameSpec struct { Nodename string `yaml:"nodename" protobuf:"1"` HostnameVersion string `yaml:"hostnameVersion" protobuf:"2"` }
NodenameSpec describes Kubernetes nodename.
func (NodenameSpec) DeepCopy ¶ added in v1.1.0
func (o NodenameSpec) DeepCopy() NodenameSpec
DeepCopy generates a deep copy of NodenameSpec.
type SchedulerConfig ¶ added in v1.1.0
type SchedulerConfig = typed.Resource[SchedulerConfigSpec, SchedulerConfigRD]
SchedulerConfig represents configuration for kube-scheduler.
func NewSchedulerConfig ¶ added in v1.1.0
func NewSchedulerConfig() *SchedulerConfig
NewSchedulerConfig returns new SchedulerConfig resource.
type SchedulerConfigRD ¶ added in v1.1.0
type SchedulerConfigRD struct{}
SchedulerConfigRD defines SchedulerConfig resource definition.
func (SchedulerConfigRD) ResourceDefinition ¶ added in v1.1.0
func (SchedulerConfigRD) ResourceDefinition(_ resource.Metadata, _ SchedulerConfigSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type SchedulerConfigSpec ¶ added in v1.1.0
type SchedulerConfigSpec struct { Enabled bool `yaml:"enabled" protobuf:"1"` Image string `yaml:"image" protobuf:"2"` ExtraArgs map[string]string `yaml:"extraArgs" protobuf:"3"` ExtraVolumes []ExtraVolume `yaml:"extraVolumes" protobuf:"4"` EnvironmentVariables map[string]string `yaml:"environmentVariables" protobuf:"5"` }
SchedulerConfigSpec is configuration for kube-scheduler.
func (SchedulerConfigSpec) DeepCopy ¶ added in v1.1.0
func (o SchedulerConfigSpec) DeepCopy() SchedulerConfigSpec
DeepCopy generates a deep copy of SchedulerConfigSpec.
type SecretsStatus ¶
type SecretsStatus = typed.Resource[SecretsStatusSpec, SecretsStatusRD]
SecretsStatus resource holds definition of rendered secrets.
func NewSecretsStatus ¶
func NewSecretsStatus(namespace resource.Namespace, id resource.ID) *SecretsStatus
NewSecretsStatus initializes a SecretsStatus resource.
type SecretsStatusRD ¶ added in v1.1.0
type SecretsStatusRD struct{}
SecretsStatusRD provides auxiliary methods for SecretsStatus.
func (SecretsStatusRD) ResourceDefinition ¶ added in v1.1.0
func (SecretsStatusRD) ResourceDefinition(resource.Metadata, SecretsStatusSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type SecretsStatusSpec ¶
type SecretsStatusSpec struct { Ready bool `yaml:"ready" protobuf:"1"` Version string `yaml:"version" protobuf:"2"` }
SecretsStatusSpec describes status of rendered secrets.
func (SecretsStatusSpec) DeepCopy ¶ added in v1.1.0
func (o SecretsStatusSpec) DeepCopy() SecretsStatusSpec
DeepCopy generates a deep copy of SecretsStatusSpec.
type SingleManifest ¶ added in v1.2.0
type SingleManifest struct {
Object map[string]interface{} `protobuf:"1" yaml:",inline"`
}
SingleManifest is a single manifest.
type StaticPod ¶
type StaticPod = typed.Resource[StaticPodSpec, StaticPodRD]
StaticPod resource holds definition of kubelet static pod.
type StaticPodRD ¶ added in v1.1.0
type StaticPodRD struct{}
StaticPodRD provides auxiliary methods for StaticPod.
func (StaticPodRD) ResourceDefinition ¶ added in v1.1.0
func (StaticPodRD) ResourceDefinition(resource.Metadata, StaticPodSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type StaticPodSpec ¶
type StaticPodSpec struct {
Pod map[string]interface{} `protobuf:"1"`
}
StaticPodSpec describes static pod spec, it contains marshaled *v1.Pod spec.
func (StaticPodSpec) DeepCopy ¶ added in v1.1.0
func (o StaticPodSpec) DeepCopy() StaticPodSpec
DeepCopy generates a deep copy of StaticPodSpec.
func (StaticPodSpec) MarshalYAML ¶
func (spec StaticPodSpec) MarshalYAML() (interface{}, error)
MarshalYAML implements yaml.Marshaler.
type StaticPodStatus ¶
type StaticPodStatus = typed.Resource[StaticPodStatusSpec, StaticPodStatusRD]
StaticPodStatus resource holds definition of kubelet static pod.
func NewStaticPodStatus ¶
func NewStaticPodStatus(namespace resource.Namespace, id resource.ID) *StaticPodStatus
NewStaticPodStatus initializes a StaticPodStatus resource.
type StaticPodStatusRD ¶ added in v1.1.0
type StaticPodStatusRD struct{}
StaticPodStatusRD provides auxiliary methods for StaticPodStatus.
func (StaticPodStatusRD) ResourceDefinition ¶ added in v1.1.0
func (StaticPodStatusRD) ResourceDefinition(resource.Metadata, StaticPodStatusSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type StaticPodStatusSpec ¶
type StaticPodStatusSpec struct {
PodStatus map[string]interface{} `protobuf:"1"`
}
StaticPodStatusSpec describes kubelet static pod status.
func (StaticPodStatusSpec) DeepCopy ¶ added in v1.1.0
func (o StaticPodStatusSpec) DeepCopy() StaticPodStatusSpec
DeepCopy generates a deep copy of StaticPodStatusSpec.
func (StaticPodStatusSpec) MarshalYAML ¶
func (spec StaticPodStatusSpec) MarshalYAML() (interface{}, error)
MarshalYAML implements yaml.Marshaler.
Source Files ¶
- admissioncontrol_config.go
- apiserver_config.go
- config_status.go
- controllermanager_config.go
- deep_copy.generated.go
- endpoint.go
- extramanifests_config.go
- k8s.go
- kubelet_config.go
- kubelet_lifecycle.go
- kubelet_spec.go
- manifest.go
- manifest_status.go
- manifests_config.go
- nodeip.go
- nodeip_config.go
- nodename.go
- scheduler_config.go
- secrets_status.go
- static_pod.go
- static_pod_status.go