ingresses

package
v0.0.0-...-f367251 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

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

func WaitIngress(client *v1.Client, ingressResp *v1.SteveAPIObject, ingressName string) error

WaitIngress waits for an Ingress to be ready in the downstream cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL