| 1 |
issue 1309 |
| 2 |
|
| 3 |
NB: because of #NamespacedResource: #ClusterResource, it seems like it |
| 4 |
would be possible to remove line 4. But we can't because that would |
| 5 |
make line 5 an error - the use of the X_Platform field. So I think |
| 6 |
this is the best we can do. |
| 7 |
|
| 8 |
-- a.cue -- |
| 9 |
#ClusterResource: X_Platform: string |
| 10 |
#NamespacedResource: { |
| 11 |
#ClusterResource |
| 12 |
X_Platform: string |
| 13 |
metadata: namespace: X_Platform |
| 14 |
} |
| 15 |
|
| 16 |
Resources: [Platform=string]: { |
| 17 |
#NamespacedResource |
| 18 |
X_Platform: Platform |
| 19 |
} |
| 20 |
|
| 21 |
Resources: myplatform: {} |
| 22 |
-- out/trim-v3 -- |
| 23 |
== a.cue |
| 24 |
#ClusterResource: X_Platform: string |
| 25 |
#NamespacedResource: { |
| 26 |
#ClusterResource |
| 27 |
X_Platform: string |
| 28 |
metadata: namespace: X_Platform |
| 29 |
} |
| 30 |
|
| 31 |
Resources: [Platform=string]: { |
| 32 |
#NamespacedResource |
| 33 |
X_Platform: Platform |
| 34 |
} |
| 35 |
|
| 36 |
Resources: myplatform: {} |
| 37 |
-- out/trim-v3-noshare -- |
| 38 |
== a.cue |
| 39 |
#ClusterResource: X_Platform: string |
| 40 |
#NamespacedResource: { |
| 41 |
#ClusterResource |
| 42 |
X_Platform: string |
| 43 |
metadata: namespace: X_Platform |
| 44 |
} |
| 45 |
|
| 46 |
Resources: [Platform=string]: { |
| 47 |
#NamespacedResource |
| 48 |
X_Platform: Platform |
| 49 |
} |
| 50 |
|
| 51 |
Resources: myplatform: {} |