v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the packages v1alpha1 API group +kubebuilder:object:generate=true +groupName=packages.glasskube.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "packages.glasskube.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Dependency added in v0.0.4

type Dependency struct {
	Name    string `json:"name" jsonschema:"required"`
	Version string `json:"version,omitempty"`
}

func (*Dependency) DeepCopy added in v0.0.4

func (in *Dependency) DeepCopy() *Dependency

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

func (*Dependency) DeepCopyInto added in v0.0.4

func (in *Dependency) DeepCopyInto(out *Dependency)

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

type HelmManifest

type HelmManifest struct {
	// RepositoryUrl is the remote URL of the helm repository. This is the same URL you would use
	// if you use "helm repo add ...".
	RepositoryUrl string `json:"repositoryUrl" jsonschema:"required"`
	// ChartName is the name of the chart that represents this package.
	ChartName string `json:"chartName" jsonschema:"required"`
	// ChartVersion of the chart that should be installed.
	ChartVersion string `json:"chartVersion" jsonschema:"required"`
	// Values that should be used for the helm release
	Values *JSON `json:"values,omitempty"`
}

func (*HelmManifest) DeepCopy

func (in *HelmManifest) DeepCopy() *HelmManifest

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

func (*HelmManifest) DeepCopyInto

func (in *HelmManifest) DeepCopyInto(out *HelmManifest)

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

type JSON

type JSON apiextensionsv1.JSON

func (*JSON) DeepCopy

func (in *JSON) DeepCopy() *JSON

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

func (*JSON) DeepCopyInto

func (in *JSON) DeepCopyInto(out *JSON)

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

func (JSON) JSONSchema

func (JSON) JSONSchema() *jsonschema.Schema

func (JSON) MarshalJSON

func (s JSON) MarshalJSON() ([]byte, error)

func (*JSON) UnmarshalJSON

func (s *JSON) UnmarshalJSON(data []byte) error

type KustomizeManifest

type KustomizeManifest struct {
}

func (*KustomizeManifest) DeepCopy

func (in *KustomizeManifest) DeepCopy() *KustomizeManifest

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

func (*KustomizeManifest) DeepCopyInto

func (in *KustomizeManifest) DeepCopyInto(out *KustomizeManifest)

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

type OwnedResourceRef

type OwnedResourceRef struct {
	metav1.GroupVersionKind `json:",inline"`
	Name                    string `json:"name"`
	Namespace               string `json:"namespace,omitempty"`
	MarkedForDeletion       bool   `json:"markedForDeletion,omitempty"`
}

func (*OwnedResourceRef) DeepCopy

func (in *OwnedResourceRef) DeepCopy() *OwnedResourceRef

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

func (*OwnedResourceRef) DeepCopyInto

func (in *OwnedResourceRef) DeepCopyInto(out *OwnedResourceRef)

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

func (OwnedResourceRef) String

func (orr OwnedResourceRef) String() string

type Package

type Package struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PackageSpec   `json:"spec,omitempty"`
	Status PackageStatus `json:"status,omitempty"`
}

Package is the Schema for the packages API

func (*Package) DeepCopy

func (in *Package) DeepCopy() *Package

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

func (*Package) DeepCopyInto

func (in *Package) DeepCopyInto(out *Package)

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

func (*Package) DeepCopyObject

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

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

type PackageEntrypoint

type PackageEntrypoint struct {
	// Name of this entrypoint. Used for "glasskube open [package-name] [entrypoint-name]" if more
	// than one entrypoint exists. Optional if the package only has one entrypoint.
	Name string `json:"name,omitempty"`
	// ServiceName is the name of a service that is part of
	ServiceName string `json:"serviceName" jsonschema:"required"`
	// Port of the service to bind to
	Port int32 `json:"port" jsonschema:"required"`
	// LocalPort to use for port mapping
	LocalPort int32  `json:"localPort,omitempty"`
	Scheme    string `json:"scheme,omitempty"`
}

PackageEntrypoint defines a service port a user may use to access the package

func (*PackageEntrypoint) DeepCopy

func (in *PackageEntrypoint) DeepCopy() *PackageEntrypoint

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

func (*PackageEntrypoint) DeepCopyInto

func (in *PackageEntrypoint) DeepCopyInto(out *PackageEntrypoint)

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

type PackageInfo

type PackageInfo struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PackageInfoSpec   `json:"spec,omitempty"`
	Status PackageInfoStatus `json:"status,omitempty"`
}

PackageInfo is the Schema for the packageinfos API

func (*PackageInfo) DeepCopy

func (in *PackageInfo) DeepCopy() *PackageInfo

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

func (*PackageInfo) DeepCopyInto

func (in *PackageInfo) DeepCopyInto(out *PackageInfo)

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

func (*PackageInfo) DeepCopyObject

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

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

type PackageInfoList

type PackageInfoList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PackageInfo `json:"items"`
}

PackageInfoList contains a list of PackageInfo

func (*PackageInfoList) DeepCopy

func (in *PackageInfoList) DeepCopy() *PackageInfoList

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

func (*PackageInfoList) DeepCopyInto

func (in *PackageInfoList) DeepCopyInto(out *PackageInfoList)

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

func (*PackageInfoList) DeepCopyObject

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

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

type PackageInfoSpec

type PackageInfoSpec struct {
	// +kubebuilder:validation:Required
	Name          string `json:"name"`
	Version       string `json:"version,omitempty"`
	RepositoryUrl string `json:"repositoryUrl,omitempty"`
}

