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

K8SSAND-1501 ⁃ cass-operator ConfigMap image_config.yaml is broken #1404

Closed
Gellardo opened this issue May 11, 2022 · 2 comments
Closed

K8SSAND-1501 ⁃ cass-operator ConfigMap image_config.yaml is broken #1404

Gellardo opened this issue May 11, 2022 · 2 comments
Labels
bug Something isn't working needs-triage zh:In-Progress Issues in the ZenHub pipeline 'In-Progress'

Comments

@Gellardo
Copy link

Gellardo commented May 11, 2022

Bug Report

Describe the bug
Cass-operator configmap uses imagePullSecrets (here) even though cass-operator config is named imagePullSecret (here) and in fact can't handle more than one secret name.

Also imageRegistry (here) and imagePullPolicy are indented too much.

To Reproduce
Steps to reproduce the behavior:

  1. Go to charts/cass-operator
  2. helm template . --set 'image.registryOverride=registry,imagePullSecrets[0].name=pull-secret' > output.yaml
  3. Find the ConfigMap
kind: ConfigMap
metadata:
  name: release-name-cass-operator-manager-config
  [...]
apiVersion: v1
data:
  controller_manager_config.yaml: |
    [...]
  image_config.yaml: |
    apiVersion: config.k8ssandra.io/v1beta1
    kind: ImageConfig
    images:
      system-logger: "k8ssandra/system-logger:v1.10.0"
      config-builder: "datastax/cass-config-builder:1.0.4-ubi7"
      imageRegistry: asdf
    imagePullSecrets:
        - name: hi
      imagePullPolicy: IfNotPresent
    defaults:
      [...]

Expected behavior
It is possible to add multiple imagePullSecrets to the pods generated by the operator. This is probably not possible without changes to the operator itself.

Pure Chart fix: expected output from my understanding of the current cass-operator config:

kind: ConfigMap
metadata:
  name: release-name-cass-operator-manager-config
  [...]
apiVersion: v1
data:
  controller_manager_config.yaml: |
    [...]
  image_config.yaml: |
    apiVersion: config.k8ssandra.io/v1beta1
    kind: ImageConfig
    images:
      system-logger: "k8ssandra/system-logger:v1.10.0"
      config-builder: "datastax/cass-config-builder:1.0.4-ubi7"
-     imageRegistry: asdf
+   imageRegistry: asdf
-   imagePullSecrets:
-       - name: hi
+   imagePullSecret:
+       name: hi
-     imagePullPolicy: IfNotPresent
+   imagePullPolicy: IfNotPresent
    defaults:
      [...]

┆Issue is synchronized with this Jira Task by Unito
┆friendlyId: K8SSAND-1501
┆priority: Medium

@Gellardo Gellardo added bug Something isn't working needs-triage labels May 11, 2022
@sync-by-unito sync-by-unito bot changed the title cass-operator ConfigMap image_config.yaml is broken K8SSAND-1501 ⁃ cass-operator ConfigMap image_config.yaml is broken May 11, 2022
@jsanda
Copy link
Contributor

jsanda commented Jun 8, 2022

Hi @Gellardo

Thanks for opening the issue.

It is possible to add multiple imagePullSecrets to the pods generated by the operator. This is probably not possible without changes to the operator itself.

That's right. It will require a change in cass-operator. I went ahead and created k8ssandra/cass-operator#341.

This may be fixed by #1421.

@adejanovski adejanovski added the zh:In-Progress Issues in the ZenHub pipeline 'In-Progress' label Jun 12, 2022
jsanda pushed a commit that referenced this issue Jun 15, 2022
* Corrects/Changes the Image Repository override

* Changes README.md

* Updates CHANGELOG-1.6.md

* [#1404] imagePullSecrets -> imagePullSecret

* Updates CHANGELOG-1.6.md

* Corrects imagePullSecret

* Corrects imagePullSecret
@jsanda
Copy link
Contributor

jsanda commented Jun 29, 2022

This was fixed by #1421.

@jsanda jsanda closed this as completed Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage zh:In-Progress Issues in the ZenHub pipeline 'In-Progress'
Projects
None yet
Development

No branches or pull requests

3 participants