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

fix(CSI-243): service accounts for CSI plugin assume ImagePullSecret and cause error messages. #311

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

sergeyberezansky
Copy link
Collaborator

@sergeyberezansky sergeyberezansky commented Sep 2, 2024

TL;DR

Updated image pull secret configuration for CSI WekaFS plugin

What changed?

  • Modified controllerserver-serviceaccount.yaml and nodeserver-serviceaccount.yaml to use a configurable image pull secret
  • Added imagePullSecret parameter in values.yaml to specify the name of the image pull secret
  • Wrapped image pull secret configuration in conditional statements to only apply when specified

How to test?

  1. Deploy the chart with imagePullSecret set to an existing secret name
  2. Verify that the controller and node service accounts are created with the specified image pull secret
  3. Deploy the chart without setting imagePullSecret
  4. Confirm that no image pull secret is added to the service accounts

Why make this change?

This change allows users to specify a custom image pull secret for private registries that require authentication. It provides more flexibility in deployment scenarios where images are stored in private repositories, while maintaining backwards compatibility for deployments that don't require image pull secrets.

In most cases, since CSI plugin components reside in public repository, this will help to avoid "Could not fetch some secrets" errors in Kubernetes


Copy link

graphite-app bot commented Sep 2, 2024

Graphite Automations

"Request reviewers once CI passes" took an action on this PR • (09/02/24)

1 reviewer was added to this PR based on Sergey Berezansky's automation.

@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-243_remove-pull-secret branch from d54b0bd to 61279d7 Compare September 3, 2024 08:45
@sergeyberezansky sergeyberezansky changed the base branch from sergey/nfs_support to sergey/nfs_superset_rules September 3, 2024 08:45
@sergeyberezansky sergeyberezansky force-pushed the sergey/nfs_superset_rules branch from 4b0b152 to 98b4980 Compare September 11, 2024 10:11
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-243_remove-pull-secret branch from 61279d7 to a162da2 Compare September 11, 2024 10:11
@sergeyberezansky sergeyberezansky force-pushed the sergey/nfs_superset_rules branch from 98b4980 to ce8fe93 Compare September 11, 2024 11:11
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-243_remove-pull-secret branch from a162da2 to 3b2fee5 Compare September 11, 2024 11:11
@sergeyberezansky sergeyberezansky force-pushed the sergey/nfs_superset_rules branch from ce8fe93 to 59dd6b6 Compare September 11, 2024 11:34
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-243_remove-pull-secret branch from 3b2fee5 to 61a980c Compare September 11, 2024 11:34
@sergeyberezansky sergeyberezansky force-pushed the sergey/nfs_superset_rules branch from 59dd6b6 to 66c002c Compare September 11, 2024 11:51
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-243_remove-pull-secret branch from 61a980c to b0d812b Compare September 11, 2024 11:51
@sergeyberezansky sergeyberezansky force-pushed the sergey/nfs_superset_rules branch from 66c002c to a718c35 Compare September 11, 2024 13:01
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-243_remove-pull-secret branch from b0d812b to 2fb98d4 Compare September 11, 2024 13:01
Copy link
Collaborator Author

sergeyberezansky commented Sep 12, 2024

Merge activity

  • Sep 12, 6:10 AM EDT: @sergeyberezansky started a stack merge that includes this pull request via Graphite.
  • Sep 12, 7:07 AM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 12, 7:09 AM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 12, 7:14 AM EDT: @sergeyberezansky merged this pull request with Graphite.

@sergeyberezansky sergeyberezansky changed the base branch from sergey/nfs_superset_rules to graphite-base/311 September 12, 2024 10:56
@sergeyberezansky sergeyberezansky changed the base branch from graphite-base/311 to dev September 12, 2024 11:04
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-243_remove-pull-secret branch from 88e9b1a to a85e38a Compare September 12, 2024 11:06
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-243_remove-pull-secret branch from a85e38a to 5ef4204 Compare September 12, 2024 11:08
@sergeyberezansky sergeyberezansky merged commit 996c623 into dev Sep 12, 2024
11 checks passed
@sergeyberezansky sergeyberezansky deleted the sergey/csi-243_remove-pull-secret branch September 12, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant