Fixes k8s deployment without Replication Controller
UpdatePod execution plan was using field from Pod
definition that was present in v1beta1 API but is no
longer used in v1beta3
Change-Id: Ib57a0e5cc7104d5e1fa39b07644eab182a7fdf45
Closes-Bug: #1447594
(cherry picked from commit a680bf5899
)
This commit is contained in:
parent
735771b6f6
commit
083ec59ab0
|
@ -25,7 +25,7 @@ Body: |
|
|||
with open(fileName, 'w') as f:
|
||||
json.dump(args.podDefinition, f)
|
||||
|
||||
return updatePod('{0} {1} {2} {3}'.format(args.isNew, args.podDefinition['id'], args.podDefinition['kind'], fileName )).stdout
|
||||
return updatePod('{0} {1} {2}'.format(args.isNew, args.podDefinition['metadata']['name'], fileName)).stdout
|
||||
|
||||
Scripts:
|
||||
updatePod:
|
||||
|
|
|
@ -6,9 +6,8 @@ DEFINITION_DIR=/var/run/murano-kubernetes
|
|||
mkdir -p $DEFINITION_DIR
|
||||
|
||||
podId=$2
|
||||
kind=$3
|
||||
fileName=$4
|
||||
echo "$podId $kind $fileName" >> $DEFINITION_DIR/elements.list
|
||||
fileName=$3
|
||||
echo "$podId Pod $fileName" >> $DEFINITION_DIR/elements.list
|
||||
|
||||
if [ "$1" == "True" ]; then
|
||||
#new Pod
|
||||
|
|
Loading…
Reference in New Issue