ocp

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 8

Documentation

Index

Constants

View Source
const (
	SubmarinerGatewayLabel = "submariner.io/gateway"
)

Variables

This section is empty.

Functions

func RemoveDuplicates added in v0.13.4

func RemoveDuplicates(machineSets []unstructured.Unstructured, gwNodes []v1.Node) []v1.Node

Types

type MachineSetDeployer

type MachineSetDeployer interface {
	// Deploy makes sure to deploy the given machine set (creating or updating it).
	Deploy(machineSet *unstructured.Unstructured) error

	// GetWorkerNodeImage returns the image used by OCP worker nodes.
	GetWorkerNodeImage(machineSet *unstructured.Unstructured, infraID string) (string, error)

	// List will list all the machineSets that have the submariner.io/gateway set to "true".
	List() ([]unstructured.Unstructured, error)

	// Delete will remove the given machineset.
	Delete(machineSet *unstructured.Unstructured) error

	// DeleteByName will remove the machineset with given name.
	DeleteByName(name, namespace string) error
}

MachineSetDeployer can deploy and delete machinesets from OCP.

func NewK8sMachinesetDeployer

func NewK8sMachinesetDeployer(restMapper meta.RESTMapper, dynamicClient dynamic.Interface) MachineSetDeployer

NewK8sMachinesetDeployer returns a MachineSetDeployer capable deploying directly to Kubernetes.

Directories

Path Synopsis
Package fake is a generated GoMock package.
Package fake is a generated GoMock package.

Jump to

Keyboard shortcuts

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