Commit 34b3bf04
34b3bf0463c8Merged
Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 3 files ยท ~3 modified
Description
fix: hide secret
Signed-off-by: Dmitriy Zhilyaev [email protected]
Details
- Commit
- 34b3bf0463c8
- Parent
- 7c5424421595
pkg/release/config.gomodifiedView file
@@ -68,7 +68,16 @@
6868
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"`6969
7070
// special field for templating and building71-
dryRun bool `jsonschema:"default=false,-"`71+
dryRun bool `jsonschema:"default=false,-"`72+
hideSecret bool `jsonschema:"default=false,-"`73+
}74+
75+
// HideSecret can be set to true when DryRun is enabled in order to hide76+
// Kubernetes Secrets in the output. It cannot be used outside DryRun.77+
func (rel *config) HideSecret(b bool) {78+
if rel.dryRun {79+
rel.hideSecret = b80+
}7281
}7382
7483
func (rel *config) DryRun(b bool) {pkg/release/helm_actions.gomodifiedView file
Loading diffโฆ
pkg/release/interface.gomodifiedView file
Loading diffโฆ