converter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SecretRefMagic = "ylkBUFN0o29yr4yLCTUZqzgIT6qCIbyj" // magic string to indicate that what follows isn't a value but a reference to a secret
)

Functions

func CallExternalConverter added in v0.3.1

func CallExternalConverter(resourceName string, options map[string]string) (unstructured.Unstructured, error)

func ComposeSharedVolumeToK8s added in v0.3.1

func ComposeSharedVolumeToK8s(ref string, volume *ir.Volume) core.PersistentVolumeClaim

func PatchDeployments

func PatchDeployments(deployments []apps.Deployment, modifiedImages []string, forceRestartAnnotation map[string]string)

func PatchStatefulSets

func PatchStatefulSets(statefulSets []apps.StatefulSet, modifiedImages []string, forceRestartAnnotation map[string]string)

Types

type Objects

type Objects struct {
	// Deployments
	Deployments            []apps.Deployment
	StatefulSets           []apps.StatefulSet
	Services               []core.Service
	PersistentVolumeClaims []core.PersistentVolumeClaim
	Secrets                []core.Secret
	Ingresses              []networking.Ingress
	PodDisruptionBudgets   []v1.PodDisruptionBudget
	Others                 []unstructured.Unstructured
}

Objects combines all possible resources the conversion process could produce

func ComposeServiceToK8s

func ComposeServiceToK8s(ref string, workload *ir.Service, projectVolumes map[string]*ir.Volume, targetCfg ir.TargetCfg) Objects

func (Objects) Append

func (this Objects) Append(other Objects) Objects

type PortConfig added in v0.10.0

type PortConfig struct {
	Type                  core.ServiceType
	ExternalTrafficPolicy core.ServiceExternalTrafficPolicy
	HealthCheckNodePort   int32
}

PortConfig only exists to be used as a map key (we can't use core.ServiceSpec)

type WithLabels added in v0.3.0

type WithLabels interface {
	Labels() map[string]string
}

Jump to

Keyboard shortcuts

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