Skip to content

Commit

Permalink
Merge pull request #164 from ksimon1/fix-terminationGracePeriodSeconds
Browse files Browse the repository at this point in the history
increase terminationGracePeriodSeconds to 30 seconds
  • Loading branch information
omeryahud authored Aug 9, 2020
2 parents a2b28bb + 7127e2f commit 4ea319f
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 16 deletions.
5 changes: 5 additions & 0 deletions automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ git submodule update --init

make generate

#set terminationGracePeriodSeconds to 0
for filename in dist/templates/*; do
sed -i -e 's/^\(\s*terminationGracePeriodSeconds\s*:\s*\).*/\10/' $filename
done

cp automation/connect_to_rhel_console.exp automation/kubevirtci/connect_to_rhel_console.exp

cd automation/kubevirtci
Expand Down
3 changes: 3 additions & 0 deletions templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ status:
mac-address: AA:BB:CC:DD:EE:FF
```
## terminationGracePeriodSeconds
All linux templates have terminationGracePeriodSeconds set to 180 seconds, in windows templates it is set to 3600 seconds.
## Future enhancements
- Parameter replacement could support numerical expressions (either in the template or during parameter definition - one parameter building on top of another)
Expand Down
2 changes: 1 addition & 1 deletion templates/_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ objects:
interfaces:
- masquerade: {}
name: default
terminationGracePeriodSeconds: 0
terminationGracePeriodSeconds: 180
networks:
- name: default
pod: {}
Expand Down
2 changes: 1 addition & 1 deletion templates/centos6.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/centos7.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/centos8.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.11.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/fedora.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/opensuse.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/rhel6.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/rhel7.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/rhel8.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.10.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.11.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down
4 changes: 2 additions & 2 deletions templates/win2k12r2-deprecated.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down Expand Up @@ -132,7 +132,7 @@ objects:
bus: usb
name: tablet
{% endif %}
terminationGracePeriodSeconds: 0
terminationGracePeriodSeconds: 3600
volumes:
- name: rootdisk
persistentVolumeClaim:
Expand Down
4 changes: 2 additions & 2 deletions templates/windows.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down Expand Up @@ -130,7 +130,7 @@ objects:
bus: usb
name: tablet
{% endif %}
terminationGracePeriodSeconds: 0
terminationGracePeriodSeconds: 3600
volumes:
- name: rootdisk
persistentVolumeClaim:
Expand Down
4 changes: 2 additions & 2 deletions templates/windows10.tpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.0" %}
{% set version = "0.11.3" %}
apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand Down Expand Up @@ -126,7 +126,7 @@ objects:
bus: usb
name: tablet
{% endif %}
terminationGracePeriodSeconds: 0
terminationGracePeriodSeconds: 3600
volumes:
- name: rootdisk
persistentVolumeClaim:
Expand Down
5 changes: 5 additions & 0 deletions travis_ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ make generate
# Limit required memory of large templates
bash automation/x-limit-ram-size.sh

#set terminationGracePeriodSeconds to 0
for filename in dist/templates/*; do
sed -i -e 's/^\(\s*terminationGracePeriodSeconds\s*:\s*\).*/\10/' $filename
done

# Download images
case "$name" in
"fedora")
Expand Down

0 comments on commit 4ea319f

Please sign in to comment.