Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyStaticIP ¶
ApplyStaticIP sets the static-ip annotation on the given ingress to match the given staticIPName. It sets that annotation only if it is not set already. Returns an error if static-ip annotation is set already and it does not match the desired value.
func UnmarshallAndApplyDefaults ¶
UnmarshallAndApplyDefaults unmarshals ingress from the given file and sets the given namespace. It sets the namespace only if the unmarshalled ingress does not have a namespace. Returns an error if the unmarshalled ingress has a namespace set and it is different than the desired value.
Types ¶
type SyncerInterface ¶
type SyncerInterface interface { EnsureIngress(ing *v1beta1.Ingress, clients map[string]kubernetes.Interface, forceUpdate bool) ([]string, error) DeleteIngress(ing *v1beta1.Ingress, clients map[string]kubernetes.Interface) error }
SyncerInterface is an interface to manage ingress resources in clusters.
func NewIngressSyncer ¶
func NewIngressSyncer() SyncerInterface
NewIngressSyncer returns a new instance of syncer.