networking

package
v0.0.0-...-12fbc85 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAirflowHTTPRoute

func NewAirflowHTTPRoute(name, namespace, hostname string, options ...HTTPRouteOption) *gwapiv1b1.HTTPRoute

func NewAirflowHealthCheckPolicy

func NewAirflowHealthCheckPolicy(name, namespace string) (*unstructured.Unstructured, error)

func NewHTTPRoute

func NewHTTPRoute(name, namespace, hostname string, options ...HTTPRouteOption) *gwapiv1b1.HTTPRoute

func NewHTTPRouteWithDefaultGateway

func NewHTTPRouteWithDefaultGateway(name, namespace, hostname string, options ...HTTPRouteOption) *gwapiv1b1.HTTPRoute

func NewHealthCheckPolicy

func NewHealthCheckPolicy(name, namespace string, options ...HealthCheckPolicyOption) (*unstructured.Unstructured, error)

func NewJupyterhubHTTPRoute

func NewJupyterhubHTTPRoute(name, namespace, hostname string, options ...HTTPRouteOption) *gwapiv1b1.HTTPRoute

func NewJupyterhubHealthCheckPolicy

func NewJupyterhubHealthCheckPolicy(name, namespace string) (*unstructured.Unstructured, error)

func NewNetworkPolicy

func NewNetworkPolicy(name, namespace string, matchLabels map[string]string, options ...NetworkPolicyOption) *netv1.NetworkPolicy

func NewNetworkPolicyJupyterPyPi

func NewNetworkPolicyJupyterPyPi(name, namespace string) *netv1.NetworkPolicy

Types

type FQDNNetworkPolicyEgressRule

type FQDNNetworkPolicyEgressRule struct {
	Ports []netv1.NetworkPolicyPort `json:"ports,omitempty"`
	To    []FQDNNetworkPolicyPeer   `json:"to"`
}

type FQDNNetworkPolicyPeer

type FQDNNetworkPolicyPeer struct {
	FQDNs []string `json:"fqdns"`
}

type FQDNNetworkPolicySpec

type FQDNNetworkPolicySpec struct {
	PodSelector metav1.LabelSelector          `json:"podSelector,omitempty"`
	Egress      []FQDNNetworkPolicyEgressRule `json:"egress,omitempty"`
	PolicyTypes []netv1.PolicyType            `json:"policyTypes,omitempty"`
}

type FQDNetworkPolicy

type FQDNetworkPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec FQDNNetworkPolicySpec `json:"spec,omitempty"`
}

func NewFQDNNetworkPolicy

func NewFQDNNetworkPolicy(name, namespace string, fqdns []string) *FQDNetworkPolicy

type HTTPRouteOption

type HTTPRouteOption func(*gwapiv1b1.HTTPRoute)

func WithDefaultGatewayRef

func WithDefaultGatewayRef() HTTPRouteOption

func WithServiceBackend

func WithServiceBackend(serviceName string, port int) HTTPRouteOption

type HealthCheckPolicy

type HealthCheckPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec HealthCheckPolicySpec `json:"spec,omitempty"`
}

type HealthCheckPolicyOption

type HealthCheckPolicyOption func(*HealthCheckPolicy)

func WithHTTPHealthCheck

func WithHTTPHealthCheck(requestPath string) HealthCheckPolicyOption

func WithServiceTargetRef

func WithServiceTargetRef(name string) HealthCheckPolicyOption

type HealthCheckPolicySpec

type HealthCheckPolicySpec struct {
	Default   *HealthCheckPolicySpecDefault   `json:"default,omitempty"`
	TargetRef *HealthCheckPolicySpecTargetRef `json:"targetRef,omitempty"`
}

type HealthCheckPolicySpecDefault

type HealthCheckPolicySpecDefault struct {
	Config *HealthCheckPolicySpecDefaultConfig `json:"config,omitempty"`
}

type HealthCheckPolicySpecDefaultConfig

type HealthCheckPolicySpecDefaultConfig struct {
	Type            string                                  `json:"type,omitempty"`
	HTTPHealthCheck *HealthCheckPolicySpecDefaultConfigHTTP `json:"httpHealthCheck,omitempty"`
}

type HealthCheckPolicySpecDefaultConfigHTTP

type HealthCheckPolicySpecDefaultConfigHTTP struct {
	RequestPath string `json:"requestPath,omitempty"`
}

type HealthCheckPolicySpecTargetRef

type HealthCheckPolicySpecTargetRef struct {
	Group string `json:"group"`
	Kind  string `json:"kind,omitempty"`
	Name  string `json:"name,omitempty"`
}

type NetworkPolicyOption

type NetworkPolicyOption func(*netv1.NetworkPolicy)

func WithEgressRule

func WithEgressRule(ports map[int32]string, ipBlocks []string) NetworkPolicyOption

Jump to

Keyboard shortcuts

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