opendatahub-io / opendatahub-operator

Open Data Hub operator to manage ODH component integrations
https://opendatahub.io
Apache License 2.0
60 stars 139 forks source link

fix(feature): preserves original target namespace #1148

Closed bartoszmajsak closed 3 months ago

bartoszmajsak commented 3 months ago

Description

This change ensures that original target namespace is used when invoked directly in the builder.

Typically subsequent calls of .TargetNamespace in the feature builder indicate coding/copy-paste error and should be reduced to one.

However,in the FeatureHandler, where we group features together we do not have to specify target namespace for each feature, as it is defaulted to the one defined on the handler level. This is convenient, but limits application of features to a single namespace, as the value is always overwritten.

How Has This Been Tested?

By running make tests.

Screenshot or short clip

Merge criteria

bartoszmajsak commented 3 months ago

/retest

openshift-ci[bot] commented 3 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zdtsw

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/opendatahub-io/opendatahub-operator/blob/incubation/OWNERS)~~ [zdtsw] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment