Documentation ¶
Overview ¶
nolint
nolint
nolint
nolint
Index ¶
- Constants
- Variables
- func AdmissionWebhookDeployment(name, image string) *appsv1.Deployment
- func AlpinePod(name string, node *v1.Node) *v1.Pod
- func CrossConnectMonitorDeployment(namespace string, image string) *appsv1.Deployment
- func CrossConnectMonitorService(namespace string) *v1.Service
- func DefaultNSMD() map[string]string
- func DefaultNSMRS() map[string]string
- func DefaultProxyNSMD() map[string]string
- func ForwardingPlane(name string, node *v1.Node, plane string) *v1.Pod
- func ForwardingPlaneWithConfig(name string, node *v1.Node, variables map[string]string, plane string) *v1.Pod
- func ForwardingPlaneWithLiveCheck(name string, node *v1.Node, plane string) *v1.Pod
- func InjectCoredns(pod *v1.Pod, corednsConfigName string) *v1.Pod
- func InjectCorednsWithSharedFolder(template *v1.Pod)
- func Jaeger() *v1.Pod
- func JaegerService(pod *v1.Pod) *v1.Service
- func KernelForwarderPod(name string, node *v1.Node) *v1.Pod
- func KernelForwarderPodConfig(name string, node *v1.Node, variables map[string]string) *v1.Pod
- func KernelForwarderPodLiveCheck(name string, node *v1.Node) *v1.Pod
- func NSCMonitorPod(name string, node *v1.Node, env map[string]string) *v1.Pod
- func NSCPod(name string, node *v1.Node, env map[string]string) *v1.Pod
- func NSCPodWebhook(name string, node *v1.Node) *v1.Pod
- func NSMRSPod(name string, node *v1.Node, variables map[string]string) *v1.Pod
- func NSMRSPodWithConfig(name string, node *v1.Node, config *NSMgrPodConfig) *v1.Pod
- func NSMgrPod(name string, node *v1.Node, namespace string) *v1.Pod
- func NSMgrPodLiveCheck(name string, node *v1.Node, namespace string) *v1.Pod
- func NSMgrPodWithConfig(name string, node *v1.Node, config *NSMgrPodConfig) *v1.Pod
- func PrefixServicePod(nmsp string) *v1.Pod
- func PrometheusConfigMap(namespace string) *v1.ConfigMap
- func PrometheusDeployment(namespace string) *appsv1.Deployment
- func PrometheusService(namespace string) *v1.Service
- func ProxyNSMgrPod(name string, node *v1.Node, namespace string) *v1.Pod
- func ProxyNSMgrPodLiveCheck(name string, node *v1.Node, namespace string) *v1.Pod
- func ProxyNSMgrPodWithConfig(name string, node *v1.Node, config *NSMgrPodConfig) *v1.Pod
- func ProxyNSMgrSvc() *v1.Service
- func SpireProxyPod() *v1.Pod
- func TestCommonPod(name string, command []string, node *v1.Node, env map[string]string, sa string) *v1.Pod
- func VPNGatewayNSEPod(name string, node *v1.Node, env map[string]string) *v1.Pod
- func VPPForwarderPod(name string, node *v1.Node) *v1.Pod
- func VPPForwarderPodConfig(name string, node *v1.Node, variables map[string]string) *v1.Pod
- func VPPForwarderPodLiveCheck(name string, node *v1.Node) *v1.Pod
- func VppAgentFirewallNSEConfigMapICMPHTTP(name, namespace string) *v1.ConfigMap
- func VppAgentFirewallNSEPod(name string, node *v1.Node, env map[string]string) *v1.Pod
- func VppAgentFirewallNSEPodWithConfigMap(name string, node *v1.Node, env map[string]string) *v1.Pod
- func VppTestCommonPod(app, name, container string, node *v1.Node, env map[string]string, sa string) *v1.Pod
- func WrongNSCPodWebhook(name string, node *v1.Node) *v1.Pod
- type NSMRSPodConfig
- type NSMgrContainerMode
- type NSMgrPodConfig
Constants ¶
const ( //DefaultKubeletAdminClusterRole default kubelet api admin cluster role name DefaultKubeletAdminClusterRole = "system:kubelet-api-admin" //DefaultAccount creates on namespace creating DefaultAccount = "default" // EnvForwardingPlane is the environment variable for configuring the forwarding plane EnvForwardingPlane = "FORWARDING_PLANE" // EnvForwardingPlaneVPP is the VPP forwarding plane EnvForwardingPlaneVPP = "vpp" // EnvForwardingPlaneKernel is the Kernel forwarding plane EnvForwardingPlaneKernel = "kernel-forwarder" // EnvForwardingPlaneDefault is the default forwarding plane EnvForwardingPlaneDefault = EnvForwardingPlaneVPP // NSEServiceAccount service account for Network Service Endpoints NSEServiceAccount = "nse-acc" // NSCServiceAccount service account for Network Service Clients NSCServiceAccount = "nsc-acc" // NSMgrServiceAccount service account for Network Service Managers NSMgrServiceAccount = "nsmgr-acc" // NSMRSServiceAccount service account for Network Service Manager Registry Server NSMRSServiceAccount = "nsmrs-acc" // ForwardPlaneServiceAccount service account for Forwarding Plane ForwardPlaneServiceAccount = "forward-plane-acc" )
const ( NSMDHostSystemPath = "/go/src" NSMDHostRootEnv = "NSMD_HOST_ROOT" // A host path for all sources. )
const ( NSMgrContainerNormal = 0 NSMgrContainerRun = 1 NSMgrContainerDebug = 2 )
Variables ¶
var ZeroGraceTimeout int64 = 0
Functions ¶
func AdmissionWebhookDeployment ¶
func AdmissionWebhookDeployment(name, image string) *appsv1.Deployment
AdmissionWebhookDeployment returns deployment named `name` which starts container from `image`
func CrossConnectMonitorDeployment ¶
func CrossConnectMonitorDeployment(namespace string, image string) *appsv1.Deployment
CrossConnectMonitorDeployment creates a new 'crossconnect-monitor' deployment
func CrossConnectMonitorService ¶
CrossConnectMonitorService creates a new 'crossconnect-monitor-svc' service
func DefaultNSMD ¶
DefaultNSMD creates default variables for NSMD.
func DefaultNSMRS ¶
DefaultNSMRS creates default variables for NSMRS.
func DefaultProxyNSMD ¶
DefaultProxyNSMD creates default variables for NSMD.
func ForwardingPlane ¶
ForwardingPlane - Wrapper for getting a forwarding plane pod
func ForwardingPlaneWithConfig ¶
func ForwardingPlaneWithConfig(name string, node *v1.Node, variables map[string]string, plane string) *v1.Pod
ForwardingPlaneWithConfig - Wrapper for getting a forwarding plane pod
func ForwardingPlaneWithLiveCheck ¶
ForwardingPlaneWithLiveCheck - Wrapper for getting a forwarding plane pod with liveness/readiness probes
func InjectCoredns ¶
InjectCoredns - Injects coredns container and configure the DnsConfig for template.
func InjectCorednsWithSharedFolder ¶
InjectCorednsWithSharedFolder - Injects coredns container and configure the DnsConfig for template. Also makes shared folder between coredns container and first container of template
func KernelForwarderPod ¶
KernelForwarderPod creates a pod
func KernelForwarderPodConfig ¶
KernelForwarderPodConfig creates a pod with config
func KernelForwarderPodLiveCheck ¶
KernelForwarderPodLiveCheck creates a pod with live check
func NSCMonitorPod ¶
NSCMonitorPod - creates client with nsm-init and nsm-monitor as side-car
func NSCPodWebhook ¶
NSCPodWebhook creates a new 'nsc' pod without init container
func NSMRSPodWithConfig ¶
NSMRSPodWithConfig - create NSMRS pod with custom config
func NSMgrPodLiveCheck ¶
func NSMgrPodWithConfig ¶
func PrefixServicePod ¶
PrefixServicePod creates pod that collects cluster network prefixes and stores them to ConfigMap
func PrometheusConfigMap ¶
PrometheusConfigMap creates a new 'prometheus-server' config map
func PrometheusDeployment ¶
func PrometheusDeployment(namespace string) *appsv1.Deployment
PrometheusDeployment creates a new 'prometheus-server' deployment
func PrometheusService ¶
PrometheusService creates a new 'prometheus-server' service
func ProxyNSMgrPod ¶
ProxyNSMgrPod - Proxy NSMgr pod with default configuration
func ProxyNSMgrPodLiveCheck ¶
ProxyNSMgrPodLiveCheck - Proxy NSMgr pod with default configuration and liveness/readiness probes
func ProxyNSMgrPodWithConfig ¶
ProxyNSMgrPodWithConfig - Proxy NSMgr pod
func ProxyNSMgrSvc ¶
ProxyNSMgrSvc - Proxy NSMgr Service pod configuration
func SpireProxyPod ¶
SpireProxyPod creates pod that proxy certificate channel from spire-agent
func TestCommonPod ¶
func TestCommonPod(name string, command []string, node *v1.Node, env map[string]string, sa string) *v1.Pod
TestCommonPod creates a new alpine-based testing pod
func VPNGatewayNSEPod ¶
VPNGatewayNSEPod creates a new 'vpn-gateway-nse' pod
func VPPForwarderPodConfig ¶
func VppAgentFirewallNSEConfigMapICMPHTTP ¶
VppAgentFirewallNSEConfigMapICMPHTTP creates a new 'vppagent-firewall-nse' config map
func VppAgentFirewallNSEPod ¶
VppAgentFirewallNSEPod creates a new 'vppagent-firewall-nse' pod
func VppAgentFirewallNSEPodWithConfigMap ¶
VppAgentFirewallNSEPodWithConfigMap creates a new 'vppagent-firewall-nse' pod with config map set
Types ¶
type NSMRSPodConfig ¶
NSMRSPodConfig - configuration required for NSMRS Pod creating (environment variables)
type NSMgrContainerMode ¶
type NSMgrContainerMode int8
type NSMgrPodConfig ¶
type NSMgrPodConfig struct { Nsmd NSMgrContainerMode // nsmd launch options - debug - for debug.sh, run - for run.sh NsmdK8s NSMgrContainerMode // nsmd-k8s launch options - debug - for debug.sh, run - for run.sh NsmdP NSMgrContainerMode // nsmdp launch options - debug - for debug.sh, run - for run.sh Variables map[string]string ForwarderVariables map[string]string Namespace string // contains filtered or unexported fields }
func NSMgrDevConfig ¶
func NSMgrDevConfig(nsmd NSMgrContainerMode, nsmdp NSMgrContainerMode, nsmdk8s NSMgrContainerMode, namespace string) *NSMgrPodConfig
Source Files ¶
- admission_webhook.go
- alpine.go
- common.go
- coredns_injection.go
- crossconnect_monitor.go
- jaeger.go
- kernel_forwarder.go
- nsc.go
- nsmd.go
- nsmrs.go
- prefix_service.go
- prometheus.go
- proxynsmd.go
- spire_proxy.go
- test_common.go
- utils.go
- versioning.go
- vpn_gateway_nse.go
- vpp_test_common.go
- vppagent_firewall_nse.go
- vppagent_forwarder.go