Skip to content

Add ability to set operator arguments via CRD or ConfigMap in the OpenShift OLM operator #2138

@ddreggors

Description

@ddreggors

Currently, it seems the only mechanism in OpenShift to set the operator arguments like --datadogMonitorEnabled=true (and others) is via CSV:

As seen in this comment on issue 531:

#531 (comment)

 oc get csv -n openshift-operators datadog-operator.v1.12.1 -o json | grep args -B 5 -A 3
                                    }
                                },
                                "spec": {
                                    "containers": [
                                        {
                                            "args": [
                                                "--enable-leader-election",
                                                "--pprof",
                                                "--datadogMonitorEnabled=true"

This really should be addressed; a CSV is a post-install object managed by the OLM and is not the best approach to setting flags for operators. This should be configurable either via a CRD or a ConfigMap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions