cli

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Packs = map[string]Pack{
	"beginner": {
		Name:        "beginner",
		Description: "Start here. Simple CRDs, Deployments, Services.",
		Path:        "beginner",
	},
	"intermediate": {
		Name:        "intermediate",
		Description: "Multi-resource patterns, when/anyOf, Komposer basics.",
		Path:        "intermediate",
	},
	"advanced": {
		Name:        "advanced",
		Description: "Hooks, constructors, validation/mutation, registries.",
		Path:        "advanced",
	},
	"security": {
		Name:        "security",
		Description: "Deletion protection, namespace protection, admission webhooks.",
		Path:        "security",
	},
	"use-cases": {
		Name:        "use-cases",
		Description: "Full-stack, cross-CRD, external gates, once-secrets.",
		Path:        "use-cases",
	},
	"rollback": {
		Name:        "rollback",
		Description: "Zero-config and configurable failure recovery",
		Path:        "use-cases/rollback",
	},
	"developer": {
		Name:        "developer",
		Description: "Local to production in minutes — deploy your app without writing operator code.",
		Path:        "developer",
	},
}

Functions

func Execute

func Execute(k *konfig.Konfig, c context.Context)

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"`
}

type Pack added in v0.3.8

type Pack struct {
	Name        string
	Description string
	Path        string
}

packPaths maps CLI pack names to their paths inside the embedded FS. Most packs are top-level directories; rollback is nested under use-cases.

func GetPack added in v0.3.8

func GetPack(name string) (Pack, bool)

func ListPacks added in v0.3.8

func ListPacks() []Pack

Jump to

Keyboard shortcuts

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