crossplane-contrib / crossplane-contrib/function-sequencer

Usages between ClusterScope Compositions and Namespaces resources

Open
#114 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
37
Forks
19
Avg merge
1d 14h
Merged PRs (30d)
4

Description

### What happened?

If a Composition is closter scoped and created a namespaces scoped resource, a ClusterUsage will be created (thats correct), but the spec.by resources is missing a namespace. This results into unready usages, because of the missing namespace field for namespace scoped resources.

Ref: Missing check, if resource is namespaced:

https://github.com/crossplane-contrib/function-sequencer/blob/7759428d7885347c90cf346c951c458c8fe53ef7/fn.go#L233-L255

### How can we reproduce it?

Create a composition (cluster-scoped) which created namespace scoped resource and configure a sequence between it. (create cluster scoped namespace first, than a namesapce scoped configmap)

### What environment did it happen in?
Function version: 0.5.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.