Ensure not directly use 'kubectl apply' in scripts

Using 'kubectl apply' in a pipeline environment can be dangerous as it has super-user permissions in Kubernetes cluster.

Risk Level: medium
Platform: GitLab
Spectral Rule ID: GLPL004


Avoid using 'kubectl apply' in pipelines or separate the build operation to run in an unprivileged container.

Read more:

  • TBD