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

Handle Service Account auto mount with Deployment Spec token auto mount #1616

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

RafalKorepta
Copy link
Contributor

@RafalKorepta RafalKorepta commented Dec 4, 2024

The Deployment Spec token auto mount takes precendese over Service Account token
auto mount. Now both token auto mount properties should be set to true in order
to not mount volume.

@RafalKorepta RafalKorepta force-pushed the rk/k8s-431/auto-mount-property branch 2 times, most recently from 198b5d8 to f59aae6 Compare December 4, 2024 12:51
@RafalKorepta RafalKorepta changed the title Add service account auto mount e2e test case Handle Service Account auto mount with Deployment Spec token auto mount Dec 4, 2024
@chrisseto
Copy link
Contributor

A bit confused about what's being fixed and why it's being fixed this way. Could we not ignore these options and instead always include the service account token mounts / volumes?

@RafalKorepta RafalKorepta force-pushed the rk/k8s-431/auto-mount-property branch from f59aae6 to c32a9f4 Compare December 4, 2024 15:38
@RafalKorepta
Copy link
Contributor Author

A bit confused about what's being fixed and why it's being fixed this way. Could we not ignore these options and instead always include the service account token mounts / volumes?

You are right. I will just mount service account token, but only when service account is created. If user would like to disable Service Account, then PodTemplate would need to be used to mount service account token with service account name.

The Deployment Spec token auto mount takes precendese over Service Account token
auto mount. Now both token auto mount properties should be set to true in order
to not mount volume.
@RafalKorepta RafalKorepta force-pushed the rk/k8s-431/auto-mount-property branch from c32a9f4 to a4535e2 Compare December 4, 2024 22:28
@RafalKorepta RafalKorepta merged commit 5d1314e into main Dec 6, 2024
11 checks passed
@RafalKorepta RafalKorepta deleted the rk/k8s-431/auto-mount-property branch December 6, 2024 07:08
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.

2 participants