Skip to content

Commit

Permalink
Merge pull request #167 from BlythMeister/datree-verbose
Browse files Browse the repository at this point in the history
Include the verbose flag as it means we output a link to how to fix the issue
  • Loading branch information
martyn-osborne authored Jul 25, 2022
2 parents 4c8d48c + e783ca1 commit c8478f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using System.Text.RegularExpressions;
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");

var baseVersion = "1.15.2";
var baseVersion = "1.15.3";
var subVersion = "";
var subVersionNumber = "";
var isMasterOrDevelop = false;
Expand Down
8 changes: 4 additions & 4 deletions src/Scripts/kubernetesHelper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,22 @@ function ValidateK8sYaml([string]$yamlFile, [string]$kubernetesConfigFile)
{
if([string]::IsNullOrWhiteSpace($DatreePolicy))
{
& $DatreeExe test $yamlFile --output simple --schema-version "$kubeServerVersion"
& $DatreeExe test $yamlFile --verbose --output simple --schema-version "$kubeServerVersion"
}
else
{
& $DatreeExe test $yamlFile --output simple --schema-version "$kubeServerVersion" --policy $DatreePolicy
& $DatreeExe test $yamlFile --verbose --output simple --schema-version "$kubeServerVersion" --policy $DatreePolicy
}
}
else
{
if([string]::IsNullOrWhiteSpace($DatreePolicy))
{
& $DatreeExe test $yamlFile --output simple --schema-version "$kubeServerVersion" --no-record
& $DatreeExe test $yamlFile --verbose --output simple --schema-version "$kubeServerVersion" --no-record
}
else
{
& $DatreeExe test $yamlFile --output simple --schema-version "$kubeServerVersion" --policy $DatreePolicy --no-record
& $DatreeExe test $yamlFile --verbose --output simple --schema-version "$kubeServerVersion" --policy $DatreePolicy --no-record
}
}

Expand Down

0 comments on commit c8478f2

Please sign in to comment.