Documentation
¶
Overview ¶
cmd/cli/describe.go
cmd/cli/events.go
cmd/ClientConfig/generate_crd.go
ork generate crd — derives a CRD from a Katalog ork generate cr — derives an example CR from a Katalog
The Katalog is the single source of truth. The CRD and CR are generated from what is already declared:
apiTypes → group, version, kind, plural, scope, printer columns
validation → required spec fields (deny + exists rules)
mutation → optional fields with defaults, type inference
templates → additional spec fields referenced as {{ .spec.* }}
status → status subresource schema, printer columns
conversion → webhook config (when conversion paths are declared)
Usage:
ork generate crd --katalog katalog.yaml -o crd.yaml ork generate cr --katalog katalog.yaml -o cr.yaml
Multiple CRDs in one Katalog:
ork generate crd --katalog katalog.yaml --crd pipeline -o pipeline-crd.yaml ork generate cr --katalog katalog.yaml --crd pipeline -o pipeline-cr.yaml
cmd/cli/get.go
cmd/cli/init.go
cmd/cli/reconcile.go
cmd/cli/status.go
cmd/cli/validate_enrichment_output.go
cmd/cli/version.go
Index ¶
Constants ¶
View Source
const (
DefaultNamespace = "orkestra-system"
)
Variables ¶
View Source
var ( ColorReset = "\033[0m" ColorRed = "\033[31m" ColorGreen = "\033[32m" ColorGrey = "\033[90m" )
Functions ¶
Types ¶
type CRDEntryDTO ¶
type CRDEntryDTO struct {
Name string `json:"name" yaml:"name"`
Enabled bool `json:"enabled" yaml:"enabled"`
Group string `json:"group" yaml:"group"`
Version string `json:"version" yaml:"version"`
Kind string `json:"kind" yaml:"kind"`
Plural string `json:"plural" yaml:"plural"`
Namespaced bool `json:"namespaced" yaml:"namespaced"`
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
Workers int `json:"workers" yaml:"workers"`
Resync string `json:"resync" yaml:"resync"`
DependsOn []string `json:"dependsOn,omitempty" yaml:"dependsOn,omitempty"`
Finalizers []string `json:"finalizers,omitempty" yaml:"finalizers,omitempty"`
Mode orktypes.CRDMode `json:"mode" yaml:"mode"`
}
Click to show internal directories.
Click to hide internal directories.