project

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RoleBindingInRegistrationNamespaceByRoleRef identifies the set of RoleBindings in a registration namespace
	// that are tied to specific RoleRefs that need to be watched by the operator
	RoleBindingInRegistrationNamespaceByRoleRef = "helm.cattle.io/role-binding-in-registration-ns-by-role-ref"

	// ClusterRoleBindingByRoleRef identifies the set of ClusterRoleBindings that are tied to RoleRefs that need
	// to be watched by the operator
	ClusterRoleBindingByRoleRef = "helm.cattle.io/cluster-role-binding-by-role-ref"

	// BindingReferencesDefaultOperatorRole is the value of the both of the above indices when a ClusterRoleBinding or RoleBinding
	// is tied to a RoleRef that matches a default ClusterRole that is watched by the operator to create admin, edit, or view RoleBindings
	// in the Project Release Namespace
	BindingReferencesDefaultOperatorRole = "bound-to-default-role"
)

Registration namespaces only

View Source
const (
	// RoleInReleaseNamespaceByReleaseNamespaceName identifies a Role in a release namespace that needs to have RBAC synced
	// on changes to RoleBindings in the Project Registration Namespace or ClusterRoleBindings.
	// The value of this will be the namespace and name of the Helm release that it is for.
	RoleInReleaseNamespaceByReleaseNamespaceName = "helm.cattle.io/role-in-release-ns-by-release-namespace-name"

	// ConfigMapInReleaseNamespaceByReleaseNamespaceName identifies a ConfigMap in a release namespace that is tied to the
	// ProjectHelmChart's status in the release namespace.
	// The value of this will be the namespace and name of the Helm release that it is for.
	ConfigMapInReleaseNamespaceByReleaseNamespaceName = "helm.cattle.io/configmap-in-release-ns-by-release-namespace-name"
)

Release namespaces only

View Source
const (
	// ProjectHelmChartByReleaseName identifies a ProjectHelmChart by the underlying Helm release it is tied to
	ProjectHelmChartByReleaseName = "helm.cattle.io/project-helm-chart-by-release-name"
)

All namespaces

Variables

View Source
var (
	DefaultJobImage = chart.DefaultJobImage
)

Functions

func MergeMaps

func MergeMaps(base, overlay map[string]interface{}) map[string]interface{}

func NamespacedBindingReferencesDefaultOperatorRole

func NamespacedBindingReferencesDefaultOperatorRole(namespace string) string

NamespacedBindingReferencesDefaultOperatorRole is the index used to mark a RoleBinding as one that targets one of the default operator roles (supplied in RuntimeOptions under AdminClusterRole, EditClusterRole, and ViewClusterRole)

Types

This section is empty.

Jump to

Keyboard shortcuts

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