controllers

package
v0.18.8-healthstatusfix Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationNamespaceSelectorLabelKey = "kubeslice.io/slice"
	NodeTypeSelectorLabelKey             = "kubeslice.io/node-type"
	PodTypeSelectorLabelKey              = "kubeslice.io/pod-type"
	TopologyKeySelector                  = "topology.kubeslice.io/gateway"
)
View Source
const (
	AllowedNamespaceSelectorLabelKey = "kubeslice.io/namespace"
)

Variables

View Source
var (
	// ControlPlaneNamespace is the namespace where slice operator is running
	ControlPlaneNamespace = "kubeslice-system"
	// DNSDeploymentName is the name of coredns deployment running in the cluster
	DNSDeploymentName            = "kubeslice-dns"
	NSMIPLabelSelectorKey string = "kubeslice.io/nsmIP"

	ClusterName = os.Getenv("CLUSTER_NAME")

	NodeIP = os.Getenv("NODE_IP")

	ImagePullSecretName = utils.GetEnvOrDefault("IMAGE_PULL_SECRET_NAME", "kubeslice-nexus")

	ReconcileInterval = 10 * time.Second
)

Functions

func ContructNetworkPolicyObject

func ContructNetworkPolicyObject(ctx context.Context, slice *kubeslicev1beta1.Slice, appNs string) *networkingv1.NetworkPolicy

func GetSlice

func GetSlice(ctx context.Context, c client.Client, slice string) (*kubeslicev1beta1.Slice, error)

GetSlice returns slice object by slice name

func GetSliceIngressGwPod

func GetSliceIngressGwPod(ctx context.Context, c client.Client, sliceName string) (bool, *kubeslicev1beta1.AppPod, error)

GetSliceIngressGwPod returns a bool to indicate if ingress gateway is enabled for the slice, a struct of type AppPod that contains info on the ingress gw pod and an error var to indicate if an error was encountered while executing the func.

func GetSliceRouterPodNameAndIP

func GetSliceRouterPodNameAndIP(ctx context.Context, c client.Client, sliceName string) (string, string, error)

func SliceAppNamespaceConfigured

func SliceAppNamespaceConfigured(ctx context.Context, slice string, namespace string) (bool, error)

SliceAppNamespaceConfigured returns true if the namespace is present in the application namespace list configured for the slice

Types

This section is empty.

Directories

Path Synopsis
* Copyright (c) 2022 Avesha, Inc.
* Copyright (c) 2022 Avesha, Inc.

Jump to

Keyboard shortcuts

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