k8s

package
v0.0.0-...-8793a30 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8s

type K8s struct {
	KubeConfigPath string
	Action         string
	Arguments      []string
	Config         networkspec.Config
	Launch         []LaunchConfig
}

K8s -

func (K8s) CheckComponentsHealth

func (k8s K8s) CheckComponentsHealth(config networkspec.Config, clientset *kubernetes.Clientset) error

CheckComponentsHealth --

func (K8s) CreateMSPConfigMaps

func (k8s K8s) CreateMSPConfigMaps(nsConfig networkspec.Config, clientset *kubernetes.Clientset) error

CreateMSPConfigMaps --

func (K8s) CreateNameSpace

func (k8s K8s) CreateNameSpace(ns string, clientset *kubernetes.Clientset) error

CreateNameSpace --

func (K8s) CreateSecret

func (k8s K8s) CreateSecret(name string, nsConfig networkspec.Config, clientset *kubernetes.Clientset) error

CreateSecret --

func (K8s) CreateStatefulset

func (k8s K8s) CreateStatefulset(launchConfig LaunchConfig, nsConfig networkspec.Config, clientset *kubernetes.Clientset) error

CreateStatefulset --

func (K8s) DeleteNameSpace

func (k8s K8s) DeleteNameSpace(ns string, clientset *kubernetes.Clientset) error

DeleteNameSpace --

func (K8s) ExternalIP

func (k8s K8s) ExternalIP(config networkspec.Config, serviceName string, clientset *kubernetes.Clientset) (string, error)

ExternalIP -- To get the externalIP of a fabric component

func (K8s) GenerateConfigurationFiles

func (k8s K8s) GenerateConfigurationFiles(upgrade bool) error

GenerateConfigurationFiles - to generate all the configuration files

func (K8s) GenerateConnectionProfiles

func (k8s K8s) GenerateConnectionProfiles(config networkspec.Config, clientset *kubernetes.Clientset) error

GenerateConnectionProfiles -- To generate conenction profiles

func (K8s) Network

func (k8s K8s) Network(action string) error

Network --

func (K8s) NodeStatus

func (k8s K8s) NodeStatus(clientset *kubernetes.Clientset) (corev1.NodeStatus, error)

NodeStatus --

func (K8s) PodStatusCheck

func (k8s K8s) PodStatusCheck(ns string, clientset *kubernetes.Clientset) error

PodStatusCheck --

func (K8s) ServicePort

func (k8s K8s) ServicePort(serviceName, serviceType, namespace string, forHealth bool, clientset *kubernetes.Clientset) (string, error)

ServicePort -- To get the port number of a fabric k8s component

func (K8s) ServiceStatus

func (k8s K8s) ServiceStatus(ns, serviceName string, clientset *kubernetes.Clientset) (*corev1.Service, error)

ServiceStatus --

func (K8s) UpdateConnectionProfilesToAddNewPeers

func (k8s K8s) UpdateConnectionProfilesToAddNewPeers(config networkspec.Config, clientset *kubernetes.Clientset) error

type LaunchConfig

type LaunchConfig struct {
	Name       string
	Type       string
	Containers []corev1.Container `json:"containers,omitempty"`
	Volumes    []corev1.Volume    `json:"volumes,omitempty"`
	Ports      []int32            `json:"ports,omitempty"`
}

LaunchConfig --

Jump to

Keyboard shortcuts

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