shared

package
v0.0.0-...-6eef7e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 2 Imported by: 0

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

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

func (in *Policy) DeepCopy() *Policy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.

func (*Policy) DeepCopyInto

func (in *Policy) DeepCopyInto(out *Policy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL