v1

package
v4.2.4-0...-6675f97 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the operator v1 API group +kubebuilder:object:generate=true +groupName=operator.ibm.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "operator.ibm.com", 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 CSVInjector

type CSVInjector struct {
	// +kubebuilder:default:=true
	Enable bool `json:"enable"`
}

CSVInjector manages if operator will insert labels and WATCH_NAMESPACES in CSV automatically

func (*CSVInjector) DeepCopy

func (in *CSVInjector) DeepCopy() *CSVInjector

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

func (*CSVInjector) DeepCopyInto

func (in *CSVInjector) DeepCopyInto(out *CSVInjector)

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

type LicenseAcceptance

type LicenseAcceptance struct {
	// Accepting the license - URL: https://ibm.biz/integration-licenses
	// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.x-descriptors="urn:alm:descriptor:com.tectonic.ui:hidden"
	// +optional
	Accept bool `json:"accept"`
	// The type of license being accepted.
	// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.x-descriptors="urn:alm:descriptor:com.tectonic.ui:hidden"
	Use string `json:"use,omitempty"`
	// The license being accepted where the component has multiple.
	// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.x-descriptors="urn:alm:descriptor:com.tectonic.ui:hidden"
	License string `json:"license,omitempty"`
	// The license key for this deployment.
	// +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.x-descriptors="urn:alm:descriptor:com.tectonic.ui:hidden"
	Key string `json:"key,omitempty"`
}

LicenseAcceptance defines the license specification in CSV

func (*LicenseAcceptance) DeepCopy

func (in *LicenseAcceptance) DeepCopy() *LicenseAcceptance

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

func (*LicenseAcceptance) DeepCopyInto

func (in *LicenseAcceptance) DeepCopyInto(out *LicenseAcceptance)

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

type NamespaceScope

type NamespaceScope struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +kubebuilder:pruning:PreserveUnknownFields
	Spec   NamespaceScopeSpec   `json:"spec,omitempty"`
	Status NamespaceScopeStatus `json:"status,omitempty"`
}

NamespaceScope is the Schema for the namespacescopes API

func (*NamespaceScope) DeepCopy

func (in *NamespaceScope) DeepCopy() *NamespaceScope

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

func (*NamespaceScope) DeepCopyInto

func (in *NamespaceScope) DeepCopyInto(out *NamespaceScope)

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

func (*NamespaceScope) DeepCopyObject

func (in *NamespaceScope) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NamespaceScopeList

type NamespaceScopeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NamespaceScope `json:"items"`
}

NamespaceScopeList contains a list of NamespaceScope

func (*NamespaceScopeList) DeepCopy

func (in *NamespaceScopeList) DeepCopy() *NamespaceScopeList

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

func (*NamespaceScopeList) DeepCopyInto

func (in *NamespaceScopeList) DeepCopyInto(out *NamespaceScopeList)

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

func (*NamespaceScopeList) DeepCopyObject

func (in *NamespaceScopeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NamespaceScopeSpec

type NamespaceScopeSpec struct {

	// Namespaces that are part of this scope
	NamespaceMembers []string `json:"namespaceMembers,omitempty"`

	// ServiceAccountMembers are extra service accounts will be bond the roles from other namespaces
	ServiceAccountMembers []string `json:"serviceAccountMembers,omitempty"`

	// ConfigMap name that will contain the list of namespaces to be watched
	ConfigmapName string `json:"configmapName,omitempty"`

	// Restart pods with the following labels when the namespace list changes
	RestartLabels map[string]string `json:"restartLabels,omitempty"`

	// Set the following to true to manually manage permissions for the NamespaceScope operator to extend control over other namespaces
	// The operator may fail when trying to extend permissions to other namespaces, but the cluster administrator can correct this using the
	// authorize-namespace command.
	ManualManagement bool `json:"manualManagement,omitempty"`

	// When CSVInjector is enabled, operator will inject the watch namespace list into operator csv.
	CSVInjector CSVInjector `json:"csvInjector,omitempty"`

	// +optional
	License LicenseAcceptance `json:"license,omitempty"`
}

NamespaceScopeSpec defines the desired state of NamespaceScope

func (*NamespaceScopeSpec) DeepCopy

func (in *NamespaceScopeSpec) DeepCopy() *NamespaceScopeSpec

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

func (*NamespaceScopeSpec) DeepCopyInto

func (in *NamespaceScopeSpec) DeepCopyInto(out *NamespaceScopeSpec)

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

type NamespaceScopeStatus

type NamespaceScopeStatus struct {
	ValidatedMembers []string `json:"validatedMembers,omitempty"`

	ManagedCSVList     []string `json:"managedCSVList,omitempty"`
	PatchedCSVList     []string `json:"patchedCSVList,omitempty"`
	ManagedWebhookList []string `json:"managedWebhookList,omitempty"`
	PatchedWebhookList []string `json:"patchedWebhookList,omitempty"`
}

NamespaceScopeStatus defines the observed state of NamespaceScope

func (*NamespaceScopeStatus) DeepCopy

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

func (*NamespaceScopeStatus) DeepCopyInto

func (in *NamespaceScopeStatus) DeepCopyInto(out *NamespaceScopeStatus)

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