Documentation ¶
Index ¶
- Constants
- Variables
- func Create(p string, config Config) error
- func CreateAppChart(p string, name string, chart []byte) error
- func LoadApplicationClass(name, tempDir string) error
- func PrintTemplate(args []string, o *options.TemplateOptions, out io.Writer) error
- func WithBuiltins(paths []string) error
- func WithHelm(o *options.LintOptions, paths []string) error
- type ApplicationClass
- type Config
- type Extension
- type Metadata
Constants ¶
View Source
const MetadataFilename = "extension.yaml"
Variables ¶
View Source
var Categories = []string{
"ai-machine-learning",
"computing",
"database",
"dev-tools",
"integration-delivery",
"observability",
"networking",
"security",
"storage",
"streaming-messaging",
"other",
}
Functions ¶
func CreateAppChart ¶ added in v0.2.0
func LoadApplicationClass ¶ added in v0.2.0
func PrintTemplate ¶ added in v0.3.8
func WithBuiltins ¶ added in v0.3.8
Types ¶
type ApplicationClass ¶ added in v0.2.0
type ApplicationClass struct { ApplicationClassGroup string `json:"applicationClassGroup,omitempty"` Name string `json:"name,omitempty"` Provisioner string `json:"provisioner,omitempty"` Parameters map[string]string `json:"parameters,omitempty"` AppVersion string `json:"appVersion,omitempty"` PackageVersion string `json:"packageVersion,omitempty"` Icon string `json:"icon,omitempty"` Description corev1alpha1.Locales `json:"description,omitempty"` Maintainer *chart.Maintainer `json:"maintainer,omitempty"` }
type Extension ¶
type Extension struct { Metadata *Metadata // ChartURL valid when the chart source online. ChartURL string // ChartData valid when the chart source local. ChartData []byte }
func LoadFromHelm ¶ added in v0.3.11
func (*Extension) ToKubernetesResources ¶
func (ext *Extension) ToKubernetesResources() []runtimeclient.Object
type Metadata ¶
type Metadata struct { APIVersion string `json:"apiVersion" validate:"required"` // The name of the chart. Required. Name string `json:"name" validate:"required"` Version string `json:"version" validate:"required"` DisplayName corev1alpha1.Locales `json:"displayName" validate:"required"` Description corev1alpha1.Locales `json:"description" validate:"required"` Category string `json:"category" validate:"required"` Keywords []string `json:"keywords,omitempty"` Home string `json:"home,omitempty"` Sources []string `json:"sources,omitempty"` KubeVersion string `json:"kubeVersion,omitempty"` KSVersion string `json:"ksVersion,omitempty"` Maintainers []*chart.Maintainer `json:"maintainers,omitempty"` Provider map[corev1alpha1.LanguageCode]*corev1alpha1.Provider `json:"provider" validate:"required"` Icon string `json:"icon" validate:"required"` Screenshots []string `json:"screenshots,omitempty"` Dependencies []*chart.Dependency `json:"dependencies,omitempty"` InstallationMode corev1alpha1.InstallationMode `json:"installationMode,omitempty"` Namespace string `json:"namespace,omitempty"` Images []string `json:"images,omitempty"` ExternalDependencies []corev1alpha1.ExternalDependency `json:"externalDependencies,omitempty"` }
func LoadMetadata ¶
Click to show internal directories.
Click to hide internal directories.