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 NamespacedBindingReferencesDefaultOperatorRole ¶
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)
func Register ¶
func Register( ctx context.Context, systemNamespace string, opts common2.Options, valuesOverride v1alpha2.GenericMap, apply apply.Apply, projectHelmCharts helmprojectcontroller.ProjectHelmChartController, projectHelmChartCache helmprojectcontroller.ProjectHelmChartCache, configmaps corecontroller.ConfigMapController, configmapCache corecontroller.ConfigMapCache, roles rbaccontroller.RoleController, roleCache rbaccontroller.RoleCache, clusterrolebindings rbaccontroller.ClusterRoleBindingController, clusterrolebindingCache rbaccontroller.ClusterRoleBindingCache, helmCharts k3shelmcontroller.HelmChartController, helmReleases helmlockercontroller.HelmReleaseController, namespaces corecontroller.NamespaceController, namespaceCache corecontroller.NamespaceCache, rolebindings rbaccontroller.RoleBindingController, rolebindingCache rbaccontroller.RoleBindingCache, projectGetter namespace.ProjectGetter, )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.