Documentation ¶
Overview ¶
Package config provides resources which hold Talos node configuration.
Index ¶
- Constants
- type ExtraManifest
- type K8sControlPlane
- func (r *K8sControlPlane) APIServer() K8sControlPlaneAPIServerSpec
- func (r *K8sControlPlane) ControllerManager() K8sControlPlaneControllerManagerSpec
- func (r *K8sControlPlane) DeepCopy() resource.Resource
- func (r *K8sControlPlane) ExtraManifests() K8sExtraManifestsSpec
- func (r *K8sControlPlane) Manifests() K8sManifestsSpec
- func (r *K8sControlPlane) Metadata() *resource.Metadata
- func (r *K8sControlPlane) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *K8sControlPlane) Scheduler() K8sControlPlaneSchedulerSpec
- func (r *K8sControlPlane) SetAPIServer(spec K8sControlPlaneAPIServerSpec)
- func (r *K8sControlPlane) SetControllerManager(spec K8sControlPlaneControllerManagerSpec)
- func (r *K8sControlPlane) SetExtraManifests(spec K8sExtraManifestsSpec)
- func (r *K8sControlPlane) SetManifests(spec K8sManifestsSpec)
- func (r *K8sControlPlane) SetScheduler(spec K8sControlPlaneSchedulerSpec)
- func (r *K8sControlPlane) Spec() interface{}
- func (r *K8sControlPlane) String() string
- type K8sControlPlaneAPIServerSpec
- type K8sControlPlaneControllerManagerSpec
- type K8sControlPlaneSchedulerSpec
- type K8sExtraManifestsSpec
- type K8sExtraVolume
- type K8sManifestsSpec
- type MachineConfig
- func (r *MachineConfig) Config() config.Provider
- func (r *MachineConfig) DeepCopy() resource.Resource
- func (r *MachineConfig) Metadata() *resource.Metadata
- func (r *MachineConfig) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *MachineConfig) Spec() interface{}
- func (r *MachineConfig) String() string
- type MachineType
- func (r *MachineType) DeepCopy() resource.Resource
- func (r *MachineType) MachineType() machine.Type
- func (r *MachineType) Metadata() *resource.Metadata
- func (r *MachineType) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *MachineType) SetMachineType(typ machine.Type)
- func (r *MachineType) Spec() interface{}
- func (r *MachineType) String() string
Constants ¶
const K8sControlPlaneAPIServerID = resource.ID("kube-apiserver")
K8sControlPlaneAPIServerID is an ID of kube-apiserver config.
const K8sControlPlaneControllerManagerID = resource.ID("kube-controller-manager")
K8sControlPlaneControllerManagerID is an ID of kube-controller-manager config.
const K8sControlPlaneSchedulerID = resource.ID("kube-scheduler")
K8sControlPlaneSchedulerID is an ID of kube-scheduler config.
const K8sControlPlaneType = resource.Type("KubernetesControlPlaneConfigs.config.talos.dev")
K8sControlPlaneType is type of K8sControlPlane resource.
const K8sExtraManifestsID = resource.ID("extra-manifests")
K8sExtraManifestsID is an ID of extra manifests config.
const K8sManifestsID = resource.ID("system-manifests")
K8sManifestsID is an ID of manifests config.
const MachineConfigType = resource.Type("MachineConfigs.config.talos.dev")
MachineConfigType is type of Service resource.
const MachineTypeID = resource.ID("machine-type")
MachineTypeID is singleton resource ID.
const MachineTypeType = resource.Type("MachineTypes.config.talos.dev")
MachineTypeType is type of MachineType resource.
const NamespaceName resource.Namespace = "config"
NamespaceName contains configuration resources.
const V1Alpha1ID = resource.ID("v1alpha1")
V1Alpha1ID is the ID of V1Alpha1 resource (singleton).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraManifest ¶
type ExtraManifest struct { Name string `yaml:"name"` URL string `yaml:"url"` Priority string `yaml:"priority"` ExtraHeaders map[string]string `yaml:"extraHeaders"` InlineManifest string `yaml:"inlineManifest"` }
ExtraManifest defines a single extra manifest to download.
type K8sControlPlane ¶
type K8sControlPlane struct {
// contains filtered or unexported fields
}
K8sControlPlane describes machine type.
func NewK8sControlPlaneAPIServer ¶
func NewK8sControlPlaneAPIServer() *K8sControlPlane
NewK8sControlPlaneAPIServer initializes a K8sControlPlane resource.
func NewK8sControlPlaneControllerManager ¶
func NewK8sControlPlaneControllerManager() *K8sControlPlane
NewK8sControlPlaneControllerManager initializes a K8sControlPlane resource.
func NewK8sControlPlaneScheduler ¶
func NewK8sControlPlaneScheduler() *K8sControlPlane
NewK8sControlPlaneScheduler initializes a K8sControlPlane resource.
func NewK8sExtraManifests ¶
func NewK8sExtraManifests() *K8sControlPlane
NewK8sExtraManifests initializes a K8sControlPlane resource.
func NewK8sManifests ¶
func NewK8sManifests() *K8sControlPlane
NewK8sManifests initializes a K8sControlPlane resource.
func (*K8sControlPlane) APIServer ¶
func (r *K8sControlPlane) APIServer() K8sControlPlaneAPIServerSpec
APIServer returns K8sControlPlaneApiServerSpec.
func (*K8sControlPlane) ControllerManager ¶
func (r *K8sControlPlane) ControllerManager() K8sControlPlaneControllerManagerSpec
ControllerManager returns K8sControlPlaneControllerManagerSpec.
func (*K8sControlPlane) DeepCopy ¶
func (r *K8sControlPlane) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*K8sControlPlane) ExtraManifests ¶
func (r *K8sControlPlane) ExtraManifests() K8sExtraManifestsSpec
ExtraManifests returns K8sExtraManifestsSpec.
func (*K8sControlPlane) Manifests ¶
func (r *K8sControlPlane) Manifests() K8sManifestsSpec
Manifests returns K8sManifestsSpec.
func (*K8sControlPlane) Metadata ¶
func (r *K8sControlPlane) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*K8sControlPlane) ResourceDefinition ¶
func (r *K8sControlPlane) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*K8sControlPlane) Scheduler ¶
func (r *K8sControlPlane) Scheduler() K8sControlPlaneSchedulerSpec
Scheduler returns K8sControlPlaneSchedulerSpec.
func (*K8sControlPlane) SetAPIServer ¶
func (r *K8sControlPlane) SetAPIServer(spec K8sControlPlaneAPIServerSpec)
SetAPIServer sets K8sControlPlaneApiServerSpec.
func (*K8sControlPlane) SetControllerManager ¶
func (r *K8sControlPlane) SetControllerManager(spec K8sControlPlaneControllerManagerSpec)
SetControllerManager sets K8sControlPlaneControllerManagerSpec.
func (*K8sControlPlane) SetExtraManifests ¶
func (r *K8sControlPlane) SetExtraManifests(spec K8sExtraManifestsSpec)
SetExtraManifests sets K8sManifestsSpec.
func (*K8sControlPlane) SetManifests ¶
func (r *K8sControlPlane) SetManifests(spec K8sManifestsSpec)
SetManifests sets K8sManifestsSpec.
func (*K8sControlPlane) SetScheduler ¶
func (r *K8sControlPlane) SetScheduler(spec K8sControlPlaneSchedulerSpec)
SetScheduler sets K8sControlPlaneSchedulerSpec.
func (*K8sControlPlane) Spec ¶
func (r *K8sControlPlane) Spec() interface{}
Spec implements resource.Resource.
func (*K8sControlPlane) String ¶
func (r *K8sControlPlane) String() string
type K8sControlPlaneAPIServerSpec ¶
type K8sControlPlaneAPIServerSpec struct { Image string `yaml:"image"` CloudProvider string `yaml:"cloudProvider"` ControlPlaneEndpoint string `yaml:"controlPlaneEndpoint"` EtcdServers []string `yaml:"etcdServers"` LocalPort int `yaml:"localPort"` ServiceCIDRs []string `yaml:"serviceCIDR"` ExtraArgs map[string]string `yaml:"extraArgs"` ExtraVolumes []K8sExtraVolume `yaml:"extraVolumes"` PodSecurityPolicyEnabled bool `yaml:"podSecurityPolicyEnabled"` }
K8sControlPlaneAPIServerSpec is configuration for kube-apiserver.
type K8sControlPlaneControllerManagerSpec ¶
type K8sControlPlaneControllerManagerSpec struct { Enabled bool `yaml:"enabled"` Image string `yaml:"image"` CloudProvider string `yaml:"cloudProvider"` PodCIDRs []string `yaml:"podCIDRs"` ServiceCIDRs []string `yaml:"serviceCIDRs"` ExtraArgs map[string]string `yaml:"extraArgs"` ExtraVolumes []K8sExtraVolume `yaml:"extraVolumes"` }
K8sControlPlaneControllerManagerSpec is configuration for kube-controller-manager.
type K8sControlPlaneSchedulerSpec ¶
type K8sControlPlaneSchedulerSpec struct { Enabled bool `yaml:"enabled"` Image string `yaml:"image"` ExtraArgs map[string]string `yaml:"extraArgs"` ExtraVolumes []K8sExtraVolume `yaml:"extraVolumes"` }
K8sControlPlaneSchedulerSpec is configuration for kube-scheduler.
type K8sExtraManifestsSpec ¶
type K8sExtraManifestsSpec struct {
ExtraManifests []ExtraManifest `yaml:"extraManifests"`
}
K8sExtraManifestsSpec is a configuration for extra manifests.
type K8sExtraVolume ¶
type K8sExtraVolume struct { Name string `yaml:"name"` HostPath string `yaml:"hostPath"` MountPath string `yaml:"mountPath"` ReadOnly bool `yaml:"readonly"` }
K8sExtraVolume is a configuration of extra volume.
type K8sManifestsSpec ¶
type K8sManifestsSpec struct { Server string `yaml:"string"` ClusterDomain string `yaml:"clusterDomain"` PodCIDRs []string `yaml:"podCIDRs"` ProxyEnabled bool `yaml:"proxyEnabled"` ProxyImage string `yaml:"proxyImage"` ProxyArgs []string `yaml:"proxyArgs"` CoreDNSEnabled bool `yaml:"coreDNSEnabled"` CoreDNSImage string `yaml:"coreDNSImage"` DNSServiceIP string `yaml:"dnsServiceIP"` DNSServiceIPv6 string `yaml:"dnsServiceIPv6"` FlannelEnabled bool `yaml:"flannelEnabled"` FlannelImage string `yaml:"flannelImage"` FlannelCNIImage string `yaml:"flannelCNIImage"` PodSecurityPolicyEnabled bool `yaml:"podSecurityPolicyEnabled"` }
K8sManifestsSpec is configuration for manifests.
type MachineConfig ¶
type MachineConfig struct {
// contains filtered or unexported fields
}
MachineConfig resource holds v1alpha Talos configuration.
func NewMachineConfig ¶
func NewMachineConfig(spec config.Provider) *MachineConfig
NewMachineConfig initializes a V1Alpha1 resource.
func (*MachineConfig) Config ¶
func (r *MachineConfig) Config() config.Provider
Config returns config.Provider.
func (*MachineConfig) DeepCopy ¶
func (r *MachineConfig) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*MachineConfig) Metadata ¶
func (r *MachineConfig) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*MachineConfig) ResourceDefinition ¶
func (r *MachineConfig) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*MachineConfig) Spec ¶
func (r *MachineConfig) Spec() interface{}
Spec implements resource.Resource.
func (*MachineConfig) String ¶
func (r *MachineConfig) String() string
type MachineType ¶
type MachineType struct {
// contains filtered or unexported fields
}
MachineType describes machine type.
func NewMachineType ¶
func NewMachineType() *MachineType
NewMachineType initializes a MachineType resource.
func (*MachineType) DeepCopy ¶
func (r *MachineType) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*MachineType) MachineType ¶
func (r *MachineType) MachineType() machine.Type
MachineType returns machine.Type.
func (*MachineType) Metadata ¶
func (r *MachineType) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*MachineType) ResourceDefinition ¶
func (r *MachineType) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*MachineType) SetMachineType ¶
func (r *MachineType) SetMachineType(typ machine.Type)
SetMachineType sets machine.Type.
func (*MachineType) Spec ¶
func (r *MachineType) Spec() interface{}
Spec implements resource.Resource.
func (*MachineType) String ¶
func (r *MachineType) String() string