Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ClusterNetworkPolicyAPIVersion is the API version for AWS VPC CNI ClusterNetworkPolicy. ClusterNetworkPolicyAPIVersion = "networking.k8s.aws/v1alpha1" // ClusterNetworkPolicyName is the name of the policy created by the operator. ClusterNetworkPolicyName = "illumio-cloud-operator-flow-logging" )
View Source
const DefaultPollInterval = 1 * time.Second
DefaultPollInterval is the default interval for polling logs (matches kubectl default).
Variables ¶
This section is empty.
Functions ¶
func EnsureFlowLoggingPolicy ¶
func EnsureFlowLoggingPolicy(ctx context.Context, logger *zap.Logger, dynamicClient dynamic.Interface) error
EnsureFlowLoggingPolicy creates the ClusterNetworkPolicy for comprehensive flow logging. If the policy already exists, it returns nil (idempotent).
func IsCRDAvailable ¶
func IsCRDAvailable(logger *zap.Logger, discoveryClient discovery.DiscoveryInterface) bool
IsCRDAvailable checks if the ClusterNetworkPolicy CRD is registered in the cluster.
Types ¶
Click to show internal directories.
Click to hide internal directories.