Skip to content

Owner references are not correctly resolved when primary resource has empty group #2723

Closed
@mnk

Description

@mnk

Bug Report

What did you do?

When implementing a workflow where the primary resource is a standard K8s kind (ConfigMap)
I was unable to get the secondary resources from the context.

What did you expect to see?

I expected to be able to fetch the secondary resources via context.getSecondaryResource

What did you see instead? Under which circumstances?

The secondary resources are always null

Environment

Running latest from main branch 5.0.4-SNAPSHOT

Possible Solution

The problem seems to be caused by a bug in the apiVersion matching. I will post a fix proposal as PR.

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