Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some follow-ups to Slack prefixing work #764

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Nov 18, 2022

See individual commit messages.

The current namespace is implied so there's no need to specify it. This
also works around the fact that `env.PROJECT_NAME` is only defined when
running directly on the controller, which is not the case in the paths
in which `getSlackEmojiPrefix()` is currently called.
Run the pods we provision with the same service account as the one
Jenkins itself runs with. This should probably be something done by
default by the kubernetes-plugin, but surprisingly AFAICT there are no
knobs for this.

Anyway, in the future we could look at "usptreaming" this into
coreos-ci-lib directly, though I need to look into what's the cleanest
way to introspect the service account being used in a generic way.

This fixes the fact that with the default SA, we can't actually query
annotations from the Slack secret for getting the emoji prefix to use.
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jlebon jlebon merged commit 43fb95d into coreos:main Nov 18, 2022
@jlebon jlebon deleted the pr/slack-prefix-tweaks branch November 18, 2022 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants