Skip to content

Commit

Permalink
Deployment -> PVC 연결시 yaml 반영 오류 사항 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonYoung Oh committed Nov 9, 2020
1 parent dee23f9 commit 57b2583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/designer/k8s-modeling/element/Deployment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@
outboundVolumeNames(names) {
var me = this;
var i=0;
me.value.object.spec.volumes = [];
me.value.object.spec.template.spec.volumes = [];
me.value.object.spec.template.spec.containers[0].volumeMounts = [];
me.value.outboundVolumes.forEach(element => {
me.value.object.spec.volumes.push({
me.value.object.spec.template.spec.volumes.push({
"name": "volume" + (++i),
"persistentVolumeClaim": {
"claimName": element.object.metadata.name
Expand Down

0 comments on commit 57b2583

Please sign in to comment.