add config lint go
Signed-off-by: zhaque44 <haque.zubair@gmail.com>
This commit is contained in:
parent
e24ada8b8d
commit
aefde99781
|
|
@ -28,6 +28,8 @@ type ApplyOptions struct {
|
|||
IncludeNeeds bool
|
||||
// IncludeTransitiveNeeds is true if the transitive needs should be included
|
||||
IncludeTransitiveNeeds bool
|
||||
// EnforceNeedsAreInstalled is true we should error if/when there are unmeetable dependencies
|
||||
EnforceNeedsAreInstalled bool
|
||||
// SkipDiffOnInstall is true if the diff should be skipped on install
|
||||
SkipDiffOnInstall bool
|
||||
// DiffArgs is the list of arguments to pass to the helm-diff.
|
||||
|
|
@ -139,6 +141,11 @@ func (a *ApplyImpl) IncludeTransitiveNeeds() bool {
|
|||
return a.ApplyOptions.IncludeTransitiveNeeds
|
||||
}
|
||||
|
||||
// EnforceNeedsAreInstalled is true we should error if/when there are unmeetable dependencies
|
||||
func (a *ApplyImpl) EnforceNeedsAreInstalled() bool {
|
||||
return a.ApplyOptions.EnforceNeedsAreInstalled
|
||||
}
|
||||
|
||||
// ShowSecrets returns the show secrets.
|
||||
func (a *ApplyImpl) ShowSecrets() bool {
|
||||
return a.ApplyOptions.ShowSecrets
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ type DiffOptions struct {
|
|||
IncludeNeeds bool
|
||||
// IncludeTransitiveNeeds is the include transitive needs flag
|
||||
IncludeTransitiveNeeds bool
|
||||
// EnforceNeedsAreInstalled is the enforce needs are installed flag
|
||||
EnforceNeedsAreInstalled bool
|
||||
// SkipDiffOnInstall is the skip diff on install flag
|
||||
SkipDiffOnInstall bool
|
||||
// ShowSecrets is the show secrets flag
|
||||
|
|
@ -87,6 +89,11 @@ func (t *DiffImpl) IncludeTransitiveNeeds() bool {
|
|||
return t.DiffOptions.IncludeTransitiveNeeds
|
||||
}
|
||||
|
||||
// EnforceNeedsAreInstalled errors if the transitive dependencies are not installable
|
||||
func (t *DiffImpl) EnforceNeedsAreInstalled() bool {
|
||||
return t.DiffOptions.EnforceNeedsAreInstalled
|
||||
}
|
||||
|
||||
// Set returns the Set
|
||||
func (t *DiffImpl) Set() []string {
|
||||
return t.DiffOptions.Set
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ type LintOptions struct {
|
|||
IncludeNeeds bool
|
||||
// IncludeTransitiveNeeds is the include transitive needs flag
|
||||
IncludeTransitiveNeeds bool
|
||||
// EnforceNeedsAreInstalled is the enforce needs are installed flag
|
||||
EnforceNeedsAreInstalled bool
|
||||
// SkipDeps is the skip deps flag
|
||||
}
|
||||
|
||||
|
|
@ -66,6 +68,11 @@ func (l *LintImpl) IncludeTransitiveNeeds() bool {
|
|||
return l.LintOptions.IncludeTransitiveNeeds
|
||||
}
|
||||
|
||||
// EnforceNeedsAreInstalled errors if the transitive dependencies are not installable
|
||||
func (l *LintImpl) EnforceNeedsAreInstalled() bool {
|
||||
return l.LintOptions.EnforceNeedsAreInstalled
|
||||
}
|
||||
|
||||
// SkipNeeds returns the skip needs
|
||||
func (l *LintImpl) SkipNeeds() bool {
|
||||
if !l.IncludeNeeds() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue