Skip to content

Generate Authpolicy from OpenAPI 3.0.X #81

Generate Authpolicy from OpenAPI 3.0.X

Generate Authpolicy from OpenAPI 3.0.X #81

Triggered via pull request November 27, 2023 10:50
@eguzkieguzki
synchronize #46
authpolicy
Status Failure
Total duration 1m 21s
Artifacts

code-style.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Lint: pkg/kuadrantapi/authpolicy.go#L20
not enough arguments in call to utils.OpenAPIMatcherFromOASOperations
Lint: pkg/kuadrantapi/authpolicy.go#L44
kuadrantPathExtension.IsEnabled undefined (type *"github.com/kuadrant/kuadrantctl/pkg/utils".KuadrantOASPathExtension has no field or method IsEnabled)
Lint: pkg/kuadrantapi/authpolicy.go#L53
cannot infer T (/home/runner/go/pkg/mod/k8s.io/utils@v0.0.0-20230726121419-3b25d923346b/ptr/ptr.go:56:12)
Lint: pkg/kuadrantapi/authpolicy.go#L53
kuadrantOperationExtension.Enable undefined (type *"github.com/kuadrant/kuadrantctl/pkg/utils".KuadrantOASOperationExtension has no field or method Enable) (typecheck)
Lint: cmd/generate_kuadrant_authpolicy.go#L15
could not import github.com/kuadrant/kuadrantctl/pkg/kuadrantapi (-: # github.com/kuadrant/kuadrantctl/pkg/kuadrantapi
Lint: pkg/kuadrantapi/authpolicy.go#L20
not enough arguments in call to utils.OpenAPIMatcherFromOASOperations
Lint: pkg/kuadrantapi/authpolicy.go#L44
kuadrantPathExtension.IsEnabled undefined (type *"github.com/kuadrant/kuadrantctl/pkg/utils".KuadrantOASPathExtension has no field or method IsEnabled)
Lint: pkg/kuadrantapi/authpolicy.go#L53
cannot infer T (/home/runner/go/pkg/mod/k8s.io/utils@v0.0.0-20230726121419-3b25d923346b/ptr/ptr.go:56:12)
Lint: pkg/kuadrantapi/authpolicy.go#L53
kuadrantOperationExtension.Enable undefined (type *"github.com/kuadrant/kuadrantctl/pkg/utils".KuadrantOASOperationExtension has no field or method Enable)) (typecheck)
Lint
Process completed with exit code 2.
Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/kuadrantctl/kuadrantctl. Supported file pattern: go.sum