Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaintainanceWindow ¶
type MaintainanceWindow struct { // Start is the start time of the maintenance window. // Allowed formats are [time.TimeOnly] and "15:04:05Z07:00". Start Time `json:"start" yaml:"start" mapstructure:"start"` // End is the end time of the maintenance window. // Allowed formats are [time.TimeOnly] and "15:04:05Z07:00". End Time `json:"end" yaml:"end" mapstructure:"end"` }
MaintainanceWindow represents the maintenance window.
func (*MaintainanceWindow) Validate ¶
func (m *MaintainanceWindow) Validate() error
Validate checks if the maintenance window is valid. It implements the [config.Validator] interface.
type OperatorConfig ¶
type OperatorConfig struct { // MaintainanceWindow is the maintenance window the operator allows changes to workloads. MaintainanceWindow MaintainanceWindow `json:"maintainanceWindow" yaml:"maintainanceWindow" mapstructure:"maintainanceWindow" validate:"required"` }
OperatorConfig is the configuration for the operator.
func LoadConfig ¶
LoadConfig loads the operator configuration from the Kubernetes API.
type Time ¶
Time is a wrapper around the time.Time type that supports JSON and YAML serialization.
It supports the following formats:
- time.TimeOnly
- time.Kitchen
- "15:04:05Z07:00"
func (*Time) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Time) MarshalYAML ¶
MarshalYAML implements the yaml.Marshaler interface.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Time) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
type WorkloadUpdateConfig ¶
type WorkloadUpdateConfig struct { metav1.TypeMeta `json:",inline" yaml:",inline"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` Spec OperatorConfig `json:"spec" yaml:"spec"` }
func (*WorkloadUpdateConfig) DeepCopyObject ¶
func (o *WorkloadUpdateConfig) DeepCopyObject() runtime.Object
DeepCopyObject implements the runtime.Object interface.