v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=kappctrl

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "kappctrl.k14s.io", Version: "v1alpha1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type App

type App struct {
	metav1.TypeMeta `json:",inline"`

	// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AppSpec   `json:"spec"`
	Status AppStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*App) DeepCopy

func (in *App) DeepCopy() *App

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App.

func (*App) DeepCopyInto

func (in *App) DeepCopyInto(out *App)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*App) DeepCopyObject

func (in *App) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AppCondition

type AppCondition struct {
	Type   AppConditionType       `json:"type"`
	Status corev1.ConditionStatus `json:"status"`
	// Unique, this should be a short, machine understandable string that gives the reason
	// for condition's last transition. If it reports "ResizeStarted" that means the underlying
	// persistent volume is being resized.
	// +optional
	Reason string `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty"`
}

func (*AppCondition) DeepCopy

func (in *AppCondition) DeepCopy() *AppCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppCondition.

func (*AppCondition) DeepCopyInto

func (in *AppCondition) DeepCopyInto(out *AppCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppConditionType

type AppConditionType string
const (
	Reconciling        AppConditionType = "Reconciling"
	ReconcileFailed    AppConditionType = "ReconcileFailed"
	ReconcileSucceeded AppConditionType = "ReconcileSucceeded"

	Deleting     AppConditionType = "Deleting"
	DeleteFailed AppConditionType = "DeleteFailed"
)

type AppDeploy

type AppDeploy struct {
	Kapp *AppDeployKapp `json:"kapp,omitempty"`
}

func (*AppDeploy) DeepCopy

func (in *AppDeploy) DeepCopy() *AppDeploy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppDeploy.

func (*AppDeploy) DeepCopyInto

func (in *AppDeploy) DeepCopyInto(out *AppDeploy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppDeployKapp

type AppDeployKapp struct {
	IntoNs     string   `json:"intoNs,omitempty"`
	MapNs      []string `json:"mapNs,omitempty"`
	RawOptions []string `json:"rawOptions,omitempty"`

	Inspect *AppDeployKappInspect `json:"inspect,omitempty"`
	Delete  *AppDeployKappDelete  `json:"delete,omitempty"`
}

func (*AppDeployKapp) DeepCopy

func (in *AppDeployKapp) DeepCopy() *AppDeployKapp

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppDeployKapp.

func (*AppDeployKapp) DeepCopyInto

func (in *AppDeployKapp) DeepCopyInto(out *AppDeployKapp)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppDeployKappDelete

type AppDeployKappDelete struct {
	RawOptions []string `json:"rawOptions,omitempty"`
}

func (*AppDeployKappDelete) DeepCopy

func (in *AppDeployKappDelete) DeepCopy() *AppDeployKappDelete

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppDeployKappDelete.

func (*AppDeployKappDelete) DeepCopyInto

func (in *AppDeployKappDelete) DeepCopyInto(out *AppDeployKappDelete)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppDeployKappInspect

type AppDeployKappInspect struct {
	RawOptions []string `json:"rawOptions,omitempty"`
}

func (*AppDeployKappInspect) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppDeployKappInspect.

func (*AppDeployKappInspect) DeepCopyInto

func (in *AppDeployKappInspect) DeepCopyInto(out *AppDeployKappInspect)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetch

type AppFetch struct {
	Inline    *AppFetchInline    `json:"inline,omitempty"`
	Image     *AppFetchImage     `json:"image,omitempty"`
	HTTP      *AppFetchHTTP      `json:"http,omitempty"`
	Git       *AppFetchGit       `json:"git,omitempty"`
	HelmChart *AppFetchHelmChart `json:"helmChart,omitempty"`
}

func (*AppFetch) DeepCopy

func (in *AppFetch) DeepCopy() *AppFetch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetch.

func (*AppFetch) DeepCopyInto

func (in *AppFetch) DeepCopyInto(out *AppFetch)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetchGit

type AppFetchGit struct {
	URL string `json:"url,omitempty"`
	// +optional
	Ref string `json:"ref,omitempty"`
	// Secret may include one or more keys: ssh-privatekey, ssh-knownhosts
	// +optional
	SecretRef *AppFetchLocalRef `json:"secretRef,omitempty"`
	// +optional
	SubPath string `json:"subPath,omitempty"`
	// +optional
	LFSSkipSmudge bool `json:"lfsSkipSmudge,omitempty"`
}

TODO implement git

func (*AppFetchGit) DeepCopy

func (in *AppFetchGit) DeepCopy() *AppFetchGit

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetchGit.

func (*AppFetchGit) DeepCopyInto

func (in *AppFetchGit) DeepCopyInto(out *AppFetchGit)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetchHTTP

type AppFetchHTTP struct {
	// URL can point to one of following formats: text, tgz, zip
	URL string `json:"url,omitempty"`
	// +optional
	SHA256 string `json:"sha256,omitempty"`
	// Secret may include one or more keys: username, password
	// +optional
	SecretRef *AppFetchLocalRef `json:"secretRef,omitempty"`
	// +optional
	SubPath string `json:"subPath,omitempty"`
}

func (*AppFetchHTTP) DeepCopy

func (in *AppFetchHTTP) DeepCopy() *AppFetchHTTP

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetchHTTP.

func (*AppFetchHTTP) DeepCopyInto

func (in *AppFetchHTTP) DeepCopyInto(out *AppFetchHTTP)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetchHelmChart

type AppFetchHelmChart struct {
	// Example: stable/redis
	Name string `json:"name,omitempty"`
	// +optional
	Version    string                 `json:"version,omitempty"`
	Repository *AppFetchHelmChartRepo `json:"repository,omitempty"`
}

func (*AppFetchHelmChart) DeepCopy

func (in *AppFetchHelmChart) DeepCopy() *AppFetchHelmChart

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetchHelmChart.

func (*AppFetchHelmChart) DeepCopyInto

func (in *AppFetchHelmChart) DeepCopyInto(out *AppFetchHelmChart)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetchHelmChartRepo

type AppFetchHelmChartRepo struct {
	URL string `json:"url,omitempty"`
	// +optional
	SecretRef *AppFetchLocalRef `json:"secretRef,omitempty"`
}

func (*AppFetchHelmChartRepo) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetchHelmChartRepo.

func (*AppFetchHelmChartRepo) DeepCopyInto

func (in *AppFetchHelmChartRepo) DeepCopyInto(out *AppFetchHelmChartRepo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetchImage

type AppFetchImage struct {
	// Example: username/app1-config:v0.1.0
	URL string `json:"url,omitempty"`
	// Secret may include one or more keys: username, password, token.
	// By default anonymous access is used for authentication.
	// TODO support docker config formated secret
	// +optional
	SecretRef *AppFetchLocalRef `json:"secretRef,omitempty"`
	// +optional
	SubPath string `json:"subPath,omitempty"`
}

func (*AppFetchImage) DeepCopy

func (in *AppFetchImage) DeepCopy() *AppFetchImage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetchImage.

func (*AppFetchImage) DeepCopyInto

func (in *AppFetchImage) DeepCopyInto(out *AppFetchImage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetchInline

type AppFetchInline struct {
	Paths     map[string]string      `json:"paths,omitempty"`
	PathsFrom []AppFetchInlineSource `json:"pathsFrom,omitempty"`
}

func (*AppFetchInline) DeepCopy

func (in *AppFetchInline) DeepCopy() *AppFetchInline

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetchInline.

func (*AppFetchInline) DeepCopyInto

func (in *AppFetchInline) DeepCopyInto(out *AppFetchInline)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetchInlineSource

type AppFetchInlineSource struct {
	SecretRef    *AppFetchInlineSourceRef `json:"secretRef,omitempty"`
	ConfigMapRef *AppFetchInlineSourceRef `json:"configMapRef,omitempty"`
}

func (*AppFetchInlineSource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetchInlineSource.

func (*AppFetchInlineSource) DeepCopyInto

func (in *AppFetchInlineSource) DeepCopyInto(out *AppFetchInlineSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetchInlineSourceRef

type AppFetchInlineSourceRef struct {
	DirectoryPath               string `json:"directoryPath,omitempty"`
	corev1.LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"`
}

func (*AppFetchInlineSourceRef) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetchInlineSourceRef.

func (*AppFetchInlineSourceRef) DeepCopyInto

func (in *AppFetchInlineSourceRef) DeepCopyInto(out *AppFetchInlineSourceRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppFetchLocalRef

type AppFetchLocalRef struct {
	// Object is expected to be within same namespace
	corev1.LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"`
}

func (*AppFetchLocalRef) DeepCopy

func (in *AppFetchLocalRef) DeepCopy() *AppFetchLocalRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFetchLocalRef.

func (*AppFetchLocalRef) DeepCopyInto

func (in *AppFetchLocalRef) DeepCopyInto(out *AppFetchLocalRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppList

type AppList struct {
	metav1.TypeMeta `json:",inline"`

	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []App `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*AppList) DeepCopy

func (in *AppList) DeepCopy() *AppList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppList.

func (*AppList) DeepCopyInto

func (in *AppList) DeepCopyInto(out *AppList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AppList) DeepCopyObject

func (in *AppList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AppSpec

type AppSpec struct {
	Fetch    []AppFetch    `json:"fetch,omitempty"`
	Template []AppTemplate `json:"template,omitempty"`
	Deploy   []AppDeploy   `json:"deploy,omitempty"`

	// Paused when set to true will ignore all pending changes,
	// once it set back to false, pending changes will be applied
	Paused bool `json:"paused,omitempty"`
	// Canceled when set to true will stop all active changes
	Canceled bool `json:"canceled,omitempty"`
}

func (*AppSpec) DeepCopy

func (in *AppSpec) DeepCopy() *AppSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSpec.

func (*AppSpec) DeepCopyInto

func (in *AppSpec) DeepCopyInto(out *AppSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppStatus

type AppStatus struct {
	ManagedAppName string `json:"managedAppName,omitempty"`

	Fetch    *AppStatusFetch    `json:"fetch,omitempty"`
	Template *AppStatusTemplate `json:"template,omitempty"`
	Deploy   *AppStatusDeploy   `json:"deploy,omitempty"`
	Inspect  *AppStatusInspect  `json:"inspect,omitempty"`

	ObservedGeneration int64          `json:"observedGeneration"`
	Conditions         []AppCondition `json:"conditions"`

	FriendlyDescription string `json:"friendlyDescription"`
}

func (*AppStatus) DeepCopy

func (in *AppStatus) DeepCopy() *AppStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatus.

func (*AppStatus) DeepCopyInto

func (in *AppStatus) DeepCopyInto(out *AppStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppStatusDeploy

type AppStatusDeploy struct {
	Stdout    string      `json:"stdout,omitempty"`
	Stderr    string      `json:"stderr,omitempty"`
	Finished  bool        `json:"finished"`
	ExitCode  int         `json:"exitCode"`
	Error     string      `json:"error,omitempty"`
	StartedAt metav1.Time `json:"startedAt,omitempty"`
	UpdatedAt metav1.Time `json:"updatedAt,omitempty"`
}

func (*AppStatusDeploy) DeepCopy

func (in *AppStatusDeploy) DeepCopy() *AppStatusDeploy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatusDeploy.

func (*AppStatusDeploy) DeepCopyInto

func (in *AppStatusDeploy) DeepCopyInto(out *AppStatusDeploy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppStatusFetch

type AppStatusFetch struct {
	Stderr    string      `json:"stderr,omitempty"`
	ExitCode  int         `json:"exitCode"`
	Error     string      `json:"error,omitempty"`
	StartedAt metav1.Time `json:"startedAt,omitempty"`
	UpdatedAt metav1.Time `json:"updatedAt,omitempty"`
}

func (*AppStatusFetch) DeepCopy

func (in *AppStatusFetch) DeepCopy() *AppStatusFetch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatusFetch.

func (*AppStatusFetch) DeepCopyInto

func (in *AppStatusFetch) DeepCopyInto(out *AppStatusFetch)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppStatusInspect

type AppStatusInspect struct {
	Stdout    string      `json:"stdout,omitempty"`
	Stderr    string      `json:"stderr,omitempty"`
	ExitCode  int         `json:"exitCode"`
	Error     string      `json:"error,omitempty"`
	UpdatedAt metav1.Time `json:"updatedAt,omitempty"`
}

func (*AppStatusInspect) DeepCopy

func (in *AppStatusInspect) DeepCopy() *AppStatusInspect

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatusInspect.

func (*AppStatusInspect) DeepCopyInto

func (in *AppStatusInspect) DeepCopyInto(out *AppStatusInspect)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppStatusTemplate

type AppStatusTemplate struct {
	Stderr    string      `json:"stderr,omitempty"`
	ExitCode  int         `json:"exitCode"`
	Error     string      `json:"error,omitempty"`
	UpdatedAt metav1.Time `json:"updatedAt,omitempty"`
}

func (*AppStatusTemplate) DeepCopy

func (in *AppStatusTemplate) DeepCopy() *AppStatusTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatusTemplate.

func (*AppStatusTemplate) DeepCopyInto

func (in *AppStatusTemplate) DeepCopyInto(out *AppStatusTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppTemplate

type AppTemplate struct {
	Ytt          *AppTemplateYtt          `json:"ytt,omitempty"`
	Kbld         *AppTemplateKbld         `json:"kbld,omitempty"`
	HelmTemplate *AppTemplateHelmTemplate `json:"helmTemplate,omitempty"`
	Kustomize    *AppTemplateKustomize    `json:"kustomize,omitempty"`
	Jsonnet      *AppTemplateJsonnet      `json:"jsonnet,omitempty"`
}

func (*AppTemplate) DeepCopy

func (in *AppTemplate) DeepCopy() *AppTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppTemplate.

func (*AppTemplate) DeepCopyInto

func (in *AppTemplate) DeepCopyInto(out *AppTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppTemplateHelmTemplate

type AppTemplateHelmTemplate struct {
	ValuesFrom []AppTemplateHelmTemplateValuesSource `json:"valuesFrom,omitempty"`
}

func (*AppTemplateHelmTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppTemplateHelmTemplate.

func (*AppTemplateHelmTemplate) DeepCopyInto

func (in *AppTemplateHelmTemplate) DeepCopyInto(out *AppTemplateHelmTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppTemplateHelmTemplateValuesSource

type AppTemplateHelmTemplateValuesSource struct {
	SecretRef    *AppTemplateHelmTemplateValuesSourceRef `json:"secretRef,omitempty"`
	ConfigMapRef *AppTemplateHelmTemplateValuesSourceRef `json:"configMapRef,omitempty"`
}

func (*AppTemplateHelmTemplateValuesSource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppTemplateHelmTemplateValuesSource.

func (*AppTemplateHelmTemplateValuesSource) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppTemplateHelmTemplateValuesSourceRef

type AppTemplateHelmTemplateValuesSourceRef struct {
	corev1.LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"`
}

func (*AppTemplateHelmTemplateValuesSourceRef) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppTemplateHelmTemplateValuesSourceRef.

func (*AppTemplateHelmTemplateValuesSourceRef) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppTemplateJsonnet

type AppTemplateJsonnet struct{}

TODO implement jsonnet

func (*AppTemplateJsonnet) DeepCopy

func (in *AppTemplateJsonnet) DeepCopy() *AppTemplateJsonnet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppTemplateJsonnet.

func (*AppTemplateJsonnet) DeepCopyInto

func (in *AppTemplateJsonnet) DeepCopyInto(out *AppTemplateJsonnet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppTemplateKbld

type AppTemplateKbld struct{}

func (*AppTemplateKbld) DeepCopy

func (in *AppTemplateKbld) DeepCopy() *AppTemplateKbld

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppTemplateKbld.

func (*AppTemplateKbld) DeepCopyInto

func (in *AppTemplateKbld) DeepCopyInto(out *AppTemplateKbld)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppTemplateKustomize

type AppTemplateKustomize struct{}

TODO implement kustomize

func (*AppTemplateKustomize) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppTemplateKustomize.

func (*AppTemplateKustomize) DeepCopyInto

func (in *AppTemplateKustomize) DeepCopyInto(out *AppTemplateKustomize)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AppTemplateYtt

type AppTemplateYtt struct {
	IgnoreUnknownComments bool            `json:"ignoreUnknownComments,omitempty"`
	Strict                bool            `json:"strict,omitempty"`
	Inline                *AppFetchInline `json:"inline,omitempty"`
}

func (*AppTemplateYtt) DeepCopy

func (in *AppTemplateYtt) DeepCopy() *AppTemplateYtt

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppTemplateYtt.

func (*AppTemplateYtt) DeepCopyInto

func (in *AppTemplateYtt) DeepCopyInto(out *AppTemplateYtt)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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