Documentation ¶
Index ¶
- func AddDerivativeCCNPIfNeeded(cnp *cilium_v2.CiliumNetworkPolicy) bool
- func AddDerivativeCNPIfNeeded(cnp *cilium_v2.CiliumNetworkPolicy) bool
- func DeleteDerivativeCCNP(ccnp *cilium_v2.CiliumNetworkPolicy) error
- func DeleteDerivativeCNP(cnp *cilium_v2.CiliumNetworkPolicy) error
- func DeleteDerivativeFromCache(cnp *cilium_v2.CiliumNetworkPolicy)
- func UpdateCNPInformation()
- func UpdateDerivativeCCNPIfNeeded(newCCNP *cilium_v2.CiliumNetworkPolicy, oldCCNP *cilium_v2.CiliumNetworkPolicy) bool
- func UpdateDerivativeCNPIfNeeded(newCNP *cilium_v2.CiliumNetworkPolicy, oldCNP *cilium_v2.CiliumNetworkPolicy) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDerivativeCCNPIfNeeded ¶
func AddDerivativeCCNPIfNeeded(cnp *cilium_v2.CiliumNetworkPolicy) bool
AddDerivativeCCNPIfNeeded will create a new CCNP if the given NetworkPolicy has any rules that need to create a new derivative policy. It returns a boolean, true in case that all actions are correct, false if something fails.
func AddDerivativeCNPIfNeeded ¶
func AddDerivativeCNPIfNeeded(cnp *cilium_v2.CiliumNetworkPolicy) bool
AddDerivativeCNPIfNeeded will create a new CNP if the given CNP has any rules that need to create a new derivative policy. It returns a boolean, true in case that all actions are correct, false if something fails.
func DeleteDerivativeCCNP ¶
func DeleteDerivativeCCNP(ccnp *cilium_v2.CiliumNetworkPolicy) error
DeleteDerivativeCCNP if the given policy has a derivative constraint, the given CCNP will be deleted from store and the cache.
func DeleteDerivativeCNP ¶
func DeleteDerivativeCNP(cnp *cilium_v2.CiliumNetworkPolicy) error
DeleteDerivativeCNP if the given policy has a derivative constraint,the given CNP will be deleted from store and the cache.
func DeleteDerivativeFromCache ¶
func DeleteDerivativeFromCache(cnp *cilium_v2.CiliumNetworkPolicy)
DeleteDerivativeFromCache deletes the given CNP from the groupsCNPCache to no continue pooling new data.
func UpdateCNPInformation ¶
func UpdateCNPInformation()
UpdateCNPInformation retrieves all the CNP that has currently a derivative policy and creates the new derivatives policies with the latest information from providers. To avoid issues with rate-limiting this function will execute the addDerivative function with a max number of concurrent calls, defined on maxConcurrentUpdates.
func UpdateDerivativeCCNPIfNeeded ¶
func UpdateDerivativeCCNPIfNeeded(newCCNP *cilium_v2.CiliumNetworkPolicy, oldCCNP *cilium_v2.CiliumNetworkPolicy) bool
UpdateDerivativeCCNPIfNeeded updates or creates a CCNP if the given CCNP has any rule that needs to create a new derivative policy(eg: ToGroups). In case that the new CCNP does not have any derivative policy and the old one had one, it will delete the old policy. The function returns true if an update is required for the derivative policy and false otherwise.
func UpdateDerivativeCNPIfNeeded ¶
func UpdateDerivativeCNPIfNeeded(newCNP *cilium_v2.CiliumNetworkPolicy, oldCNP *cilium_v2.CiliumNetworkPolicy) bool
UpdateDerivativeCNPIfNeeded updates or creates a CNP if the given CNP has any rule that needs to create a new derivative policy(eg: ToGroups). In case that the new CNP does not have any derivative policy and the old one had one, it will delete the old policy. The function returns true if an update is required for the derivative policy and false otherwise.
Types ¶
This section is empty.