kude

package
v0.0.1-beta07 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PipelineAPIVersion = "kude.kfirs.com/v1alpha2"
	PipelineKind       = "Pipeline"
)
View Source
const APIVersionAPIExtensionsV1 = "apiextensions.k8s.io/v1"
View Source
const APIVersionAdmissionRegistrationV1 = "admissionregistration.k8s.io/v1"
View Source
const APIVersionAppsV1 = "apps/v1"
View Source
const APIVersionAutoscalingV1 = "autoscaling/v1"
View Source
const APIVersionAutoscalingV2 = "autoscaling/v2"
View Source
const APIVersionAutoscalingV2Beta2 = "autoscaling/v2beta2"
View Source
const APIVersionBatchV1 = "batch/v1"
View Source
const APIVersionNetworkingV1 = "networking.k8s.io/v1"
View Source
const APIVersionPolicyV1 = "policy/v1"
View Source
const APIVersionRBACV1 = "rbac.authorization.k8s.io/v1"
View Source
const APIVersionSchedulingV1 = "scheduling.k8s.io/v1"
View Source
const APIVersionStorageV1 = "storage.k8s.io/v1"
View Source
const APIVersionV1 = "v1"
View Source
const APIVersionV1Beta1 = "policy/v1beta1"
View Source
const KindCSIDriver = "CSIDriver"
View Source
const KindClusterRole = "ClusterRole"
View Source
const KindClusterRoleBinding = "ClusterRoleBinding"
View Source
const KindConfigMap = "ConfigMap"
View Source
const KindControllerRevision = "ControllerRevision"
View Source
const KindCronJob = "CronJob"
View Source
const KindCustomResourceDefinition = "CustomResourceDefinition"
View Source
const KindDaemonSet = "DaemonSet"
View Source
const KindDeployment = "Deployment"
View Source
const KindHorizontalPodAutoscaler = "HorizontalPodAutoscaler"
View Source
const KindIngress = "Ingress"
View Source
const KindJob = "Job"
View Source
const KindLimitRange = "LimitRange"
View Source
const KindMutatingWebhookConfiguration = "MutatingWebhookConfiguration"
View Source
const KindNamespace = "Namespace"
View Source
const KindNetworkPolicy = "NetworkPolicy"
View Source
const KindNode = "Node"
View Source
const KindPersistentVolume = "PersistentVolume"
View Source
const KindPersistentVolumeClaim = "PersistentVolumeClaim"
View Source
const KindPod = "Pod"
View Source
const KindPodDisruptionBudget = "PodDisruptionBudget"
View Source
const KindPodSecurityPolicy = "PodSecurityPolicy"
View Source
const KindPodTemplate = "PodTemplate"
View Source
const KindPriorityClass = "PriorityClass"
View Source
const KindReplicaSet = "ReplicaSet"
View Source
const KindReplicationController = "ReplicationController"
View Source
const KindResourceQuota = "ResourceQuota"
View Source
const KindRole = "Role"
View Source
const KindRoleBinding = "RoleBinding"
View Source
const KindSecret = "Secret"
View Source
const KindService = "Service"
View Source
const KindServiceAccount = "ServiceAccount"
View Source
const KindStatefulSet = "StatefulSet"
View Source
const KindStorageClass = "StorageClass"
View Source
const KindValidatingWebhookConfiguration = "ValidatingWebhookConfiguration"
View Source
const (
	// PreviousNameAnnotationName is the name of the annotation that is used to provide the friendly resource name of
	// a resource that has been renamed for uniqueness.
	PreviousNameAnnotationName = "kude.kfirs.com/previous-name"
)

Variables

This section is empty.

Functions

func GetResourcePreviousName

func GetResourcePreviousName(r *kyaml.RNode) (string, error)

func GetVersion

func GetVersion() semver.Version

GetVersion returns the kude version currently running.

Types

type ByType

type ByType []*kyaml.RNode

func (ByType) Len

func (a ByType) Len() int

func (ByType) Less

func (a ByType) Less(i, j int) bool

func (ByType) Swap

func (a ByType) Swap(i, j int)

type Execution

type Execution interface {
	GetPipeline() Pipeline
	GetLogger() *log.Logger
	ExecuteToWriter(ctx context.Context, w io.Writer) error
	ExecuteToChannel(ctx context.Context, target chan *kyaml.RNode) error
}

func NewExecution

func NewExecution(p Pipeline, logger *log.Logger) (Execution, error)

type Pipeline

type Pipeline interface {
	GetAPIVersion() string
	GetKind() string
	GetDirectory() string
	GetResources() []string
	GetSteps() []Step
}

func NewPipeline

func NewPipeline(dir string) (Pipeline, error)

type Step

type Step interface {
	GetID() string
	GetName() string
	GetImage() string
	GetEntrypoint() []string
	GetUser() string
	GetWorkdir() string
	GetNetwork() bool
	GetMounts() []string
	GetConfig() map[string]interface{}
}

Jump to

Keyboard shortcuts

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