Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePatch ¶
func CreatePatch(ns, name, cipName string, cm *corev1.ConfigMap, cip *webhookcip.ClusterImagePolicy) ([]byte, error)
CreatePatch updates a particular entry to see if they are differing and returning the patch bytes for it that's suitable for calling ConfigMap.Patch with.
func CreateRemovePatch ¶
CreateRemovePatch removes an entry from the ConfigMap and returns the patch bytes for it that's suitable for calling ConfigMap.Patch with.
func NewConfigMap ¶
func NewConfigMap(ns, name, cipName string, cip *webhookcip.ClusterImagePolicy) (*corev1.ConfigMap, error)
NewConfigMap returns a new ConfigMap with an entry for the given ClusterImagePolicy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.