Documentation ¶
Index ¶
- func NewAirflowHTTPRoute(name, namespace, hostname string, options ...HTTPRouteOption) *gwapiv1b1.HTTPRoute
- func NewAirflowHealthCheckPolicy(name, namespace string) (*unstructured.Unstructured, error)
- func NewHTTPRoute(name, namespace, hostname string, options ...HTTPRouteOption) *gwapiv1b1.HTTPRoute
- func NewHTTPRouteWithDefaultGateway(name, namespace, hostname string, options ...HTTPRouteOption) *gwapiv1b1.HTTPRoute
- func NewHealthCheckPolicy(name, namespace string, options ...HealthCheckPolicyOption) (*unstructured.Unstructured, error)
- func NewJupyterhubHTTPRoute(name, namespace, hostname string, options ...HTTPRouteOption) *gwapiv1b1.HTTPRoute
- func NewJupyterhubHealthCheckPolicy(name, namespace string) (*unstructured.Unstructured, error)
- func NewNetworkPolicy(name, namespace string, matchLabels map[string]string, ...) *netv1.NetworkPolicy
- func NewNetworkPolicyJupyterPyPi(name, namespace string) *netv1.NetworkPolicy
- type FQDNNetworkPolicyEgressRule
- type FQDNNetworkPolicyPeer
- type FQDNNetworkPolicySpec
- type FQDNetworkPolicy
- type HTTPRouteOption
- type HealthCheckPolicy
- type HealthCheckPolicyOption
- type HealthCheckPolicySpec
- type HealthCheckPolicySpecDefault
- type HealthCheckPolicySpecDefaultConfig
- type HealthCheckPolicySpecDefaultConfigHTTP
- type HealthCheckPolicySpecTargetRef
- type NetworkPolicyOption
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 ¶
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 NetworkPolicyOption ¶
type NetworkPolicyOption func(*netv1.NetworkPolicy)
func WithEgressRule ¶
func WithEgressRule(ports map[int32]string, ipBlocks []string) NetworkPolicyOption
Click to show internal directories.
Click to hide internal directories.