Documentation ¶
Index ¶
- Constants
- func ObjectHash(o *unstructured.Unstructured) string
- type Manifest
- func ExtractComponent(sets []ManifestSet, c component.Name) []Manifest
- func FromJSON(j []byte) (Manifest, error)
- func FromObject(us *unstructured.Unstructured) (Manifest, error)
- func FromYaml(y []byte) (Manifest, error)
- func Parse(output []string) ([]Manifest, error)
- func ParseMultiple(output string) ([]Manifest, error)
- type ManifestSet
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 FromObject ¶
func FromObject(us *unstructured.Unstructured) (Manifest, error)
func ParseMultiple ¶
ParseMultiple splits a string containing potentially many YAML objects, and parses them
type ManifestSet ¶
Click to show internal directories.
Click to hide internal directories.