kind

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const IngressPort = 8000

IngressPort is the default port that Airbyte will deploy to.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Kind       string `yaml:"kind"`
	ApiVersion string `yaml:"apiVersion"`
	Nodes      []Node `yaml:"nodes"`
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) WithHostPort

func (c *Config) WithHostPort(port int) *Config

func (*Config) WithVolumeMount

func (c *Config) WithVolumeMount(hostPath string, containerPath string) *Config

type Mount

type Mount struct {
	ContainerPath  string `yaml:"containerPath"`
	HostPath       string `yaml:"hostPath"`
	ReadOnly       bool   `yaml:"readOnly"`
	SelinuxRelabel bool   `yaml:"selinuxRelabel"`
	Propagation    string `yaml:"propagation"`
}

type Node

type Node struct {
	Role   string            `yaml:"role"`
	Image  string            `yaml:"image"`
	Labels map[string]string `yaml:"labels"`

	ExtraMounts       []Mount       `yaml:"extraMounts"`
	ExtraPortMappings []PortMapping `yaml:"extraPortMappings"`

	// KubeadmConfigPatches are applied to the generated kubeadm config as
	// strategic merge patches to `kustomize build` internally
	// https://github.com/kubernetes/community/blob/a9cf5c8f3380bb52ebe57b1e2dbdec136d8dd484/contributors/devel/sig-api-machinery/strategic-merge-patch.md
	// This should be an inline yaml blob-string
	KubeadmConfigPatches []string `yaml:"kubeadmConfigPatches"`
}

type PortMapping

type PortMapping struct {
	ContainerPort int32  `yaml:"containerPort"`
	HostPort      int32  `yaml:"hostPort"`
	ListenAddress string `yaml:"listenAddress"`
	Protocol      string `yaml:"protocol"`
}

Jump to

Keyboard shortcuts

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