PackageInfoSpec defines the desired state of PackageInfo

func (*PackageInfoSpec) DeepCopy

func (in *PackageInfoSpec) DeepCopy() *PackageInfoSpec

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

func (*PackageInfoSpec) DeepCopyInto

func (in *PackageInfoSpec) DeepCopyInto(out *PackageInfoSpec)

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

type PackageInfoStatus

type PackageInfoStatus struct {
	Manifest            *PackageManifest   `json:"manifest,omitempty"`
	Conditions          []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
	LastUpdateTimestamp *metav1.Time       `json:"lastUpdateTimestamp,omitempty"`
	Version             string             `json:"version,omitempty"`
}

PackageInfoStatus defines the observed state of PackageInfo

func (*PackageInfoStatus) DeepCopy

func (in *PackageInfoStatus) DeepCopy() *PackageInfoStatus

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

func (*PackageInfoStatus) DeepCopyInto

func (in *PackageInfoStatus) DeepCopyInto(out *PackageInfoStatus)

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

type PackageInfoTemplate

type PackageInfoTemplate struct {
	// Name of the package to install
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// Version of the package to install
	Version string `json:"version"`
	// Optional URL of the repository to pull the package from
	RepositoryUrl string `json:"repositoryUrl,omitempty"`
}

func (*PackageInfoTemplate) DeepCopy

func (in *PackageInfoTemplate) DeepCopy() *PackageInfoTemplate

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

func (*PackageInfoTemplate) DeepCopyInto

func (in *PackageInfoTemplate) DeepCopyInto(out *PackageInfoTemplate)

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

type PackageList

type PackageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Package `json:"items"`
}

PackageList contains a list of Package

func (*PackageList) DeepCopy

func (in *PackageList) DeepCopy() *PackageList

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

func (*PackageList) DeepCopyInto

func (in *PackageList) DeepCopyInto(out *PackageList)

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

func (*PackageList) DeepCopyObject

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

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

type PackageManifest

type PackageManifest struct {
	Name             string             `json:"name" jsonschema:"required"`
	ShortDescription string             `json:"shortDescription,omitempty"`
	LongDescription  string             `json:"longDescription,omitempty"`
	References       []PackageReference `json:"references,omitempty"`
	IconUrl          string             `json:"iconUrl,omitempty" jsonschema:"format=uri"`
	// Helm instructs the controller to create a helm release when installing this package.
	Helm *HelmManifest `json:"helm,omitempty"`
	// Kustomize instructs the controller to apply a kustomization when installing this package [PLACEHOLDER].
	Kustomize *KustomizeManifest `json:"kustomize,omitempty"`
	Manifests []PlainManifest    `json:"manifests,omitempty"`
	// DefaultNamespace to install the package. May be overridden.
	DefaultNamespace string              `json:"defaultNamespace,omitempty" jsonschema:"required"`
	Entrypoints      []PackageEntrypoint `json:"entrypoints,omitempty"`
	Dependencies     []Dependency        `json:"dependencies,omitempty"`
}

func (*PackageManifest) DeepCopy

func (in *PackageManifest) DeepCopy() *PackageManifest

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

func (*PackageManifest) DeepCopyInto

func (in *PackageManifest) DeepCopyInto(out *PackageManifest)

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

type PackageReference added in v0.0.3

type PackageReference struct {
	Label string `json:"label" jsonschema:"required"`
	Url   string `json:"url" jsonschema:"required"`
}

func (*PackageReference) DeepCopy added in v0.0.3

func (in *PackageReference) DeepCopy() *PackageReference

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

func (*PackageReference) DeepCopyInto added in v0.0.3

func (in *PackageReference) DeepCopyInto(out *PackageReference)

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

type PackageSpec

type PackageSpec struct {
	// +kubebuilder:validation:Required
	PackageInfo PackageInfoTemplate `json:"packageInfo"`
}

PackageSpec defines the desired state of Package

func (*PackageSpec) DeepCopy

func (in *PackageSpec) DeepCopy() *PackageSpec

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

func (*PackageSpec) DeepCopyInto

func (in *PackageSpec) DeepCopyInto(out *PackageSpec)

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

type PackageStatus

type PackageStatus struct {
	Version           string             `json:"version,omitempty"`
	Conditions        []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
	OwnedResources    []OwnedResourceRef `json:"ownedResources,omitempty"`
	OwnedPackageInfos []OwnedResourceRef `json:"ownedPackageInfos,omitempty"`
	OwnedPackages     []OwnedResourceRef `json:"ownedPackages,omitempty"`
}

PackageStatus defines the observed state of Package

func (*PackageStatus) DeepCopy

func (in *PackageStatus) DeepCopy() *PackageStatus

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

func (*PackageStatus) DeepCopyInto

func (in *PackageStatus) DeepCopyInto(out *PackageStatus)

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

type PlainManifest

type PlainManifest struct {
	Url string `json:"url" jsonschema:"required"`
	// DefaultNamespace, if set to a non-empty string, is used for resources that are of a namespaced
	// kind and do not have a namespace set.
	// If at least one such a resource exists, the namespace is created implicitly.
	DefaultNamespace string `json:"defaultNamespace,omitempty"`
}

func (*PlainManifest) DeepCopy

func (in *PlainManifest) DeepCopy() *PlainManifest

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

func (*PlainManifest) DeepCopyInto

func (in *PlainManifest) DeepCopyInto(out *PlainManifest)

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