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.
Click to show internal directories.
Click to hide internal directories.