Skip to content

Commit

Permalink
Locked the version of the deprecated templates so they do not show up…
Browse files Browse the repository at this point in the history
… in the UI when the latest version is queried for (#290)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1899460

Signed-off-by: Omer Yahud <[email protected]>
  • Loading branch information
omeryahud authored Nov 23, 2020
1 parent e9c5de8 commit a585ddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion templates/deprecated-windows.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ metadata:
labels:
template.kubevirt.io/type: "base"
template.kubevirt.io/version: "{{ lookup('env', 'VERSION') | default('devel', true) }}"
# Locking the template version as it is deprecated and should not receive any more updates
template.kubevirt.io/version: "v{{ version }}"

objects:
- apiVersion: kubevirt.io/v1alpha3
Expand Down
3 changes: 2 additions & 1 deletion templates/win2k12r2-deprecated.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ metadata:
labels:
template.kubevirt.io/type: "base"
template.kubevirt.io/version: "{{ lookup('env', 'VERSION') | default('devel', true) }}"
# Locking the template version as it is deprecated and should not receive any more updates
template.kubevirt.io/version: "v{{ version }}"

objects:
- apiVersion: kubevirt.io/v1alpha3
Expand Down

0 comments on commit a585ddf

Please sign in to comment.