util

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelProjectName is the label name for project
	LabelProjectName = "tkestack.io/projectName"
	// LabelNamespaceName is the label name for namespace
	LabelNamespaceName = "tkestack.io/namespaceName"
)

Variables

This section is empty.

Functions

func AddClusterHardToUsed

func AddClusterHardToUsed(used *v1.ClusterUsed, delta v1.ClusterHard)

AddClusterHardToUsed is used to add Hard to Used

func FilterChartGroup

func FilterChartGroup(ctx context.Context, chartGroup *business.ChartGroup) error

FilterChartGroup is used to filter chartGroups that do not belong to the tenant.

func FilterImageNamespace

func FilterImageNamespace(ctx context.Context, imageNamespace *business.ImageNamespace) error

FilterImageNamespace is used to filter imageNamespaces that do not belong to the tenant.

func FilterNamespace

func FilterNamespace(ctx context.Context, namespace *business.Namespace) error

FilterNamespace is used to filter namespaces that do not belong to the tenant.

func FilterNsEmigration added in v1.3.1

func FilterNsEmigration(ctx context.Context, emigration *business.NsEmigration) error

FilterNsEmigration is used to filter emigrations that do not belong to the tenant.

func FilterPlatform

func FilterPlatform(ctx context.Context, platform *business.Platform) error

FilterPlatform is used to filter platforms that do not belong to the tenant.

func FilterProject

func FilterProject(ctx context.Context, project *business.Project) error

FilterProject is used to filter projects that do not belong to the tenant.

func SubClusterHardFromUsed

func SubClusterHardFromUsed(used *v1.ClusterUsed, needed v1.ClusterHard)

SubClusterHardFromUsed is used to sub Hard from Used

Types

This section is empty.

Jump to

Keyboard shortcuts

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