Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObjectMeta ¶
func ObjectMeta(nameStr string) metav1.ObjectMeta
ObjectMeta cracks a Kubernetes object name string of the form "namespace/name" into a metav1.ObjectMeta struct. If the namespace portion is omitted, then the default namespace is filled in.
Types ¶
type ProxyBuilder ¶
ProxyBuilder is a builder object to make creating HTTPProxy fixtures more succinct.
func NewProxy ¶
func NewProxy(name string) *ProxyBuilder
NewProxy creates a new ProxyBuilder with the specified object name.
func (*ProxyBuilder) Annotate ¶
func (b *ProxyBuilder) Annotate(k string, v string) *ProxyBuilder
Label adds the given values as metadata annotations.
func (*ProxyBuilder) Label ¶
func (b *ProxyBuilder) Label(k string, v string) *ProxyBuilder
Label adds the given values as metadata labels.
func (*ProxyBuilder) WithFQDN ¶
func (b *ProxyBuilder) WithFQDN(fqdn string) *ProxyBuilder
func (*ProxyBuilder) WithSpec ¶
func (b *ProxyBuilder) WithSpec(spec v1.HTTPProxySpec) *v1.HTTPProxy
WithSpec updates the builder's Spec field, returning the build proxy.
Click to show internal directories.
Click to hide internal directories.