Remove non-existent imagePullSecrets from CSI controller Deployment - #545
Open
pangwangshu wants to merge 1 commit into
Open
Remove non-existent imagePullSecrets from CSI controller Deployment#545pangwangshu wants to merge 1 commit into
pangwangshu wants to merge 1 commit into
Conversation
…r Deployment The csi-oci-controller Deployment (both the static manifest and the Helm chart template) referenced a secret named image-pull-secret that is never created by any manifest or documented setup step. All images pulled by this Deployment are public (ghcr.io/oracle, registry.k8s.io), so kubelet's mandatory resolution of the missing secret causes FailedToRetrieveImagePullSecret warnings and CrashLoopBackOff on fresh installs. The sibling csi-oci-node DaemonSet pulls the same public images without any imagePullSecrets entry and works fine, confirming this was leftover/vestigial rather than required. Addresses oracle#510 Signed-off-by: Wangshu Pang <wangshu.pang@oracle.com>
|
Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application. When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated. If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Removes the hardcoded
imagePullSecrets: - name: image-pull-secretblock from thecsi-oci-controllerDeployment pod spec, in both:manifests/container-storage-interface/oci-csi-controller-driver.yaml(static manifest)manifests/container-storage-interface/csi/templates/oci-csi-controller-driver.yaml(Helm chart template)Addresses #510.
Why
image-pull-secretis never created by any manifest, RBAC file, or documented setup step in this repo — the only secret the CSI docs instruct users to create isoci-volume-provisioner(OCI API credentials), which is unrelated. All images pulled by this Deployment (ghcr.io/oracle/cloud-provider-oci,registry.k8s.io/sig-storage/*) are public and need no pull credentials.Because
imagePullSecretsis resolved unconditionally by the kubelet regardless of whether the image is public, a fresh install fails withFailedToRetrieveImagePullSecretand the controller pod goes intoCrashLoopBackOff/ContainerCreatinguntil a user manually creates a dummy secret with that exact name — a step that exists nowhere in the documentation.The sibling
csi-oci-nodeDaemonSet manifest (and its Helm template) pulls the exact same public images and has noimagePullSecretsentry at all, and works fine. No other manifest in the repo (CCM, flexvolume-driver, volume-provisioner) has this field either. This confirms the reference was leftover/vestigial rather than an actual requirement, and removing it brings the controller Deployment in line with every other manifest in the project.Validation
image-pull-secretanywhere (manifests, docs, scripts).imagePullSecretskey;containers,volumes, etc. are unchanged.govet/golint/gofmt/build/test targets are unaffected.helm templatewasn't runnable in the sandbox this change was prepared in (no network access to fetch the Helm binary), but the structural check above covers the equivalent risk, and there is no existing CI job that lints/templates this chart.How to test manually
kubectl -n kube-system get pods -l app=csi-oci-controller— confirm the pod reachesRunningwithout anyFailedToRetrieveImagePullSecretwarnings orCrashLoopBackOff.kubectl -n kube-system describe pod <csi-oci-controller-pod>— confirm there are no image pull secret-related warnings in the Events section.