Skip to content

Add PullSecret string field for the Image instead of PullSecretRef#1623

Open
burmanm wants to merge 1 commit intok8ssandra:mainfrom
burmanm:imagepullsecret_vs_ref
Open

Add PullSecret string field for the Image instead of PullSecretRef#1623
burmanm wants to merge 1 commit intok8ssandra:mainfrom
burmanm:imagepullsecret_vs_ref

Conversation

@burmanm
Copy link
Copy Markdown
Contributor

@burmanm burmanm commented Sep 24, 2025

What this PR does:
Adds "PullSecret" to the Image struct that has precedence over PullSecretRef. This is to ensure the compatibility with the cass-operator Image type (and to allow easier migration in the future) and adheres to the API documentation in Kubernetes which states for LocalObjectReference:

"// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs."

Also, deprecate PullSecretRef so we can in the future migrate away from it.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@burmanm burmanm requested a review from a team as a code owner September 24, 2025 14:36
@github-actions
Copy link
Copy Markdown

No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
6.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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.

1 participant