Skip to content
Snippets Groups Projects

Adds new preRegistrationScript to run commands before the registration happens

Closed Javion Cai requested to merge javion3/gitlab-runner:javion3-main-patch-94666 into main
4 unresolved threads

What does this MR do?

Adds new preRegistrationScript to run commands before the registration happens

Why was this MR needed?

When using a secret manager like vault that will directly inject tokens into the pod, such as the runner token. We want to be able to run some commands to change the CI_SERVER_TOKEN environment variable before the runner registration happens.

This also solves #462 (closed)

What's the best way to test this MR?

What are the relevant issue numbers?

Edited by Javion Cai

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Javion Cai added 1 commit

    added 1 commit

    • d8cf03b4 - Removed optional secrets, added preRegistrationScript

    Compare with previous version

  • Javion Cai changed title from Changed runner token secret mount to be conditional to Adds new preRegistrationScript to run commands before the registration happens

    changed title from Changed runner token secret mount to be conditional to Adds new preRegistrationScript to run commands before the registration happens

  • Javion Cai changed the description

    changed the description

  • Javion Cai mentioned in issue #462 (closed)

    mentioned in issue #462 (closed)

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • 113 113 ##
    114 114 # sentryDsn:
    115 115
    116 ## A custom bash script that will be executed prior to the runner registration
    117 ## gitlab-runner process
    118 #
    119 preRegistrationScript: |
    120 echo "Executing pre-registration-script from .Values.preRegistrationScript"
    121 if [ -z "${REGISTRATION_TOKEN+1}" ]
    122 then
    123 REGISTRATION_TOKEN=""
    124 fi
    125
  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • Peter Leitzen requested review from @tmaczukin and removed review request for @splattael

    requested review from @tmaczukin and removed review request for @splattael

  • Javion Cai added 5 commits

    added 5 commits

    • ee6c498c...48b699c7 - 4 commits from branch gitlab-org/charts:main
    • c74823f1 - Merge branch gitlab-runner:main into javion3-main-patch-94666

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • Javion Cai added 3 commits

    added 3 commits

    • 29f6f1b3...21dbccf3 - 2 commits from branch gitlab-org/charts:main
    • 676848e0 - Merge branch gitlab-runner:main into javion3-main-patch-94666

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    • 304e6691 - Update file deployment_test.yaml

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    • bfdcdf8c - Update file deployment_test.yaml

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    • 58f983ca - Update file deployment_test.yaml

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    • c2bea301 - Update file deployment_test.yaml

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • Javion Cai added 13 commits

    added 13 commits

    • e52f14f6...c93ebe73 - 12 commits from branch gitlab-org/charts:main
    • 36d13eeb - Merge branch gitlab-runner:main into javion3-main-patch-94666

    Compare with previous version

  • Javion Cai added 1 commit

    added 1 commit

    Compare with previous version

  • @tmaczukin, this Community contribution is ready for review.

    • Do you have capacity and domain expertise to review this? We are mindful of your time, so if you are not able to take this on, please re-assign to one or more other reviewers.
    • Add the workflowin dev label if the merge request needs action from the author.

    This message was generated automatically. You're welcome to improve it.

  • Hey there @pslaughter, could you please help @javion3 out? This message was generated automatically. You're welcome to improve it.

  • requested review from @pslaughter

  • Paul Slaughter requested review from @mnielsen and removed review request for @tmaczukin

    requested review from @mnielsen and removed review request for @tmaczukin

  • Paul Slaughter removed review request for @pslaughter

    removed review request for @pslaughter

  • Mitchell Nielsen removed review request for @mnielsen

    removed review request for @mnielsen

  • Hi @mnielsen 👋

    We noticed this MR is marked as workflowready for review but no reviewer is assigned. workflowin dev has automatically been applied to this MR based on the likelihood the review is finished. If additional reviews are still required, please assign a reviewer and reapply workflowready for review.

    @javion3 you may also request a review by commenting @gitlab-bot ready. You can also assign reviewers directly using @gitlab-bot ready @user1 @user2 if you know the relevant reviewer(s), such as those who were involved in a related issue.

    This message was generated automatically. You're welcome to improve it.

  • requested review from @justin_ho

  • Justin Ho Tuan Duong requested review from @vshushlin and removed review request for @justin_ho

    requested review from @vshushlin and removed review request for @justin_ho

  • @vshushlin, this Community contribution was recently assigned to you for review.

    • Do you still have capacity to review this? We are mindful of your time, so if you are not able to take this on, please re-assign to one or more other reviewers.
    • Add the workflowin dev label if the merge request needs action from the author.

    This message was generated automatically. You're welcome to improve it.

  • Vladimir Shushlin mentioned in merge request !389 (closed)

    mentioned in merge request !389 (closed)

  • Javion Cai added 32 commits

    added 32 commits

    • 07a90bd7...493c3410 - 31 commits from branch gitlab-org/charts:main
    • dff42437 - Merge branch gitlab-runner:main into javion3-main-patch-94666

    Compare with previous version

  • Vladimir Shushlin mentioned in merge request !437

    mentioned in merge request !437

  • added idle label

  • removed idle label

  • added idle label

  • removed idle label

  • added idle label

  • removed idle label

  • added idle label

  • removed idle label

  • Vladimir Shushlin requested review from @ratchade and removed review request for @vshushlin

    requested review from @ratchade and removed review request for @vshushlin

  • added idle label

  • removed idle label

  • added idle label

  • removed idle label

  • added idle label

  • Hi @ratchade 👋 Just another friendly reminder to make sure this is on your tracks 🙂

  • removed idle label

  • added idle label

  • Security policy violations have been resolved.

    Edited by GitLab Security Bot
  • 🤖 GitLab Bot 🤖 added stale label and removed idle label

    added stale label and removed idle label

  • Hi @nicolewilliams! 👋

    To provide a better contribution experience, we're identifying older merge requests with no human activity in the past 120 days. Our goal is to bring these merge requests to completion or close them, enabling us to spend more time on active merge requests.

    Review this merge request and determine if you should:

    • Work on the provided feedback. Add @gitlab-bot ready when you need a review or are looking for more feedback.
    • Don't know how to proceed? Ask for help from a merge request coach by adding @gitlab-bot help in a comment.
    • Close the merge request.

    Please see the handbook for additional details on this

    (Improve this message?)

  • Closing due to inactivity. Please reopen if desired.

  • Hi @javion3 👋

    How was your code review experience with this merge request? Please tell us how we can continue to iterate and improve:

    1. React with a 👍 or a 👎 on this comment to describe your experience.
    2. Create a new comment starting with @gitlab-bot feedback below, and leave any additional feedback you have for us in the comment.

    Request access to our community forks to receive complimentary access to GitLab Duo, our AI-powered features. With Code Suggestions, Chat, Root Cause Analysis and more AI-powered features, GitLab Duo helps to boost your efficiency and effectiveness by reducing the time required to write and understand code and pipelines. Visit the GitLab Duo documentation to learn more about the benefits.

    🎉 See where you rank! Check your spot on the contributor leaderboard and unlock rewards.

    Thanks for your help! ❤️

    This message was generated automatically. Improve it or delete it.

  • removed stale label

  • Please register or sign in to reply
    Loading