Documentation
¶
Index ¶
- func DiscoverHelmfiles(root string) []string
- func IsSystemNamespace(ns string) bool
- func RenderStackYAML(snapshot *Snapshot, opts RenderOptions) (string, []ValuesFile, []ChartFile, error)
- type ChartFile
- type ClusterInfo
- type DiscoverOptions
- type GitOpsObject
- type HelmRelease
- type NamespaceInfo
- type RenderOptions
- type Snapshot
- type ValuesFile
- type ValuesWriteResult
- type Workload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverHelmfiles ¶
func IsSystemNamespace ¶
func RenderStackYAML ¶
func RenderStackYAML(snapshot *Snapshot, opts RenderOptions) (string, []ValuesFile, []ChartFile, error)
Types ¶
type ClusterInfo ¶
type DiscoverOptions ¶
type GitOpsObject ¶
type HelmRelease ¶
type HelmRelease struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Chart string `json:"chart,omitempty"`
ChartVersion string `json:"chartVersion,omitempty"`
AppVersion string `json:"appVersion,omitempty"`
Status string `json:"status,omitempty"`
Values map[string]any `json:"values,omitempty"`
ChartObject *chart.Chart `json:"-"`
}
func DiscoverHelmReleases ¶
func DiscoverHelmReleases(ctx context.Context, opts DiscoverOptions, namespaces []string) ([]HelmRelease, []string)
type NamespaceInfo ¶
type RenderOptions ¶
type Snapshot ¶
type Snapshot struct {
Cluster ClusterInfo `json:"cluster,omitempty"`
Namespaces []NamespaceInfo `json:"namespaces,omitempty"`
HelmReleases []HelmRelease `json:"helmReleases,omitempty"`
GitOps []GitOpsObject `json:"gitOps,omitempty"`
Workloads []Workload `json:"workloads,omitempty"`
Helmfiles []string `json:"helmfiles,omitempty"`
Warnings []string `json:"warnings,omitempty"`
}
type ValuesFile ¶
type ValuesWriteResult ¶
func WriteChartFiles ¶
func WriteValuesFiles ¶
func WriteValuesFiles(root string, files []ValuesFile, force bool, dryRun bool) (ValuesWriteResult, error)
Click to show internal directories.
Click to hide internal directories.