New ๐ŸŒŠ wave for @helm

Commit ec6945b1

ec6945b1cf1fMerged

Dmitriy Zhilyaev <[email protected]> ยท 3 years ago ยท 1 file ยท ~1 modified

Description

fix: tabs

Signed-off-by: Dmitriy Zhilyaev [email protected]

Details

Commit
ec6945b1cf1f
Parent
7e0c04d2b7c0

pkg/release/config.gomodifiedView file

@@ -17,25 +17,32 @@
1717 )
1818
1919 type config struct {
20- helm *helm.EnvSettings
21- log *log.Entry
22- Lifecycle hooks.Lifecycle `yaml:"lifecycle,omitempty" json:"lifecycle,omitempty" jsonschema:"description=Lifecycle hooks"`
23- 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"`
24- ChartF Chart `yaml:"chart,omitempty" json:"chart,omitempty" jsonschema:"title=Chart reference,description=Describes chart that release uses,oneof_type=string;object"`
25- PendingReleaseStrategy PendingStrategy `yaml:"pending_release_strategy,omitempty" json:"pending_release_strategy,omitempty" jsonschema:"enum=rollback,enum=uninstall,description=Strategy to handle releases in pending statuses (pending-install/pending-upgrade/pending-rollback)"`
26- uniqName uniqname.UniqName
27- NameF string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"required,title=Release name"`
28- NamespaceF string `yaml:"namespace,omitempty" json:"namespace,omitempty" jsonschema:"required,title=Kubernetes namespace"`
29- DescriptionF string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"default="`
30- KubeContextF string `yaml:"context,omitempty" json:"context,omitempty"`
31- OfflineKubeVersionF string `yaml:"offline_kube_version,omitempty" json:"offline_kube_version,omitempty" jsonschema:"description=Kubernetes version for offline mode"`
32- 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"`
33- ValuesF []ValuesReference `yaml:"values,omitempty" json:"values,omitempty" jsonschema:"title=Values of the release,oneof_type=string;object"`
34- TagsF []string `yaml:"tags,omitempty" json:"tags,omitempty" jsonschema:"description=Tags allows you choose releases for build"`
35- PostRendererF []string `yaml:"post_renderer,omitempty" json:"post_renderer,omitempty" jsonschema:"description=List of post_renders to manipulate with manifests"`
36- MaxHistory int `yaml:"max_history,omitempty" json:"max_history,omitempty" jsonschema:"default=0"`
37- Timeout time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty" jsonschema:"oneof_type=string;int,default=5m"`
38- lock sync.RWMutex
20+ helm *helm.EnvSettings
21+ log *log.Entry
22+
23+ Lifecycle hooks.Lifecycle `yaml:"lifecycle,omitempty" json:"lifecycle,omitempty" jsonschema:"description=Lifecycle hooks"`
24+ 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"`
25+ ChartF Chart `yaml:"chart,omitempty" json:"chart,omitempty" jsonschema:"title=Chart reference,description=Describes chart that release uses,oneof_type=string;object"`
26+ PendingReleaseStrategy PendingStrategy `yaml:"pending_release_strategy,omitempty" json:"pending_release_strategy,omitempty" jsonschema:"enum=rollback,enum=uninstall,description=Strategy to handle releases in pending statuses (pending-install/pending-upgrade/pending-rollback)"`
27+ uniqName uniqname.UniqName
28+
29+ NameF string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"required,title=Release name"`
30+ NamespaceF string `yaml:"namespace,omitempty" json:"namespace,omitempty" jsonschema:"required,title=Kubernetes namespace"`
31+ DescriptionF string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"default="`
32+ KubeContextF string `yaml:"context,omitempty" json:"context,omitempty"`
33+ OfflineKubeVersionF string `yaml:"offline_kube_version,omitempty" json:"offline_kube_version,omitempty" jsonschema:"description=Kubernetes version for offline mode"`
34+
35+ 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"`
36+ ValuesF []ValuesReference `yaml:"values,omitempty" json:"values,omitempty" jsonschema:"title=Values of the release,oneof_type=string;object"`
37+ TagsF []string `yaml:"tags,omitempty" json:"tags,omitempty" jsonschema:"description=Tags allows you choose releases for build"`
38+ PostRendererF []string `yaml:"post_renderer,omitempty" json:"post_renderer,omitempty" jsonschema:"description=List of post_renders to manipulate with manifests"`
39+
40+ Timeout time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty" jsonschema:"oneof_type=string;int,default=5m"`
41+
42+ // Lock for parallel testing
43+ lock sync.RWMutex
44+
45+ MaxHistory int `yaml:"max_history,omitempty" json:"max_history,omitempty" jsonschema:"default=0"`
3946 AllowFailureF bool `yaml:"allow_failure,omitempty" json:"allow_failure,omitempty" jsonschema:"description=Whether to ignore errors and proceed with dependant releases,default=false"`
4047 Atomic bool `yaml:"atomic,omitempty" json:"atomic,omitempty" jsonschema:"default=false"`
4148 CleanupOnFail bool `yaml:"cleanup_on_fail,omitempty" json:"cleanup_on_fail,omitempty" jsonschema:"default=false"`
@@ -43,7 +50,6 @@
4350 Devel bool `yaml:"devel,omitempty" json:"devel,omitempty" jsonschema:"default=false"`
4451 DisableHooks bool `yaml:"disable_hooks,omitempty" json:"disable_hooks,omitempty" jsonschema:"default=false"`
4552 DisableOpenAPIValidation bool `yaml:"disable_open_api_validation,omitempty" json:"disable_open_api_validation,omitempty" jsonschema:"default=false"`
46- dryRun bool `jsonschema:"default=false,-"`
4753 EnableDNS bool `yaml:"enable_dns,omitempty" json:"enable_dns,omitempty" jsonschema:"default=false"`
4854 Force bool `yaml:"force,omitempty" json:"force,omitempty" jsonschema:"default=false"`
4955 Recreate bool `yaml:"recreate,omitempty" json:"recreate,omitempty" jsonschema:"default=false"`
@@ -53,6 +59,9 @@
5359 SubNotes bool `yaml:"sub_notes,omitempty" json:"sub_notes,omitempty" jsonschema:"default=false"`
5460 Wait bool `yaml:"wait,omitempty" json:"wait,omitempty" jsonschema:"description=Whether to wait for all resource to become ready,default=false"`
5561 WaitForJobs bool `yaml:"wait_for_jobs,omitempty" json:"wait_for_jobs,omitempty" jsonschema:"description=Whether to wait for all jobs to become ready,default=false"`
62+
63+ // special field for templating and building
64+ dryRun bool `jsonschema:"default=false,-"`
5665 }
5766
5867 func (rel *config) DryRun(b bool) {