v1

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

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 added in v1.2.0

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 added in v1.2.0

func (in *CSVInjector) DeepCopy() *CSVInjector

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

func (*CSVInjector) DeepCopyInto added in v1.2.0

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

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"`
}

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"`
}

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