multitenancy

package
v2.2.13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: (C) 2026 Intel Corporation SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var (
	GetK8sClientFunc = k8s.New().WithInClusterConfig

	GetTemplatesFunc = func() ([]*v1alpha1.ClusterTemplate, error) {
		return template.ReadDefaultTemplates()
	}

	GetPodSecurityAdmissionConfigFunc = func() (map[string][]byte, error) {
		return template.ReadPodSecurityAdmissionConfigs()
	}
)

Functions

func SetDefaultTemplate

func SetDefaultTemplate(name string)

SetDefaultTemplate allows setting the default template name used for new projects.

Types

type TenancyDatamodel

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

TenancyDatamodel implements tenancy.Handler and manages per-project k8s resources.

func NewDatamodelClient

func NewDatamodelClient() (*TenancyDatamodel, error)

NewDatamodelClient creates a TenancyDatamodel ready to be used as a tenancy.Handler.

func (*TenancyDatamodel) HandleEvent added in v2.2.13

func (t *TenancyDatamodel) HandleEvent(ctx context.Context, event tenancy.Event) error

HandleEvent implements tenancy.Handler. It is called for every project lifecycle event (both replay on startup and incremental). Handlers must be idempotent.

Jump to

Keyboard shortcuts

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