-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(plus-17): L2 default child #389
Conversation
|
||
const chart = Testing.chart(); | ||
|
||
expect(Node.of(new ConfigMap(chart, 'ConfigMap')).defaultChild).toBeTruthy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be better to assert instanceof KubeConfigMap
or at least ApiObject
.
BTW, should we rename ApiObject
to KubeObject
?
@@ -142,6 +122,26 @@ function omitDuplicates(value: string, index: number, components: string[]) { | |||
return value !== components[index-1]; | |||
} | |||
|
|||
function omitDefaultChild(value: string, _: number, __: string[]) { | |||
return value.toLowerCase() !== 'resource' && value.toLowerCase() !== 'default'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it is actually case sensitive in constructs
.
Your pull request will be updated and merged automatically (do not update manually). |
…to epolon/l2-default-child
Your pull request will be updated and merged automatically (do not update manually). |
All L1 children are now called
Resource
to mark them as the default child of the L2.BREAKING CHANGE: All L2 resource names will undergo a name change (e.g
test-chart-config-configmap-233db8e7
->test-chart-config-c3f7d3c0
)Resolves #373
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license