v1

package
v4.3.9 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 DependencyTime added in v4.3.9

type DependencyTime struct {
	Component          string      `json:"component"`
	StartTime          metav1.Time `json:"startTime"`
	ReadyTime          metav1.Time `json:"readyTime"`
	DependencyDuration string      `json:"dependencyDuration"`
}

DependencyTime records timing information for a dependency

func (*DependencyTime) DeepCopy added in v4.3.9

func (in *DependencyTime) DeepCopy() *DependencyTime

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

func (*DependencyTime) DeepCopyInto added in v4.3.9

func (in *DependencyTime) DeepCopyInto(out *DependencyTime)

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"`
	// +kubebuilder:pruning:PreserveUnknownFields
	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"`

	// AllowSubsetProjection enables partial Role projection when NSS lacks permissions for some Roles.
	// When true, NSS will project Roles it can and skip those it cannot, updating status with unprojected Roles.
	// When false (default), NSS requires full permissions and fails if any Role cannot be projected.
	// +optional
	AllowSubsetProjection bool `json:"allowSubsetProjection,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"`

	// UnprojectedRoles contains Roles that could not be projected due to insufficient permissions.
	// Only populated when AllowSubsetProjection is enabled.
	// Format: "namespace/rolename" or "namespace/rolename: reason"
	UnprojectedRoles []string `json:"unprojectedRoles,omitempty"`

	// Status represents the status of the current operation (e.g. InProgress, Completed, Failed).
	// +optional
	Status string `json:"status,omitempty"`

	// ReconcileHistory contains up to 3 recent reconcile status messages/errors.
	// +optional
	ReconcileHistory []string `json:"reconcileHistory,omitempty"`

	// OperationTiming contains the latest 5 operation timing records.
	// +optional
	OperationTiming []OperationTimingEntry `json:"operationTiming,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.

type OperationTimingEntry added in v4.3.9

type OperationTimingEntry struct {
	StartTime      metav1.Time      `json:"startTime"`
	EndTime        metav1.Time      `json:"endTime"`
	TotalDuration  string           `json:"totalDuration"`
	Phase          string           `json:"phase"`
	DependencyTime []DependencyTime `json:"dependencyTime,omitempty"`
}

OperationTimingEntry records timing information for an operation

func (*OperationTimingEntry) DeepCopy added in v4.3.9

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

func (*OperationTimingEntry) DeepCopyInto added in v4.3.9

func (in *OperationTimingEntry) DeepCopyInto(out *OperationTimingEntry)

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