Skip to content

Commit 846cbed

Browse files
Add in opa
1 parent 996a14f commit 846cbed

File tree

5 files changed

+276
-66
lines changed

5 files changed

+276
-66
lines changed

cmd/kubeapply/subcmd/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func execValidation(ctx context.Context, clusterConfig *config.ClusterConfig) er
9494
}
9595

9696
log.Infof("Running kubeconform on configs in %+v", clusterConfig.AbsSubpaths())
97-
results, err := kubeValidator.RunSchemaValidation(ctx, clusterConfig.AbsSubpaths()[0])
97+
results, err := kubeValidator.RunValidation(ctx, clusterConfig.AbsSubpaths()[0])
9898
if err != nil {
9999
return err
100100
}

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ require (
88
github.com/aws/aws-lambda-go v1.15.0
99
github.com/aws/aws-sdk-go v1.29.16
1010
github.com/briandowns/spinner v1.11.1
11-
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
1211
github.com/dgrijalva/jwt-go v3.2.0+incompatible
1312
github.com/fatih/color v1.7.0
1413
github.com/ghodss/yaml v1.0.0
@@ -22,6 +21,7 @@ require (
2221
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
2322
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
2423
github.com/olekukonko/tablewriter v0.0.4
24+
github.com/open-policy-agent/opa v0.27.1
2525
github.com/pmezard/go-difflib v1.0.0
2626
github.com/segmentio/conf v1.2.0
2727
github.com/segmentio/encoding v0.2.7
@@ -39,7 +39,6 @@ require (
3939
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
4040
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
4141
gopkg.in/src-d/go-git.v4 v4.13.1
42-
gopkg.in/validator.v2 v2.0.0-20180514200540-135c24b11c19
4342
gopkg.in/yaml.v2 v2.3.0
4443
gopkg.in/yaml.v3 v3.0.0-20200601152816-913338de1bd2 // indirect
4544
gopkg.in/zorkian/go-datadog-api.v2 v2.28.0

0 commit comments

Comments
 (0)