kube-logging / logging-operator

Logging operator for Kubernetes
https://kube-logging.dev
Apache License 2.0
1.52k stars 326 forks source link

configHotReload of FluentbitAgent ignores imagePullSecrets #1771

Closed sebhoss closed 3 weeks ago

sebhoss commented 3 weeks ago

Describe the bug:

I created a FluentbitAgent like this:

apiVersion: logging.banzaicloud.io/v1beta1
kind: FluentbitAgent
metadata:
  name: default
  namespace: logging
spec:
  configHotReload:
    image:
      imagePullSecrets:
        - name: some-pull-secret
      repository: internal.registry.example/ghcr/kube-logging/config-reloader

The configured pull secret was not part of the pod spec for fluentbit and thus the config-reloader image could not be pulled.

Expected behaviour:

I expected that the configured pull secret appears as part of the pod spec for fluentbit pods and that the config-reloader image is pulled through our internal image registry.

Steps to reproduce the bug:

Additional context:

none

Environment details:

/kind bug

aslafy-z commented 3 weeks ago

Hello @sebhoss This was fixed and merged. It will be included in the next release. In the meantime, you can pass your imagepullsecret for configReloader in the fluentbit one at FluentbitAgent.spec.image.imagePullSecrets.

sebhoss commented 3 weeks ago

@aslafy-z thanks a lot for the quick response!

pepov commented 3 weeks ago

thx @aslafy-z !