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 changed the base branch from sergey/nfs_support to sergey/nfs_superset_rules September 3, 2024 08:45
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 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