manifest

package
v0.0.0-...-1b34cb9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ClusterRole                 = "ClusterRole"
	ClusterRoleBinding          = "ClusterRoleBinding"
	HorizontalPodAutoscaler     = "HorizontalPodAutoscaler"
	NetworkAttachmentDefinition = "NetworkAttachmentDefinition"
	PodDisruptionBudget         = "PodDisruptionBudget"
	Role                        = "Role"
	RoleBinding                 = "RoleBinding"
)

Names not found in the istio gvk package

View Source
const (
	// OwningResourceName represents the name of the owner to which the resource relates
	OwningResourceName = "install.operator.istio.io/owning-resource"
	// OwningResourceNamespace represents the namespace of the owner to which the resource relates
	OwningResourceNamespace = "install.operator.istio.io/owning-resource-namespace"
	// OwningResourceNotPruned indicates that the resource should not be pruned during reconciliation cycles,
	// note this will not prevent the resource from being deleted if the owning resource is deleted.
	OwningResourceNotPruned = "install.operator.istio.io/owning-resource-not-pruned"
	// OperatorManagedLabel indicates Istio operator is managing this resource.
	OperatorManagedLabel = "operator.istio.io/managed"
	// IstioComponentLabel indicates which Istio component a resource belongs to.
	IstioComponentLabel = "operator.istio.io/component"
	// OperatorVersionLabel indicates the Istio version of the installation.
	OperatorVersionLabel = "operator.istio.io/version"
)

Variables

This section is empty.

Functions

func ObjectHash

func ObjectHash(o *unstructured.Unstructured) string

Types

type Manifest

type Manifest struct {
	*unstructured.Unstructured
	Content string
}

func ExtractComponent

func ExtractComponent(sets []ManifestSet, c component.Name) []Manifest

func FromJSON

func FromJSON(j []byte) (Manifest, error)

func FromObject

func FromObject(us *unstructured.Unstructured) (Manifest, error)

func FromYaml

func FromYaml(y []byte) (Manifest, error)

func Parse

func Parse(output []string) ([]Manifest, error)

Parse parses a list of YAML objects

func ParseMultiple

func ParseMultiple(output string) ([]Manifest, error)

ParseMultiple splits a string containing potentially many YAML objects, and parses them

func (Manifest) Hash

func (m Manifest) Hash() string

type ManifestSet

type ManifestSet struct {
	Component component.Name
	Manifests []Manifest
}

Jump to

Keyboard shortcuts

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