kindservice

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterOrderToClusterCreate

func ClusterOrderToClusterCreate(ctx context.Context, clusterOrder *apiresourcecontracts.ResourceClusterOrder) error

func ClusterOrderToClusterDelete

func ClusterOrderToClusterDelete(ctx context.Context, clusterOrder *apiresourcecontracts.ResourceClusterOrder) error

func ClusterOrderToClusterUpdate

func ClusterOrderToClusterUpdate(ctx context.Context, clusterOrder *apiresourcecontracts.ResourceClusterOrder) error

func GetFreePort

func GetFreePort() (port int, err error)

Types

type KindConfig

type KindConfig struct {
	Kind       string         `json:"kind" yaml:"kind"`
	ApiVersion string         `json:"apiVersion" yaml:"apiVersion"`
	Nodes      []KindNode     `json:"nodes" yaml:"nodes"`
	Networking KindNetworking `json:"networking,omitempty" yaml:"networking,omitempty"`
}

type KindExtraPortMapping

type KindExtraPortMapping struct {
	ContainerPort int    `json:"containerPort,omitempty" yaml:"containerPort,omitempty"`
	HostPort      int    `json:"hostPort,omitempty" yaml:"hostPort,omitempty"`
	Protocol      string `json:"protocol,omitempty" yaml:"protocol,omitempty"`
}

type KindIpFamily

type KindIpFamily string
const (
	KindIpFamilyDualStack KindIpFamily = "dual"
	KindIpFamilyIPv4      KindIpFamily = "ipv4"
	KindIpFamilyIPv6      KindIpFamily = "ipv6"
)

type KindNetworking

type KindNetworking struct {
	ApiServerPort     int          `json:"apiServerPort" yaml:"apiServerPort"`
	ApiServerAddress  string       `json:"apiServerAddress" yaml:"apiServerAddress"`
	IpFamiliy         KindIpFamily `json:"ipFamiliy" yaml:"ipFamiliy"`
	DisableDefaultCNI bool         `json:"disableDefaultCNI" yaml:"disableDefaultCNI"`
}

type KindNode

type KindNode struct {
	Role              KindRole               `json:"role" yaml:"role"`
	ExtraPortMappings []KindExtraPortMapping `json:"extraPortMappings,omitempty" yaml:"extraPortMappings,omitempty"`
	Image             string                 `json:"image,omitempty" yaml:"image,omitempty"`
}

type KindRole

type KindRole string
const (
	KindRoleControlPlane KindRole = "control-plane"
	KindRoleWorker       KindRole = "worker"
)

Jump to

Keyboard shortcuts

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