Skip to content

openshift_process | 'openshift' in template output is replaced by '********' causing subsequent apply to fail #198

@kubealex

Description

@kubealex

Hi team,

I was using the openshift_process module, but it appears that for some reasons the result of the rendered template is alterated masking the word 'openshift' with asterisks. Of course using the output of the module to further apply the template fails.

Example (will omit non-related lines)

Output from oc process ns//template:
[...]
"spec": {
"sourceRef": {
"kind": "DataSource",
"name": "rhel9",
"namespace": "openshift-virtualization-os-images"
},
[...]

Output from openshift_process module
[...]
"spec": {
"sourceRef": {
"kind": "DataSource",
"name": "rhel9",
"namespace": "********-virtualization-os-images"
},
[...]

Of course, using the k8s module later using the output of the module fails because the ********virtualization-os-images namespace does not exist.

The workaround (super ugly) is to use a "| replace('********', 'openshift')" on the output.

I tried to dig where this happens, but I was not able to find any clue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions