Documentation ¶
Index ¶
- func ExtractNginxSpec(o metav1.ObjectMeta) (v1alpha1.NginxSpec, error)
- func GetNginxNameFromObject(o metav1.Object) string
- func LabelsForNginx(name string) map[string]string
- func LabelsForNginxString(name string) string
- func NewDeployment(n *v1alpha1.Nginx) (*appv1.Deployment, error)
- func NewService(n *v1alpha1.Nginx) *corev1.Service
- func SetNginxSpec(o *metav1.ObjectMeta, spec v1alpha1.NginxSpec) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractNginxSpec ¶
func ExtractNginxSpec(o metav1.ObjectMeta) (v1alpha1.NginxSpec, error)
ExtractNginxSpec extracts the nginx used to create the object
func GetNginxNameFromObject ¶
func LabelsForNginx ¶
LabelsForNginx returns the labels for a Nginx CR with the given name
func LabelsForNginxString ¶
LabelsForNginxString returns the labels in string format.
func NewDeployment ¶
func NewDeployment(n *v1alpha1.Nginx) (*appv1.Deployment, error)
NewDeployment creates a deployment for a given Nginx resource.
func NewService ¶
NewService assembles the ClusterIP service for the Nginx
func SetNginxSpec ¶
func SetNginxSpec(o *metav1.ObjectMeta, spec v1alpha1.NginxSpec) error
SetNginxSpec sets the nginx spec into the object annotation to be later extracted
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.