Documentation
¶
Overview ¶
Package shared contains types and functions used by API definitions in the operators package +groupName=operators.example.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client client.Client
The kube client used from webhook to check some other resource on kube
The logrus instance to print some logs from webhook
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct { // NoDelete is true if controller can't delete resource on remote provider // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional NoDelete bool `json:"noDelete,omitempty"` // NoCreate is true if controller can't create resource on remote provider // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional NoCreate bool `json:"noCreate,omitempty"` // NoUpdate is true if controller can't update resource on remote provider // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional NoUpdate bool `json:"noUpdate,omitempty"` // ExcludeFieldsOnDiff is the list of fields to exclude when diff step is processing // +operator-sdk:csv:customresourcedefinitions:type=spec // +optional ExcludeFieldsOnDiff []string `json:"excludeFields,omitempty"` }
Policy define the policy that controller need to respect when it reconcile resource
func (*Policy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (*Policy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Click to show internal directories.
Click to hide internal directories.