Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the updateservice v1 API group +kubebuilder:object:generate=true +groupName=updateservice.operator.openshift.io
Index ¶
Constants ¶
const ( // ConditionReconcileCompleted reports whether all required resources have been created // in the cluster and reflect the specified state. ConditionReconcileCompleted conditionsv1.ConditionType = "ReconcileCompleted" // ConditionRegistryCACertFound reports whether the updateservice registry CA cert had been found ConditionRegistryCACertFound conditionsv1.ConditionType = "RegistryCACertFound" )
Condition Types
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "updateservice.operator.openshift.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type UpdateService ¶
type UpdateService struct {
metav1.TypeMeta `json:",inline"`
// metadata is standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +kubebuilder:validation:Required
metav1.ObjectMeta `json:"metadata"`
// spec is the desired state of the UpdateService service. The
// operator will work to ensure that the desired configuration is
// applied to the cluster.
// +kubebuilder:validation:Required
Spec UpdateServiceSpec `json:"spec"`
// status contains information about the current state of the
// UpdateService service.
// +kubebuilder:validation:Optional
Status UpdateServiceStatus `json:"status"`
}
UpdateService is the Schema for the updateservices API.
func (*UpdateService) DeepCopy ¶
func (in *UpdateService) DeepCopy() *UpdateService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateService.
func (*UpdateService) DeepCopyInto ¶
func (in *UpdateService) DeepCopyInto(out *UpdateService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UpdateService) DeepCopyObject ¶
func (in *UpdateService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UpdateServiceList ¶
type UpdateServiceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []UpdateService `json:"items"`
}
UpdateServiceList contains a list of UpdateService.
func (*UpdateServiceList) DeepCopy ¶
func (in *UpdateServiceList) DeepCopy() *UpdateServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateServiceList.
func (*UpdateServiceList) DeepCopyInto ¶
func (in *UpdateServiceList) DeepCopyInto(out *UpdateServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UpdateServiceList) DeepCopyObject ¶
func (in *UpdateServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UpdateServiceSpec ¶
type UpdateServiceSpec struct {
// replicas is the number of pods to run. When >=2, a PodDisruptionBudget
// will ensure that voluntary disruption leaves at least one Pod running at
// all times.
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Required
Replicas int32 `json:"replicas"`
// releases is the repository in which release images are tagged,
// such as quay.io/openshift-release-dev/ocp-release.
// +kubebuilder:validation:Required
Releases string `json:"releases"`
// graphDataImage is a container image that contains the UpdateService graph
// data.
// +kubebuilder:validation:Required
GraphDataImage string `json:"graphDataImage"`
}
UpdateServiceSpec defines the desired state of UpdateService.
func (*UpdateServiceSpec) DeepCopy ¶
func (in *UpdateServiceSpec) DeepCopy() *UpdateServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateServiceSpec.
func (*UpdateServiceSpec) DeepCopyInto ¶
func (in *UpdateServiceSpec) DeepCopyInto(out *UpdateServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpdateServiceStatus ¶
type UpdateServiceStatus struct {
// Conditions describe the state of the UpdateService resource.
// +patchMergeKey=type
// +patchStrategy=merge
// +kubebuilder:validation:Optional
Conditions []conditionsv1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
// policyEngineURI is the external URI which exposes the policy
// engine. Available paths from this URI include:
//
// * /api/upgrades_info/v1/graph, with the update graph recommendations.
PolicyEngineURI string `json:"policyEngineURI,optional"`
}
UpdateServiceStatus defines the observed state of UpdateService.
func (*UpdateServiceStatus) DeepCopy ¶
func (in *UpdateServiceStatus) DeepCopy() *UpdateServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateServiceStatus.
func (*UpdateServiceStatus) DeepCopyInto ¶
func (in *UpdateServiceStatus) DeepCopyInto(out *UpdateServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.