Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPeerAuthentication ¶
func NewPeerAuthentication(ns, name string, opts ...ObjectOption) *securityv1beta1.PeerAuthentication
NewPeerAuthentication returns a new PeerAuthentication with empty Spec
Types ¶
type ObjectOption ¶
ObjectOption is a functional option for API objects builders.
func WithLabel ¶
func WithLabel(key, val string) ObjectOption
WithLabel sets the value of an API object's label.
func WithPermissiveMode ¶
func WithPermissiveMode(port uint32) ObjectOption
WithPermissiveMode sets the mTLS mode of the PeerAuthentication to Permissive for the given port
func WithSelectorSpec ¶
func WithSelectorSpec(labels map[string]string) ObjectOption
WithSelectorSpec selects a workload based on labels
Click to show internal directories.
Click to hide internal directories.