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
|
const localValue = Object.keys(this.value).length > 0
|
||||||
? this.value
|
? { ...this.value }
|
||||||
: {
|
: {
|
||||||
type: templateOptions[0].value,
|
type: templateOptions[0].value,
|
||||||
spec: {
|
spec: {
|
||||||
parameters: {},
|
parameters: {},
|
||||||
match: {
|
match: {
|
||||||
kinds: [],
|
kinds: [{ apiGroups: [''] }],
|
||||||
namespaces: [],
|
namespaces: [],
|
||||||
excludedNamespaces: [],
|
excludedNamespaces: [],
|
||||||
labelSelector: { matchExpressions: [] },
|
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 = [
|
const extraDetailColumns = [
|
||||||
{
|
{
|
||||||
title: 'Template',
|
title: 'Template',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue