Documentation ¶
Index ¶
- func ExtractClusterNpName(policyName string) string
- func ExtractNpName(policyName string) string
- func IsOrphan(ownerRefs []metav1.OwnerReference, ownerKind string) bool
- func UpdateCnpStatus(ctx context.Context, k8sClient client.Client, ...) error
- func UpdateNpStatus(ctx context.Context, k8sClient client.Client, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractClusterNpName ¶
ExtractNpName extracts the actual NimbusPolicy name from a formatted policy name.
func ExtractNpName ¶
ExtractNpName extracts the actual NimbusPolicy name from a formatted policy name.
func UpdateCnpStatus ¶
func UpdateCnpStatus(ctx context.Context, k8sClient client.Client, currPolicyFullName, cnpName string, decrement bool) error
UpdateNpStatus updates the provided NimbusPolicy status with the number and names of its descendant policies that were created. Every adapter is responsible for updating the status field of the corresponding NimbusPolicy with the number and names of successfully created policies by calling this API. This provides feedback to users about the translation and deployment of their security intent
func UpdateNpStatus ¶
func UpdateNpStatus(ctx context.Context, k8sClient client.Client, currPolicyFullName, npName, namespace string, decrement bool) error
UpdateNpStatus updates the provided NimbusPolicy status with the number and names of its descendant policies that were created. Every adapter is responsible for updating the status field of the corresponding NimbusPolicy with the number and names of successfully created policies by calling this API. This provides feedback to users about the translation and deployment of their security intent
Types ¶
This section is empty.