Skip to main content
Question

Any issues if we made out `prod` branch the default branch in Gitlab?

  • March 11, 2025
  • 8 replies
  • 15 views

  • Participating Frequently

Good morning all! When working with GitOps would there be any issues if we made out `prod` branch the default branch in Gitlab? Figured no need for the main if we are only working in `prod` and `non-prod`

8 replies

Raanan Dagan
  • Employee
  • March 11, 2025

hi <@U03ES1W5F3J&gt;! let's see what <@U01J549PR6Y&gt; has to say when he sees this


Raanan Dagan
  • Employee
  • March 11, 2025

No issue .. i.e. as long as CRIBL_GIT_OPS is set to 'none'It is an issue if the goal is to make your Production read only .. i.e. CRIBL_GIT_OPS set to 'push'


  • Author
  • Participating Frequently
  • March 11, 2025

Ahh OK, yes we do have `CRIBL_GIT_OPS=push` set via `systemctl edit cribl` on the prod leader for read-only.Do you happen to know why it would cause an issue?


  • Author
  • Participating Frequently
  • March 11, 2025

```[Service]Environment=CRIBL_GIT_OPS=pushEnvironment=CRIBL_GIT_BRANCH=prod```


Raanan Dagan
  • Employee
  • March 11, 2025

'push' means that you cannot update the branch directly from Cribl .. only receive information from the branch


  • Author
  • Participating Frequently
  • March 11, 2025

Yes correct, but what does that have to do with having the default branch in Gitlab be our `prod` branch vs the unused `main` branch?


Raanan Dagan
  • Employee
  • March 11, 2025

aha .. :smile: .. nothing .. you can use prod as the default


  • Author
  • Participating Frequently
  • March 11, 2025

cool, ty Raanan!