manifest

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OwningResourceName represents the name of the owner to which the resource relates.
	OwningResourceName = "install.operator.dubbo.io/owning-resource"
	// OwningResourceNamespace represents the namespace of the owner to which the resource relates.
	OwningResourceNamespace = "install.operator.dubbo.io/owning-resource-namespace"
	// DubboComponentLabel indicates which Dubbo component a resource belongs to.
	DubboComponentLabel = "operator.dubbo.io/component"
	// 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.dubbo.io/owning-resource-not-pruned"
)

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 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 {
	Components component.Name
	Manifests  []Manifest
}

Jump to

Keyboard shortcuts

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