Merge pull request #430 from codyrancher/api-groups

Adding ApiGroups to Constraints by default
This commit is contained in:
Vincent Fiduccia 2020-03-26 16:29:04 -07:00 committed by GitHub
commit c8b886c484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -62,13 +62,13 @@ export default {
});
const localValue = Object.keys(this.value).length > 0
? this.value
? { ...this.value }
: {
type: templateOptions[0].value,
spec: {
parameters: {},
match: {
kinds: [],
kinds: [{ apiGroups: [''] }],
namespaces: [],
excludedNamespaces: [],
labelSelector: { matchExpressions: [] },
@ -77,6 +77,10 @@ export default {
}
};
localValue.spec.match.kinds = (localValue?.spec?.match?.kinds || []).length === 0
? [{ apiGroups: [''] }]
: localValue.spec.match.kinds;
const extraDetailColumns = [
{
title: 'Template',