Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the kubemarkproviderconfig v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/openshift/cluster-api-provider-kubemark/pkg/apis/kubemarkproviderconfig +k8s:defaulter-gen=TypeMeta +groupName=kubemarkproviderconfig.k8s.io
Package v1beta1 contains API Schema definitions for the kubemarkproviderconfig v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/openshift/cluster-api-provider-kubemark/pkg/apis/kubemarkproviderconfig +k8s:defaulter-gen=TypeMeta +groupName=kubemarkproviderconfig.k8s.io
Index ¶
- Constants
- Variables
- func NewScheme() (*runtime.Scheme, error)
- type KubemarkMachineProviderCondition
- type KubemarkMachineProviderConditionType
- type KubemarkMachineProviderConfig
- type KubemarkMachineProviderConfigList
- type KubemarkMachineProviderStatus
- type KubemarkProviderConfigCodec
- func (codec *KubemarkProviderConfigCodec) DecodeProviderSpec(providerSpec *clusterv1.ProviderSpec, out runtime.Object) error
- func (codec *KubemarkProviderConfigCodec) DecodeProviderStatus(providerStatus *runtime.RawExtension, out runtime.Object) error
- func (codec *KubemarkProviderConfigCodec) EncodeProviderSpec(in runtime.Object) (*clusterv1.ProviderSpec, error)
- func (codec *KubemarkProviderConfigCodec) EncodeProviderStatus(in runtime.Object) (*runtime.RawExtension, error)
Constants ¶
const ( // ClusterIDLabel is the label that a machineset must have to identify the // cluster to which it belongs. ClusterIDLabel = "sigs.k8s.io/cluster-api-cluster" MachineRoleLabel = "sigs.k8s.io/cluster-api-machine-role" MachineTypeLabel = "sigs.k8s.io/cluster-api-machine-type" )
Annotation constants
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "kubemarkproviderconfig.k8s.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
Types ¶
type KubemarkMachineProviderCondition ¶
type KubemarkMachineProviderCondition struct { // Type is the type of the condition. Type KubemarkMachineProviderConditionType `json:"type"` // Status is the status of the condition. Status corev1.ConditionStatus `json:"status"` // LastProbeTime is the last time we probed the condition. // +optional LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` // LastTransitionTime is the last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // Reason is a unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // Message is a human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty"` }
KubemarkMachineProviderCondition is a condition in a KubemarkMachineProviderStatus
func (*KubemarkMachineProviderCondition) DeepCopy ¶
func (in *KubemarkMachineProviderCondition) DeepCopy() *KubemarkMachineProviderCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineProviderCondition.
func (*KubemarkMachineProviderCondition) DeepCopyInto ¶
func (in *KubemarkMachineProviderCondition) DeepCopyInto(out *KubemarkMachineProviderCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubemarkMachineProviderConditionType ¶
type KubemarkMachineProviderConditionType string
KubemarkMachineProviderConditionType is a valid value for KubemarkMachineProviderCondition.Type
const ( // MachineCreation indicates whether the machine has been created or not. If not, // it should include a reason and message for the failure. MachineCreation KubemarkMachineProviderConditionType = "MachineCreation" )
Valid conditions for an Kubemark machine instance
type KubemarkMachineProviderConfig ¶
type KubemarkMachineProviderConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // TurnUnhealthyAfter configures kubemark node to go Unready TurnUnhealthyAfter bool `json:"turnUnhealthyAfter"` // UnhealthyDuration specifies for how long kubemark node stays in Unready state UnhealthyDuration metav1.Duration `json:"unhealthyDuration"` // HealthyDuration specifies for how long kubemark node stays in Ready state HealthyDuration metav1.Duration `json:"healthyDuration"` // TurnUnhealthyPeriodically configures kubemark node to go unready and ready // periodically indefinitely TurnUnhealthyPeriodically bool `json:"turnUnhealthyPeriodically"` // Kubemark image with hollow kubelet to run Image string `json:"image"` // Time after which machine gets deleted by the actuator DeletionTimeout *metav1.Duration `json:"deletionTimeout"` // NumCores for a number of cores a kubemark node will claim to have NumCores *int `json:"numCores"` // NMemoryCapacityumCores for a memory a kubemark node will claim to have MemoryCapacity *uint `json:"memoryCapacity"` }
KubemarkMachineProviderConfig is the Schema for the kubemarkmachineproviderconfigs API +k8s:openapi-gen=true
func (*KubemarkMachineProviderConfig) DeepCopy ¶
func (in *KubemarkMachineProviderConfig) DeepCopy() *KubemarkMachineProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineProviderConfig.
func (*KubemarkMachineProviderConfig) DeepCopyInto ¶
func (in *KubemarkMachineProviderConfig) DeepCopyInto(out *KubemarkMachineProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubemarkMachineProviderConfig) DeepCopyObject ¶
func (in *KubemarkMachineProviderConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubemarkMachineProviderConfigList ¶
type KubemarkMachineProviderConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KubemarkMachineProviderConfig `json:"items"` }
KubemarkMachineProviderConfigList contains a list of KubemarkMachineProviderConfig
func (*KubemarkMachineProviderConfigList) DeepCopy ¶
func (in *KubemarkMachineProviderConfigList) DeepCopy() *KubemarkMachineProviderConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineProviderConfigList.
func (*KubemarkMachineProviderConfigList) DeepCopyInto ¶
func (in *KubemarkMachineProviderConfigList) DeepCopyInto(out *KubemarkMachineProviderConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubemarkMachineProviderConfigList) DeepCopyObject ¶
func (in *KubemarkMachineProviderConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubemarkMachineProviderStatus ¶
type KubemarkMachineProviderStatus struct { metav1.TypeMeta `json:",inline"` // InstanceID is the instance ID of the machine created in Kubemark // +optional InstanceID *string `json:"instanceId,omitempty"` // InstanceState is the state of the Kubemark instance for this machine // +optional InstanceState *string `json:"instanceState,omitempty"` // Conditions is a set of conditions associated with the Machine to indicate // errors or other status Conditions []KubemarkMachineProviderCondition `json:"conditions,omitempty"` }
KubemarkMachineProviderStatus is the type that will be embedded in a Machine.Status.ProviderStatus field. It contains Kubemark-specific status information. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*KubemarkMachineProviderStatus) DeepCopy ¶
func (in *KubemarkMachineProviderStatus) DeepCopy() *KubemarkMachineProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineProviderStatus.
func (*KubemarkMachineProviderStatus) DeepCopyInto ¶
func (in *KubemarkMachineProviderStatus) DeepCopyInto(out *KubemarkMachineProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubemarkMachineProviderStatus) DeepCopyObject ¶
func (in *KubemarkMachineProviderStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubemarkProviderConfigCodec ¶
type KubemarkProviderConfigCodec struct {
// contains filtered or unexported fields
}
KubemarkProviderConfigCodec is a runtime codec for the provider configuration +k8s:deepcopy-gen=false
func NewCodec ¶
func NewCodec() (*KubemarkProviderConfigCodec, error)
NewCodec creates a serializer/deserializer for the provider configuration
func (*KubemarkProviderConfigCodec) DecodeProviderSpec ¶
func (codec *KubemarkProviderConfigCodec) DecodeProviderSpec(providerSpec *clusterv1.ProviderSpec, out runtime.Object) error
DecodeProviderSpec deserialises an object from the provider config
func (*KubemarkProviderConfigCodec) DecodeProviderStatus ¶
func (codec *KubemarkProviderConfigCodec) DecodeProviderStatus(providerStatus *runtime.RawExtension, out runtime.Object) error
DecodeProviderStatus deserialises the provider status
func (*KubemarkProviderConfigCodec) EncodeProviderSpec ¶
func (codec *KubemarkProviderConfigCodec) EncodeProviderSpec(in runtime.Object) (*clusterv1.ProviderSpec, error)
EncodeProviderSpec serialises an object to the provider config
func (*KubemarkProviderConfigCodec) EncodeProviderStatus ¶
func (codec *KubemarkProviderConfigCodec) EncodeProviderStatus(in runtime.Object) (*runtime.RawExtension, error)
EncodeProviderStatus serialises the provider status