mirror of https://github.com/rancher/dashboard.git
Merge pull request #430 from codyrancher/api-groups
Adding ApiGroups to Constraints by default
This commit is contained in:
commit
c8b886c484
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue