core

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scheme = runtime.NewScheme()

	ControllerName = "project-workspace-operator"
)
View Source
var (
	AllVerbs = []string{
		"get",
		"list",
		"watch",
		"create",
		"update",
		"patch",
		"delete",
	}
	ReadOnlyVerbs = []string{
		"get",
		"list",
		"watch",
	}
)
View Source
var (
	ErrNamespaceHasNoLabels       = errors.New("namespace has no labels. Map is nil")
	ErrNamespaceHasNoProjectLabel = errors.New("namespace has no project label")
)

Functions

This section is empty.

Types

type CommonReconciler

type CommonReconciler struct {
	Config         sharedconfig.SharedInformation
	ControllerName string
}

type ProjectReconciler

type ProjectReconciler struct {
	OnboardingStatic *clusters.Cluster
	Scheme           *runtime.Scheme
	*CommonReconciler
}

ProjectReconciler reconciles a Project object

func NewProjectReconciler added in v1.3.0

func NewProjectReconciler(scheme *runtime.Scheme, cr *CommonReconciler) (*ProjectReconciler, error)

func (*ProjectReconciler) Reconcile

func (r *ProjectReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ProjectReconciler) SetupWithManager

func (r *ProjectReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RBACSetup

type RBACSetup struct {
	// contains filtered or unexported fields
}

func NewRBACSetup

func NewRBACSetup(setupLog logr.Logger, c client.Client, controllerName string, cfg pwv1alpha1.ProjectWorkspaceConfigSpec) *RBACSetup

func (*RBACSetup) EnsureResources

func (setup *RBACSetup) EnsureResources(ctx context.Context) error

type ResourcesRemainingError

type ResourcesRemainingError ctrl.Result

func (ResourcesRemainingError) Error

func (err ResourcesRemainingError) Error() string

func (ResourcesRemainingError) Is

func (err ResourcesRemainingError) Is(target error) bool

type WorkspaceReconciler

type WorkspaceReconciler struct {
	OnboardingStatic *clusters.Cluster
	Scheme           *runtime.Scheme
	*CommonReconciler
}

WorkspaceReconciler reconciles a Workspace object

func NewWorkspaceReconciler added in v1.3.0

func NewWorkspaceReconciler(scheme *runtime.Scheme, cr *CommonReconciler) (*WorkspaceReconciler, error)

func (*WorkspaceReconciler) Reconcile

func (r *WorkspaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*WorkspaceReconciler) SetupWithManager

func (r *WorkspaceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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