changeworkflow

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion = "confighub.com/v1"
	Kind       = "ChangeWorkflow"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeWorkflow

type ChangeWorkflow struct {
	yaml.ResourceMeta `json:",inline" yaml:",inline"`

	Spec ChangeWorkflowSpec `json:"spec" yaml:"spec"`
}

ChangeWorkflow is a KRM object, so it takes its apiVersion, kind and metadata from kyaml's ResourceMeta rather than restating them. The embedded fields are promoted, which is what flattens them back to the top level of the document: encoding/json, which sigs.k8s.io/yaml decodes through, promotes anonymous struct fields that carry no name of their own. The ",inline" tag is how kyaml spells that intent, but it is gopkg.in/yaml.v3's option, not one encoding/json reads.

type ChangeWorkflowFinalStage added in v0.4.4

type ChangeWorkflowFinalStage struct {
	Prerequisites []string `json:"prerequisites,omitempty" yaml:"prerequisites,omitempty"`
}

type ChangeWorkflowSpec

type ChangeWorkflowSpec struct {
	Stages []ChangeWorkflowStage    `json:"stages" yaml:"stages"`
	Final  ChangeWorkflowFinalStage `json:"final" yaml:"final"`
}

type ChangeWorkflowStage

type ChangeWorkflowStage struct {
	Name          string   `json:"name" yaml:"name"`
	WhereSpace    string   `json:"whereSpace" yaml:"whereSpace"`
	Prerequisites []string `json:"prerequisites,omitempty" yaml:"prerequisites,omitempty"`
}

Jump to

Keyboard shortcuts

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