New ๐ŸŒŠ wave for @helm

Commit 9c4b764d

9c4b764d1efbMerged

Dmitriy Zhilyaev <[email protected]> ยท 3 years ago ยท 2 files ยท ~2 modified

Description

fix: local render without online cluster

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

Details

Commit
9c4b764d1efb
Parent
7e9a76a4d1ad

pkg/release/config.gomodifiedView file

@@ -16,12 +16,12 @@
1616
1717 // nolintlint:lll
1818 type config struct {
19- helm *helm.EnvSettings `yaml:"-" json:"-"`
20- log *log.Entry `yaml:"-" json:"-"`
21- 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"`
22- ChartF Chart `yaml:"chart,omitempty" json:"chart,omitempty" jsonschema:"title=Chart reference,description=Describes chart that release uses,oneof_type=string;object"`
23- 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),default="`
24- uniqName uniqname.UniqName `yaml:"-" json:"-"`
19+ helm *helm.EnvSettings
20+ log *log.Entry
21+ 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"`
22+ ChartF Chart `yaml:"chart,omitempty" json:"chart,omitempty" jsonschema:"title=Chart reference,description=Describes chart that release uses,oneof_type=string;object"`
23+ 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),default="`
24+ uniqName uniqname.UniqName
2525 NameF string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"required,title=Release name"`
2626 NamespaceF string `yaml:"namespace,omitempty" json:"namespace,omitempty" jsonschema:"required,title=Kubernetes namespace"`
2727 DescriptionF string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"default="`
@@ -32,24 +32,24 @@
3232 PostRendererF []string `yaml:"post_renderer,omitempty" json:"post_renderer,omitempty" jsonschema:"description=List of postrenders to manipulate with manifests"`
3333 MaxHistory int `yaml:"max_history,omitempty" json:"max_history,omitempty" jsonschema:"default=0"`
3434 Timeout time.Duration `yaml:"timeout,omitempty" json:"timeout,omitempty" jsonschema:"default=5m"`
35- lock sync.RWMutex `yaml:"-" json:"-"`
36- AllowFailureF bool `yaml:"allow_failure,omitempty" json:"allow_failure,omitempty" jsonschema:"description=Whether to ignore errors and proceed with dependant releases,default=false"`
37- Atomic bool `yaml:"atomic,omitempty" json:"atomic,omitempty" jsonschema:"default=false"`
38- CleanupOnFail bool `yaml:"cleanup_on_fail,omitempty" json:"cleanup_on_fail,omitempty" jsonschema:"default=false"`
39- CreateNamespace bool `yaml:"create_namespace,omitempty" json:"create_namespace,omitempty" jsonschema:"description=Whether to create namespace if it doesnt exits,default=false"`
40- Devel bool `yaml:"devel,omitempty" json:"devel,omitempty" jsonschema:"default=false"`
41- DisableHooks bool `yaml:"disable_hooks,omitempty" json:"disable_hooks,omitempty" jsonschema:"default=false"`
42- DisableOpenAPIValidation bool `yaml:"disable_open_api_validation,omitempty" json:"disable_open_api_validation,omitempty" jsonschema:"default=false"`
43- dryRun bool `yaml:"dry_run,omitempty" json:"dry_run,omitempty" jsonschema:"default=false"` //nolint:govet
44- EnableDNS bool `yaml:"enable_dns,omitempty" json:"enable_dns,omitempty" jsonschema:"default=false"`
45- Force bool `yaml:"force,omitempty" json:"force,omitempty" jsonschema:"default=false"`
46- Recreate bool `yaml:"recreate,omitempty" json:"recreate,omitempty" jsonschema:"default=false"`
47- ResetValues bool `yaml:"reset_values,omitempty" json:"reset_values,omitempty" jsonschema:"default=false"`
48- ReuseValues bool `yaml:"reuse_values,omitempty" json:"reuse_values,omitempty" jsonschema:"default=false"`
49- SkipCRDs bool `yaml:"skip_crds,omitempty" json:"skip_crds,omitempty" jsonschema:"default=false"`
50- SubNotes bool `yaml:"sub_notes,omitempty" json:"sub_notes,omitempty" jsonschema:"default=false"`
51- Wait bool `yaml:"wait,omitempty" json:"wait,omitempty" jsonschema:"description=Whether to wait for all resource to become ready,default=false"`
52- 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"`
35+ lock sync.RWMutex
36+ AllowFailureF bool `yaml:"allow_failure,omitempty" json:"allow_failure,omitempty" jsonschema:"description=Whether to ignore errors and proceed with dependant releases,default=false"`
37+ Atomic bool `yaml:"atomic,omitempty" json:"atomic,omitempty" jsonschema:"default=false"`
38+ CleanupOnFail bool `yaml:"cleanup_on_fail,omitempty" json:"cleanup_on_fail,omitempty" jsonschema:"default=false"`
39+ CreateNamespace bool `yaml:"create_namespace,omitempty" json:"create_namespace,omitempty" jsonschema:"description=Whether to create namespace if it doesnt exits,default=false"`
40+ Devel bool `yaml:"devel,omitempty" json:"devel,omitempty" jsonschema:"default=false"`
41+ DisableHooks bool `yaml:"disable_hooks,omitempty" json:"disable_hooks,omitempty" jsonschema:"default=false"`
42+ DisableOpenAPIValidation bool `yaml:"disable_open_api_validation,omitempty" json:"disable_open_api_validation,omitempty" jsonschema:"default=false"`
43+ dryRun bool `jsonschema:"default=false"` //nolint:govet
44+ EnableDNS bool `yaml:"enable_dns,omitempty" json:"enable_dns,omitempty" jsonschema:"default=false"`
45+ Force bool `yaml:"force,omitempty" json:"force,omitempty" jsonschema:"default=false"`
46+ Recreate bool `yaml:"recreate,omitempty" json:"recreate,omitempty" jsonschema:"default=false"`
47+ ResetValues bool `yaml:"reset_values,omitempty" json:"reset_values,omitempty" jsonschema:"default=false"`
48+ ReuseValues bool `yaml:"reuse_values,omitempty" json:"reuse_values,omitempty" jsonschema:"default=false"`
49+ SkipCRDs bool `yaml:"skip_crds,omitempty" json:"skip_crds,omitempty" jsonschema:"default=false"`
50+ SubNotes bool `yaml:"sub_notes,omitempty" json:"sub_notes,omitempty" jsonschema:"default=false"`
51+ Wait bool `yaml:"wait,omitempty" json:"wait,omitempty" jsonschema:"description=Whether to wait for all resource to become ready,default=false"`
52+ 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"`
5353 }
5454
5555 func (rel *config) DryRun(b bool) {
@@ -89,6 +89,7 @@
8989
9090 if client.DryRun {
9191 client.Replace = true
92+ client.ClientOnly = true
9293 }
9394
9495 return client