k8s

package
v5.3.2-1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPodNuageMetadata

func GetPodNuageMetadata(nuageMetadata *client.NuageMetadata, name string, ns string, orchestrator string) error

GetPodNuageMetadata will populate NuageMetadata struct needed for port resolution using CNI plugin

func SendPodDeletionNotification

func SendPodDeletionNotification(podname string, ns string, orchestrator string) error

SendPodDeletionNotification will notify the Nuage monitor on master nodes about pod deletion

func VerifyHostType

func VerifyHostType() bool

VerifyHostType will determine the base host as RHEL server or RHEL atomic

Types

type NuageKubeMonResp

type NuageKubeMonResp struct {
	Subnet string   `json:"subnetName"`
	PG     []string `json:"policyGroups"`
}

NuageKubeMonResp will unmarshal JSON response from Nuage kubemon service

type Pod

type Pod struct {
	Name   string `json:"podName"`
	Zone   string `json:"desiredZone,omitempty"`
	Subnet string `json:"desiredSubnet,omitempty"`
	Action string `json:"action,omitempty"`
}

Pod will hold fields necessary to query Nuage kubemon service to obtain pod metadata

Jump to

Keyboard shortcuts

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