Skip to content

Auto DevOps new / updated kubernetes token is not used

Summary

I created a spring boot project, added kubernetes integration and enabled Auto DevOps. Everything worked but after deleting the generated namespace from gitlab, it started to throw errors 'Unauthorized'.

I tried a few things and recreated the token + user and updated the credentials. Still the same error.

I than cloned the Auto DevOps script, added -v=8 to the kubernetes command for ensure_namespace and saw an old token = token which was no longer configured.

I fixed that issue by deleting and recreating the kubernetes integration with the exact data i had before.

Steps to reproduce

  • Create project
  • Enable Kubernetes integration
  • Change data on kubernetes integration page
  • check if new token is used

Example Project

None, sry.