Documentation ¶
Index ¶
- Constants
- func CreateIngress(client *v1.Client, ingressName string, ingressTemplate networking.Ingress) (*v1.SteveAPIObject, error)
- func GetExternalIngressResponse(client *rancher.Client, hostname string, path string, isWithTLS bool) (body string, err error)
- func IsIngressExternallyAccessible(client *rancher.Client, hostname string, path string, isWithTLS bool) (accessible bool, err error)
- func NewIngressPathTemplate(pathType networkingv1.PathType, path string, serviceName string, ...) networkingv1.HTTPIngressPath
- func NewIngressTemplate(ingressName, namespaceName string, hostName string, ...) networkingv1.Ingress
- func WaitIngress(client *v1.Client, ingressResp *v1.SteveAPIObject, ingressName string) error
Constants ¶
View Source
const ( IngressSteveType = "networking.k8s.io.ingress" IngressNginx = "ingress-nginx" RancherWebhook = "rancher-webhook" )
Variables ¶
This section is empty.
Functions ¶
func CreateIngress ¶
func CreateIngress(client *v1.Client, ingressName string, ingressTemplate networking.Ingress) (*v1.SteveAPIObject, error)
CreateIngress will create an Ingress object in the downstream cluster.
func GetExternalIngressResponse ¶
func GetExternalIngressResponse(client *rancher.Client, hostname string, path string, isWithTLS bool) (body string, err error)
GetExternalIngressResponse gets a response from a specific hostname and path. Returns the response and an error if any.
func IsIngressExternallyAccessible ¶
func IsIngressExternallyAccessible(client *rancher.Client, hostname string, path string, isWithTLS bool) (accessible bool, err error)
IsIngressExternallyAccessible checks if the ingress is accessible externally, it returns true if the ingress is accessible, false if it is not, and an error if there is an error.
func NewIngressPathTemplate ¶
func NewIngressPathTemplate(pathType networkingv1.PathType, path string, serviceName string, servicePort int32) networkingv1.HTTPIngressPath
func NewIngressTemplate ¶
func NewIngressTemplate(ingressName, namespaceName string, hostName string, paths []networkingv1.HTTPIngressPath) networkingv1.Ingress
NewIngressTemplate is a constructor that creates the ingress template for ingresses
func WaitIngress ¶
WaitIngress waits for an Ingress to be ready in the downstream cluster
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.