Skip to content

Commit

Permalink
fix golang-ci
Browse files Browse the repository at this point in the history
Signed-off-by: Mmadu Manasseh <[email protected]>
  • Loading branch information
MeNsaaH committed Jan 10, 2025
1 parent b42306e commit db570f5
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 275 deletions.
1 change: 1 addition & 0 deletions .github/workflows/on_pull_request_go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
swap-storage: false

- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ k8s_resource(
port_forwards=['2345:2345', '8080:8080'],
resource_deps=[
# 'go-build',
# 'go-test',
'go-test',
'k8s:namespace',
'argocd',
'argocd-crds',
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ The full list of supported environment variables is described below:
{{- end }}


See [integration](#integration) for more information on the tools integrated into `kubechecks` .
See [integrations](./integrations) for more information on the tools integrated into `kubechecks` .
7 changes: 0 additions & 7 deletions pkg/checks/kyverno/kyverno_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,3 @@ policy ` + "`policy`" + ` -> resource ` + "`namespace1/Pod/mypod`" + ` failed:
})
}
}

// Placeholder function for engineapi.Policy
type MockPolicy struct {
name string
}

func (m MockPolicy) GetName() string { return m.name }
9 changes: 4 additions & 5 deletions pkg/kyverno-kubectl/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ import (
"k8s.io/client-go/kubernetes"
)

const divider = "----------------------------------------------------------------------"

type SkippedInvalidPolicies struct {
Skipped []string
Invalid []string
Expand All @@ -60,8 +58,6 @@ type ApplyCommandConfig struct {
ResourcePaths []string
PolicyPaths []string
GitBranch string
warnExitCode int
warnNoPassed bool
Exception []string
ContinueOnFail bool
inlineExceptions bool
Expand All @@ -80,7 +76,10 @@ type Result struct {

func RunKyvernoApply(policyPaths []string, resourcePaths []string) Result {
logging.InitFlags(nil)
logging.Setup(logging.TextFormat, logging.DefaultTime, 4)
err := logging.Setup(logging.TextFormat, logging.DefaultTime, 4)
if err != nil {
log.Log.Error(err, "failed to set kyverno logging")
}
applyCommandConfig := &ApplyCommandConfig{}
applyCommandConfig.ResourcePaths = resourcePaths
result := Result{}
Expand Down
35 changes: 0 additions & 35 deletions pkg/kyverno-kubectl/doc.go

This file was deleted.

169 changes: 0 additions & 169 deletions pkg/kyverno-kubectl/print.go

This file was deleted.

57 changes: 0 additions & 57 deletions pkg/kyverno-kubectl/table.go

This file was deleted.

0 comments on commit db570f5

Please sign in to comment.