Skip to content

Port development kit Secrets to match API definition

Hossein Pursultani requested to merge port-dev-kit-secrets into main

What does this MR do?

GitLab API definition v2alpha1 uses basic-auth Secret type for PostgreSQL and Redis authentication while the Secrets that GitLab Chart generates are Opaque secrets with arbitrary key name.

With this change, the development kit setup script copies the payload of the Chart-generated Secrets of PostgreSQL and Redis to new Secrets with kubernetes.io/basic-auth type. It sets the default username that GitLab Chart uses:

  • PostgreSQL username is gitlab
  • Redis username is "" which is the default user

Author's Checklist

For anything in this list which will not be completed, please provide a reason in the MR discussion.

Required

  • Ensure a release milestone is set.
  • MR title and description are up to date, accurate, and descriptive.
  • MR targeting the appropriate branch.
  • MR has a green pipeline on GitLab.com.
  • When ready for review, MR is labeled workflowready for review per the MR workflow.

Expected

  • Test plan indicating conditions for success has been posted and passes.
  • Documentation is created or updated.
  • Tests are added.

Related issues

Edited by Hossein Pursultani

Merge request reports