-
Notifications
You must be signed in to change notification settings - Fork 80
[BUG] Can't find workloadDefinition is name was not match pattern <puraral-kind>.<resource-group> #207
Comments
This happens when WorkloadDefinition's name doesn't follow the convention of
After these manifest are applied, it will hit the issue as below.
|
When WorkloadDefinition doesn't follow the pattern <puraral-kind>.<resource-group> or there are different workloadDefinitions pointing to the same workload Schema, it will hit the issue of could not finding workloaddefinition. Fix issue crossplane#207, feature crossplane#195. Signed-off-by: zzxwill <zzxwill@gmail.com>
Updated 2020.9.21, per comments from @ryanzhang-oss , using the annotation Solution introAfter discussion with @wonderflow , here is the solution of draft PR #208 #195 requires users to add The converted Component should be like as below.
When reconciling, OAM runtime will first check whether there is a filed |
When there is spec.type in Workload, an annotation will set for the workload which can help find the WorkloadDefinition. Fix issue crossplane#207, related to feature crossplane#195. Co-authored-by: Sun Jianbo <wonderflow.sun@gmail.com> Signed-off-by: zzxwill <zzxwill@gmail.com>
When there is spec.type in Workload, an annotation will set for the workload which can help find the WorkloadDefinition. Fix issue crossplane#207, related to feature crossplane#195. Co-authored-by: Sun Jianbo <wonderflow.sun@gmail.com> Signed-off-by: zzxwill <zzxwill@gmail.com>
When there is spec.type in Workload, an annotation will set for the workload which can help find the WorkloadDefinition. Fix issue crossplane#207, related to feature crossplane#195. Co-authored-by: Sun Jianbo <wonderflow.sun@gmail.com> Signed-off-by: zzxwill <zzxwill@gmail.com>
When there is spec.type in Workload, an annotation will set for the workload which can help find the WorkloadDefinition. Fix issue crossplane#207, related to feature crossplane#195. Co-authored-by: Sun Jianbo <wonderflow.sun@gmail.com> Signed-off-by: zzxwill <zzxwill@gmail.com>
* Fix `could not find WorkloadDefinition` issue When there is spec.type in Workload, an annotation will set for the workload which can help find the WorkloadDefinition. Fix issue #207, related to feature #195. Co-authored-by: Sun Jianbo <wonderflow.sun@gmail.com> Signed-off-by: zzxwill <zzxwill@gmail.com> * Address comments and add unit-test Signed-off-by: zzxwill <zzxwill@gmail.com> * Fix goimports issue Signed-off-by: zzxwill <zzxwill@gmail.com> * Change function name and add unit-test Signed-off-by: zzxwill <zzxwill@gmail.com> * Removed maker annotation `definition.oam.dev/name` Signed-off-by: zzxwill zzxwill@gmail.com Signed-off-by: zzxwill <zzxwill@gmail.com> Co-authored-by: Sun Jianbo <wonderflow.sun@gmail.com>
Describe the bug
In #195 and #198 , we have created some workload definition have custom name.
When working with Definition like this. The controller can't work, it says can't find workloadDefinition as we don't follow the old convention that definition name will always equal to CRD name which match the pattern
<puraral-kind>.<resource-group>
The text was updated successfully, but these errors were encountered: