util

package
v1.29.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GatewayGroupNamespacedResource       = []string{"gateways", "httproutes", "tlsroutes", "grpcroutes", "tcproutes", "referencegrants", "backendtlspolicies"}
	GatewayGroupNamespacedResourceStatus = []string{"gateways/status", "httproutes/status", "tlsroutes/status", "grpcroutes/status", "tcproutes/status", "backendtlspolicies/status"}
	ContourGroupNamespacedResource       = []string{"httpproxies", "tlscertificatedelegations", "extensionservices", "contourconfigurations"}
	ContourGroupNamespacedResourceStatus = []string{"httpproxies/status", "extensionservices/status", "contourconfigurations/status"}
)

Functions

func ClusterScopedResourcePolicyRules

func ClusterScopedResourcePolicyRules() []rbac_v1.PolicyRule

ClusterScopedResourcePolicyRules returns a set of policy rules for cluster-scoped resources.

func NamespacedResourcePolicyRules

func NamespacedResourcePolicyRules(resourcesToSkip []contour_v1.Feature) []rbac_v1.PolicyRule

NamespacedResourcePolicyRules returns a set of policy rules for resources that are namespaced-scoped. If resourcesToSkip is not empty, skip creating RBAC for those CRDs.

func PolicyRuleFor

func PolicyRuleFor(apiGroup string, verbs []string, resources ...string) rbac_v1.PolicyRule

PolicyRuleFor returns PolicyRule object with provided apiGroup, verbs and resources

Types

This section is empty.

Jump to

Keyboard shortcuts

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