New 🌊 wave for @helm

Commit 8c18f6da

8c18f6da35e7Merged

Sviatoslav Dumchenko <[email protected]> · 2 years ago · 4 files · ~4 modified

Description

fix: linter issues

Details

Commit
8c18f6da35e7
Parent
c30e69565ae3

pkg/release/config.gomodifiedView file

@@ -14,9 +14,9 @@
1414 )
1515
1616 type configTests struct {
17+ Filters map[string][]string `yaml:"filters,omitempty" json:"filters,omitempty" jsonschema:"description=Filter tests by attributes,default={}"`
1718 Enabled bool `yaml:"enabled,omitempty" json:"enabled,omitempty" jsonschema:"description=Whether to run helm tests,default=false"`
18- Filters map[string][]string `yaml:"filters,omitempty" json:"filters,omitempty" jsonschema:"description=Filter tests by attributes,default={}"`
19- ForceShowLogs bool `yaml:"force_show_logs,omitempty" json:"force_show_logs,omitempty" jsonschema:"description=Always show tests logs, not only if they failed,default=false"'`
19+ ForceShowLogs bool `yaml:"force_show_logs,omitempty" json:"force_show_logs,omitempty" jsonschema:"description=Always show tests logs, not only if they failed,default=false"`
2020 }
2121
2222 type config struct {
@@ -26,23 +26,23 @@
2626 Lifecycle hooks.Lifecycle `yaml:"lifecycle,omitempty" json:"lifecycle,omitempty" jsonschema:"description=Lifecycle hooks"`
2727 Store map[string]any `yaml:"store,omitempty" json:"store,omitempty" jsonschema:"title=The Store,description=It allows to pass your custom fields from helmwave.yml to values"`
2828 ChartF Chart `yaml:"chart,omitempty" json:"chart,omitempty" jsonschema:"title=Chart reference,description=Describes chart that release uses,oneof_type=string;object"`
29+ Tests configTests `yaml:"tests,omitempty" json:"tests,omitempty" jsonschema:"description=Configuration for helm tests"`
2930 PendingReleaseStrategy PendingStrategy `yaml:"pending_release_strategy,omitempty" json:"pending_release_strategy,omitempty" jsonschema:"description=Strategy to handle releases in pending statuses (pending-install/pending-upgrade/pending-rollback)"`
30- uniqName uniqname.UniqName
3131
32- NameF string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"required,title=Release name"`
33- NamespaceF string `yaml:"namespace,omitempty" json:"namespace,omitempty" jsonschema:"required,title=Kubernetes namespace"`
34- DescriptionF string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"default="`
35- KubeContextF string `yaml:"context,omitempty" json:"context,omitempty"`
36- OfflineKubeVersionF string `yaml:"offline_kube_version,omitempty" json:"offline_kube_version,omitempty" jsonschema:"description=Kubernetes version for offline mode"`
32+ uniqName uniqname.UniqName
33+ NameF string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"required,title=Release name"`
34+ NamespaceF string `yaml:"namespace,omitempty" json:"namespace,omitempty" jsonschema:"required,title=Kubernetes namespace"`
35+ DescriptionF string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"default="`
36+ KubeContextF string `yaml:"context,omitempty" json:"context,omitempty"`
3737
38- DependsOnF []*DependsOnReference `yaml:"depends_on,omitempty" json:"depends_on,omitempty" jsonschema:"title=Needs,description=List of dependencies that are required to succeed before this release"`
39- MonitorsF []MonitorReference `yaml:"monitors,omitempty" json:"monitors,omitempty" jsonschema:"title=Monitors to execute after upgrade"`
40- ValuesF []ValuesReference `yaml:"values,omitempty" json:"values,omitempty" jsonschema:"title=Values of the release,oneof_type=string;object"`
41- TagsF []string `yaml:"tags,omitempty" json:"tags,omitempty" jsonschema:"description=Tags allows you choose releases for build"`
42- Labels map[string]string `yaml:"labels,omitempty" json:"labels,omitempty" jsonschema:"Labels that would be added to release metadata on sync"`
43- PostRendererF []string `yaml:"post_renderer,omitempty" json:"post_renderer,omitempty" jsonschema:"description=List of post_renders to manipulate with manifests"`
44- ShowNotes bool `yaml:"show_notes,omitempty" json:"show_notes,omitempty" jsonschema:"description=Output rendered chart notes after upgrade/install"`
45- Tests configTests `yaml:"tests,omitempty" json:"tests,omitempty" jsonschema:"description=Configuration for helm tests"`
38+ OfflineKubeVersionF string `yaml:"offline_kube_version,omitempty" json:"offline_kube_version,omitempty" jsonschema:"description=Kubernetes version for offline mode"`
39+ DependsOnF []*DependsOnReference `yaml:"depends_on,omitempty" json:"depends_on,omitempty" jsonschema:"title=Needs,description=List of dependencies that are required to succeed before this release"`
40+ MonitorsF []MonitorReference `yaml:"monitors,omitempty" json:"monitors,omitempty" jsonschema:"title=Monitors to execute after upgrade"`
41+ ValuesF []ValuesReference `yaml:"values,omitempty" json:"values,omitempty" jsonschema:"title=Values of the release,oneof_type=string;object"`
42+ TagsF []string `yaml:"tags,omitempty" json:"tags,omitempty" jsonschema:"description=Tags allows you choose releases for build"`
43+ Labels map[string]string `yaml:"labels,omitempty" json:"labels,omitempty" jsonschema:"Labels that would be added to release metadata on sync"`
44+ PostRendererF []string `yaml:"post_renderer,omitempty" json:"post_renderer,omitempty" jsonschema:"description=List of post_renders to manipulate with manifests"`
45+ ShowNotes bool `yaml:"show_notes,omitempty" json:"show_notes,omitempty" jsonschema:"description=Output rendered chart notes after upgrade/install"`
4646
4747 Timeout time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty" jsonschema:"oneof_type=string;int,default=5m"`
4848