features

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package features provides sample mutations for the clusterrole primitive example.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoreRulesMutation

func CoreRulesMutation() clusterrole.Mutation

CoreRulesMutation grants read access to core resources (pods, services, configmaps). It is always enabled — Feature is nil so it applies unconditionally.

func DeploymentAccessMutation

func DeploymentAccessMutation(version string, manageDeployments bool) clusterrole.Mutation

DeploymentAccessMutation grants read/write access to deployments. It is enabled when manageDeployments is true.

func SecretAccessMutation

func SecretAccessMutation(version string, needsSecrets bool) clusterrole.Mutation

SecretAccessMutation grants read access to secrets. It is enabled when needsSecrets is true.

func VersionLabelMutation

func VersionLabelMutation(version string) clusterrole.Mutation

VersionLabelMutation sets the app.kubernetes.io/version label on the ClusterRole. It is always enabled — Feature is nil so it applies unconditionally.

Types

This section is empty.

Jump to

Keyboard shortcuts

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