manifest

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package manifest GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotateHash added in v0.5.2

func AnnotateHash(o client.Object, key string, hash string) bool

func DataHash added in v0.1.0

func DataHash(inputs map[string][]byte) string

func Extract

func Extract(kpkg *v1alpha1.KubePkg) (map[string]Object, error)

func ExtractWith added in v0.5.4

func ExtractWith(m any, progress ...ObjectProcess) (map[string]Object, error)

func FromUnstructured added in v0.1.0

func FromUnstructured[T any](o any) (*T, error)

func ManifestsFromSpec added in v0.2.0

func ManifestsFromSpec(kpkg *v1alpha1.KubePkg) (map[string]Object, error)

func ManifestsFromWildcard added in v0.2.0

func ManifestsFromWildcard(kpkg *v1alpha1.KubePkg) (map[string]Object, error)

func StringDataHash added in v0.1.0

func StringDataHash(inputs map[string]string) string

Types

type GatewayTemplate added in v0.2.0

type GatewayTemplate struct {
	Name          string
	Host          *template.Template
	Https         bool
	AlwaysEnabled bool
}

func ParseGatewayTemplate added in v0.3.0

func ParseGatewayTemplate(t string) (*GatewayTemplate, error)

func (GatewayTemplate) RuntimeDoc added in v0.2.0

func (v GatewayTemplate) RuntimeDoc(names ...string) ([]string, bool)

type IngressGatewaySet added in v0.2.0

type IngressGatewaySet struct {
	// contains filtered or unexported fields
}

func ParseIngressGatewaySet added in v0.2.0

func ParseIngressGatewaySet(v string) (*IngressGatewaySet, error)

ParseIngressGatewaySet

example:

public+https://{{ .Name }}.public
internal+https://{{ .Name }}---{{ .Namespace }}.internal?always=true

func (*IngressGatewaySet) Endpoints added in v0.2.0

func (s *IngressGatewaySet) Endpoints() map[string]string

func (IngressGatewaySet) For added in v0.2.0

func (s IngressGatewaySet) For(service string, namespace string) *IngressGatewaySet

func (*IngressGatewaySet) IngressRules added in v0.2.0

func (s *IngressGatewaySet) IngressRules(paths map[string]string, gateways ...string) (rules []networkingv1.IngressRule)

type Object

type Object = client.Object

func ExtractSorted added in v0.5.4

func ExtractSorted(kpkg *v1alpha1.KubePkg) ([]Object, error)

func ObjectFromRuntimeObject

func ObjectFromRuntimeObject(ro runtime.Object) (Object, error)

func SortByKind added in v0.5.4

func SortByKind(manifests []Object) []Object

type ObjectList

type ObjectList = client.ObjectList

func ObjectListFromRuntimeObject

func ObjectListFromRuntimeObject(ro runtime.Object) (ObjectList, error)

type ObjectProcess

type ObjectProcess = func(o Object) (Object, error)

type SortOrder added in v0.5.4

type SortOrder []string
var InstallOrder SortOrder = []string{
	"Namespace",
	"ResourceQuota",
	"LimitRange",
	"PodSecurityPolicy",
	"Secret",
	"ConfigMap",
	"StorageClass",
	"PersistentVolume",
	"PersistentVolumeClaim",
	"ServiceAccount",
	"CustomResourceDefinition",
	"ClusterRole",
	"ClusterRoleBinding",
	"Role",
	"RoleBinding",
	"Service",
	"DaemonSet",
	"Pod",
	"ReplicationController",
	"ReplicaSet",
	"Deployment",
	"StatefulSet",
	"Job",
	"CronJob",
	"Ingress",
	"APIService",
}

func (SortOrder) RuntimeDoc added in v0.5.4

func (SortOrder) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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