Documentation ¶
Overview ¶
Package k8s provides resources which interface with Kubernetes.
Index ¶
- Constants
- type Manifest
- func (r *Manifest) DeepCopy() resource.Resource
- func (r *Manifest) Metadata() *resource.Metadata
- func (r *Manifest) Objects() []*unstructured.Unstructured
- func (r *Manifest) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *Manifest) SetYAML(yamlBytes []byte) error
- func (r *Manifest) Spec() interface{}
- func (r *Manifest) String() string
- type ManifestStatus
- func (r *ManifestStatus) DeepCopy() resource.Resource
- func (r *ManifestStatus) Metadata() *resource.Metadata
- func (r *ManifestStatus) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *ManifestStatus) Spec() interface{}
- func (r *ManifestStatus) Status() *ManifestStatusSpec
- func (r *ManifestStatus) String() string
- type ManifestStatusSpec
- type SecretsStatus
- func (r *SecretsStatus) DeepCopy() resource.Resource
- func (r *SecretsStatus) Metadata() *resource.Metadata
- func (r *SecretsStatus) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *SecretsStatus) Spec() interface{}
- func (r *SecretsStatus) Status() *SecretsStatusSpec
- func (r *SecretsStatus) String() string
- type SecretsStatusSpec
- type StaticPod
- func (r *StaticPod) DeepCopy() resource.Resource
- func (r *StaticPod) Metadata() *resource.Metadata
- func (r *StaticPod) Pod() *v1.Pod
- func (r *StaticPod) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *StaticPod) SetPod(podSpec *v1.Pod)
- func (r *StaticPod) Spec() interface{}
- func (r *StaticPod) String() string
- type StaticPodStatus
- func (r *StaticPodStatus) DeepCopy() resource.Resource
- func (r *StaticPodStatus) Metadata() *resource.Metadata
- func (r *StaticPodStatus) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *StaticPodStatus) SetStatus(status *v1.PodStatus)
- func (r *StaticPodStatus) Spec() interface{}
- func (r *StaticPodStatus) String() string
Constants ¶
const ControlPlaneNamespaceName resource.Namespace = "controlplane"
ControlPlaneNamespaceName contains resources supporting Kubernetes control plane.
const ExtraNamespaceName resource.Namespace = "extras"
ExtraNamespaceName contains extra resources related to Kubernnetes configuration.
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 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 Manifest ¶
type Manifest struct {
// contains filtered or unexported fields
}
Manifest resource holds definition of kubelet static pod.
func NewManifest ¶
NewManifest initializes an empty Manifest resource.
func (*Manifest) Objects ¶
func (r *Manifest) Objects() []*unstructured.Unstructured
Objects returns list of unstrustured object.
func (*Manifest) ResourceDefinition ¶
func (r *Manifest) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type ManifestStatus ¶
type ManifestStatus struct {
// contains filtered or unexported fields
}
ManifestStatus resource holds definition of kubelet static pod.
func NewManifestStatus ¶
func NewManifestStatus(namespace resource.Namespace) *ManifestStatus
NewManifestStatus initializes an empty ManifestStatus resource.
func (*ManifestStatus) DeepCopy ¶
func (r *ManifestStatus) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*ManifestStatus) Metadata ¶
func (r *ManifestStatus) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*ManifestStatus) ResourceDefinition ¶
func (r *ManifestStatus) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*ManifestStatus) Spec ¶
func (r *ManifestStatus) Spec() interface{}
Spec implements resource.Resource.
func (*ManifestStatus) Status ¶
func (r *ManifestStatus) Status() *ManifestStatusSpec
Status returns ManifestStatusSpec.
func (*ManifestStatus) String ¶
func (r *ManifestStatus) String() string
type ManifestStatusSpec ¶
type ManifestStatusSpec struct {
ManifestsApplied []string `yaml:"manifestsApplied"`
}
ManifestStatusSpec describes manifest application status.
type SecretsStatus ¶
type SecretsStatus struct {
// contains filtered or unexported fields
}
SecretsStatus resource holds definition of rendered secrets.
func NewSecretsStatus ¶
func NewSecretsStatus(namespace resource.Namespace, id resource.ID) *SecretsStatus
NewSecretsStatus initializes a SecretsStatus resource.
func (*SecretsStatus) DeepCopy ¶
func (r *SecretsStatus) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*SecretsStatus) Metadata ¶
func (r *SecretsStatus) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*SecretsStatus) ResourceDefinition ¶
func (r *SecretsStatus) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*SecretsStatus) Spec ¶
func (r *SecretsStatus) Spec() interface{}
Spec implements resource.Resource.
func (*SecretsStatus) Status ¶
func (r *SecretsStatus) Status() *SecretsStatusSpec
Status sets pod status.
func (*SecretsStatus) String ¶
func (r *SecretsStatus) String() string
type SecretsStatusSpec ¶
SecretsStatusSpec describes status of rendered secrets.
type StaticPod ¶
type StaticPod struct {
// contains filtered or unexported fields
}
StaticPod resource holds definition of kubelet static pod.
func NewStaticPod ¶
NewStaticPod initializes a StaticPod resource.
func (*StaticPod) ResourceDefinition ¶
func (r *StaticPod) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
type StaticPodStatus ¶
type StaticPodStatus struct {
// contains filtered or unexported fields
}
StaticPodStatus resource holds definition of kubelet static pod.
func NewStaticPodStatus ¶
func NewStaticPodStatus(namespace resource.Namespace, id resource.ID) *StaticPodStatus
NewStaticPodStatus initializes a StaticPodStatus resource.
func (*StaticPodStatus) DeepCopy ¶
func (r *StaticPodStatus) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*StaticPodStatus) Metadata ¶
func (r *StaticPodStatus) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*StaticPodStatus) ResourceDefinition ¶
func (r *StaticPodStatus) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*StaticPodStatus) SetStatus ¶
func (r *StaticPodStatus) SetStatus(status *v1.PodStatus)
SetStatus sets pod status.
func (*StaticPodStatus) Spec ¶
func (r *StaticPodStatus) Spec() interface{}
Spec implements resource.Resource.
func (*StaticPodStatus) String ¶
func (r *StaticPodStatus) String() string