Skip to content

Introduce kubeclient remove HTTP related functionality

Nick Ilieskou requested to merge introduce_kubeclient into 434301_cm

What does this MR do?

  • Remove anything related with HTTP and the old design.
  • Introduce --gitlab-agent-ns and --timeout-minutes flags
  • Create a kube module that wraps all K8S related functions
  • Update validator to validate the new flags.
  • Introduce exit codes. This is useful because the Gitlab-agent is parsing the exit code not the logs.
  • Updates the Dockerfile and the readme.md

Why are we doing this?

This is the first part of the proposed design gitlab-org&11968 (comment 1683845311). In this step we remove the old design. So anything related to HTTP is removed. Then we prepare the way for transforming the trivy report and storing it in configmaps.

What are the relevant issue numbers?

Trivy-k8s-wrapper should extract save vulnerabi... (gitlab-org/gitlab#434301 - closed) • Nick Ilieskou • 16.8 • On track

Overall design

gitlab-org&11968 (comment 1683845311)

Merging Order

Edited by Nick Ilieskou

Merge request reports

Loading