Documentation ¶
Overview ¶
Package v1alpha1 provides resources which implement "glue" code from v1alpha1 Talos init system.
Index ¶
- Constants
- type BootstrapStatus
- func (r *BootstrapStatus) DeepCopy() resource.Resource
- func (r *BootstrapStatus) Metadata() *resource.Metadata
- func (r *BootstrapStatus) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *BootstrapStatus) Spec() interface{}
- func (r *BootstrapStatus) String() string
- func (r *BootstrapStatus) TypedSpec() *BootstrapStatusSpec
- type BootstrapStatusSpec
- type Service
- func (r *Service) DeepCopy() resource.Resource
- func (r *Service) Healthy() bool
- func (r *Service) Metadata() *resource.Metadata
- func (r *Service) ResourceDefinition() meta.ResourceDefinitionSpec
- func (r *Service) Running() bool
- func (r *Service) SetHealthy(healthy bool)
- func (r *Service) SetRunning(running bool)
- func (r *Service) SetUnknown(unknown bool)
- func (r *Service) Spec() interface{}
- func (r *Service) String() string
- func (r *Service) Unknown() bool
- type ServiceSpec
Constants ¶
const BootstrapStatusID = resource.ID("control-plane")
BootstrapStatusID is a singleton instance ID.
const BootstrapStatusType = resource.Type("BootstrapStatuses.v1alpha1.talos.dev")
BootstrapStatusType is type of BootstrapStatus resource.
const NamespaceName resource.Namespace = "runtime"
NamespaceName contains resources linking v1alpha2 components with v1alpha1 Talos runtime.
const ServiceType = resource.Type("Services.v1alpha1.talos.dev")
ServiceType is type of Service resource.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapStatus ¶
type BootstrapStatus struct {
// contains filtered or unexported fields
}
BootstrapStatus describes v1alpha1 (bootkube) bootstrap status.
func NewBootstrapStatus ¶
func NewBootstrapStatus() *BootstrapStatus
NewBootstrapStatus initializes a BootstrapStatus resource.
func (*BootstrapStatus) DeepCopy ¶
func (r *BootstrapStatus) DeepCopy() resource.Resource
DeepCopy implements resource.Resource.
func (*BootstrapStatus) Metadata ¶
func (r *BootstrapStatus) Metadata() *resource.Metadata
Metadata implements resource.Resource.
func (*BootstrapStatus) ResourceDefinition ¶
func (r *BootstrapStatus) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*BootstrapStatus) Spec ¶
func (r *BootstrapStatus) Spec() interface{}
Spec implements resource.Resource.
func (*BootstrapStatus) String ¶
func (r *BootstrapStatus) String() string
func (*BootstrapStatus) TypedSpec ¶ added in v0.11.0
func (r *BootstrapStatus) TypedSpec() *BootstrapStatusSpec
TypedSpec allows to access the Spec with the proper type.
type BootstrapStatusSpec ¶
type BootstrapStatusSpec struct {
SelfHostedControlPlane bool `yaml:"selfHostedControlPlane"`
}
BootstrapStatusSpec describe service state.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service describes running service state.
func NewService ¶
NewService initializes a Service resource.
func (*Service) ResourceDefinition ¶
func (r *Service) ResourceDefinition() meta.ResourceDefinitionSpec
ResourceDefinition implements meta.ResourceDefinitionProvider interface.
func (*Service) SetHealthy ¶
SetHealthy changes .spec.healthy.
func (*Service) SetRunning ¶
SetRunning changes .spec.running.
func (*Service) SetUnknown ¶ added in v0.11.0
SetUnknown changes .spec.unknown.
type ServiceSpec ¶
type ServiceSpec struct { Running bool `yaml:"running"` Healthy bool `yaml:"healthy"` Unknown bool `yaml:"unknown"` }
ServiceSpec describe service state.