UNCLASSIFIED - NO CUI

Skip to content

[Bug] cfk-2.7.0, cfk-2.6.1 entrypoint does not pass launch arguments

Summary

Hello, I have an open support issue on this, but I thought I would post here as well.

In !15 (merged), the operator entry point was changed from /opt/manager to /entrypoint.sh. The script entrypoint.sh does not pass deployment args to /opt/manager, which breaks our deployment. We need to run the operator with the --namespaces arg to sandbox the operator away from cluster resources.

Steps to reproduce

Deploy the operator to an RBAC enabled Kubernetes cluster with default deny on cluster resources. Start the operator with the Confluent Helm chart using the Iron Bank image. The chart defaults to a namespaced environment and generates the role/rolebindings automatically.

What is the current bug behavior?

The operator will crash from attempting to query cluster resources.

What is the expected correct behavior?

The operator doesn't query cluster resources and runs just fine.

Relevant logs and/or screenshots

Possible fixes

modify entrypoint.sh:

#!/bin/bash

/opt/manager $@

the $@ is shorthand for $1 $2 $3 .... this should correctly pass along the arguments.

Tasks

  • Bug has been identified and corrected within the container

Please read the Iron Bank Documentation for more info

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information