processor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package processor contains processors converting k8s objects to Helm template

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() helmify.Processor

Default default processor for unknown resources.

func ProcessObjMeta

func ProcessObjMeta(appMeta helmify.AppMetadata, obj *unstructured.Unstructured) (string, error)

ProcessObjMeta - returns object apiVersion, kind and metadata as helm template.

func ProcessReplicas

func ProcessReplicas(name string, r *int32, values *helmify.Values) (string, error)

func ProcessSelector

func ProcessSelector(appMeta helmify.AppMetadata, s *metav1.LabelSelector) (string, error)

Types

type Pod

type Pod struct {
	Name    string
	AppMeta helmify.AppMetadata
	Pod     *corev1.PodTemplateSpec
}

func (*Pod) ProcessObjectMeta

func (p *Pod) ProcessObjectMeta() (string, string, error)

func (*Pod) ProcessSpec

func (p *Pod) ProcessSpec(values *helmify.Values) (string, error)

type ReplicaTyped

type ReplicaTyped struct {
	Spec ReplicaTypedSpec
}

type ReplicaTypedSpec

type ReplicaTypedSpec struct {
	Replicas *int32
}

type SelectorTyped

type SelectorTyped struct {
	Spec SelectorTypedSpec
}

type SelectorTypedSpec

type SelectorTypedSpec struct {
	Selector *metav1.LabelSelector
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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