Documentation ¶
Overview ¶
Package kubeaccess provides resources related to the Talos API access from Kubernetes workloads.
Index ¶
Constants ¶
View Source
const ConfigID = resource.ID("config")
ConfigID the singleton config resource ID.
View Source
const ConfigType = resource.Type("KubernetesAccessConfigs.cluster.talos.dev")
ConfigType is type of Config resource.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config = typed.Resource[ConfigSpec, ConfigRD]
Config resource holds KubeSpan configuration.
type ConfigRD ¶
type ConfigRD struct{}
ConfigRD provides auxiliary methods for Config.
func (ConfigRD) ResourceDefinition ¶
func (c ConfigRD) ResourceDefinition(resource.Metadata, ConfigSpec) meta.ResourceDefinitionSpec
ResourceDefinition implements typed.ResourceDefinition interface.
type ConfigSpec ¶
type ConfigSpec struct { Enabled bool `yaml:"enabled" protobuf:"1"` AllowedAPIRoles []string `yaml:"allowedAPIRoles" protobuf:"2"` AllowedKubernetesNamespaces []string `yaml:"allowedKubernetesNamespaces" protobuf:"3"` }
ConfigSpec describes KubeSpan configuration..
func (ConfigSpec) DeepCopy ¶
func (cs ConfigSpec) DeepCopy() ConfigSpec
DeepCopy generates a deep copy of ConfigSpec.
Click to show internal directories.
Click to hide internal directories.