Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(k8s): support outdated-api #2877

Merged

Conversation

chen-keinan
Copy link
Contributor

@chen-keinan chen-keinan commented Sep 14, 2022

Signed-off-by: chenk hen.keinan@gmail.com

Description

bump defsec v0.75.3 supprting outdated-api
output example:

$ trivy fs ./scanjob.yaml

scanjob.yaml (kubernetes)

Tests: 79 (SUCCESSES: 66, FAILURES: 13, EXCEPTIONS: 0)
Failures: 13 (UNKNOWN: 0, LOW: 10, MEDIUM: 2, HIGH: 1, CRITICAL: 0)

HIGH: apiVersion 'batch/v1beta1' and kind ‘CronJob' should be replaced with the new API ‘batch.v1.CronJob'
════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
apiVersion 'batch/v1beta1' and kind 'CronJob' has been deprecated on: 'v1.21' and planned for removal on:'v1.25'

See https://github.com/kubernetes/kubernetes/tree/master/staging/src/k8s.io/api/batch/v1beta1/zz_generated.prerelease-lifecycle.go
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 scanjob.yaml:1-5
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 ┌ apiVersion: batch/v1beta1
   2 │ kind: CronJob
   3 │ metadata:
   4 │   name: hello
   5 └ spec:
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Related issues

Related PRs

Checklist

@chen-keinan chen-keinan changed the title chore: bump-defsec v0.75.3 supprting outdated-api chore: bump defsec lib v0.75.3 supprting outdated-api Sep 14, 2022
Signed-off-by: chenk <hen.keinan@gmail.com>
Signed-off-by: chenk <hen.keinan@gmail.com>
@chen-keinan chen-keinan force-pushed the chore/bump-defsec-v0.75.3-outdated-api branch from 14a4988 to 59ef4fb Compare September 15, 2022 08:38
Signed-off-by: chenk <hen.keinan@gmail.com>
@knqyf263
Copy link
Collaborator

knqyf263 commented Sep 15, 2022

Could you add what the output looks like in the PR description? @chen-keinan

@chen-keinan
Copy link
Contributor Author

Could you add what the output looks like in the PR description? @chen-keinan

Done

@knqyf263 knqyf263 changed the title chore: bump defsec lib v0.75.3 supprting outdated-api feat(k8s): support outdated-api Sep 15, 2022
@knqyf263 knqyf263 merged commit 597836c into aquasecurity:main Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

k8s API outdated version support
2 participants