Skip to content

Support referencing a Kubernetes Secret by key in environment variable configuration #3417

@oscerd

Description

@oscerd

Component

OpenShift Maven Plugin

Is your enhancement related to a problem? Please describe

It's not possible as of today to do something like https://quarkus.io/guides/deploying-to-openshift#environment-variables-from-secret

Describe the solution you'd like

this means being able to do something like.

                <groupId>org.eclipse.jkube</groupId>
                <artifactId>openshift-maven-plugin</artifactId>
                <version>${camel.springboot.jkube.version}</version>
                <configuration>
                    <resources>
                        <env>
                            <AZURE_CLIENT_ID>{secret_name:secret_key}</AZURE_CLIENT_ID>
                            <AZURE_TENANT_ID>{secret_name:secret_key}</AZURE_TENANT_ID>
                            <AZURE_CLIENT_SECRET>{secret_name:secret_key}</AZURE_CLIENT_SECRET>
                        </env>
                    </resources>
                </configuration>

Describe alternatives you've considered

Setting env variables directly in the xml, but it's not a good security practice

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions