policybuilder

package
v0.0.0-...-e2fa7b9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClusterNimbusPolicy

func BuildClusterNimbusPolicy(ctx context.Context, logger logr.Logger, k8sClient client.Client, scheme *runtime.Scheme, csib v1.ClusterSecurityIntentBinding) (*v1.ClusterNimbusPolicy, error)

BuildClusterNimbusPolicy generates a ClusterNimbusPolicy based on given SecurityIntents and ClusterSecurityIntentBinding.

func BuildNimbusPolicy

func BuildNimbusPolicy(ctx context.Context, logger logr.Logger, k8sClient client.Client, scheme *runtime.Scheme, sib v1.SecurityIntentBinding) (*v1.NimbusPolicy, error)

BuildNimbusPolicy generates a NimbusPolicy based on given SecurityIntentBinding.

func PreprocessExpression

func PreprocessExpression(expr string) string

func ProcessCEL

func ProcessCEL(ctx context.Context, k8sClient client.Client, namespace string, expressions []string) (map[string]string, error)

ProcessCEL processes CEL expressions to generate matchLabels.

func ProcessMatchLabels

func ProcessMatchLabels(any, all []v1.ResourceFilter) (map[string]string, error)

ProcessMatchLabels processes any/all fields to generate matchLabels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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