Merge pull request #3675 from shanewxy/config-map

Enable add labels and annotations while adding Secret and Config Maps
This commit is contained in:
Westly Wright 2019-12-31 11:28:02 -07:00 committed by GitHub
commit 6a55eab707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 9 deletions

View File

@ -58,6 +58,16 @@
}}
</div>
<div class="row mt-20">
<FormLabelsAnnotations
@classNames="accordion-wrapper"
@expandAll={{al.expandAll}}
@initialLabels={{primaryResource.labels}}
@model={{primaryResource}}
@editing={{notView}}
/>
</div>
{{#accordion-list showExpandAll=false as | al expandFn |}}
{{#if isView}}
{{form-related-workloads

View File

@ -57,6 +57,16 @@
}}
</div>
<div class="row mt-20">
<FormLabelsAnnotations
@classNames="accordion-wrapper"
@expandAll={{al.expandAll}}
@initialLabels={{primaryResource.labels}}
@model={{primaryResource}}
@editing={{editing}}
/>
</div>
{{#accordion-list showExpandAll=false as | al expandFn |}}
{{#if isView}}
{{form-related-workloads

View File

@ -9,10 +9,10 @@ export default Resource.extend({
router: service(),
clusterStore: service(),
state: 'active',
canClone: true,
namespace: reference('namespaceId', 'namespace', 'clusterStore'),
state: 'active',
canClone: true,
canHaveLabels: true,
namespace: reference('namespaceId', 'namespace', 'clusterStore'),
firstKey: alias('keys.firstObject'),

View File

@ -7,11 +7,11 @@ export default Resource.extend({
router: service(),
allWorkloads: service(),
state: 'active',
canClone: true,
firstKey: alias('keys.firstObject'),
keys: computed('data', function() {
state: 'active',
canClone: true,
canHaveLabels: true,
firstKey: alias('keys.firstObject'),
keys: computed('data', function() {
return Object.keys(get(this, 'data') || {}).sort();
}),