Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
manifests: force "Recreate" update strategy
Browse files Browse the repository at this point in the history
To let the upgrades go nicely and make good use of conditions reporting,
we need to make sure that k8s don't change things behind our back.
To do that, we force the update strategy to "Recreate".

Relevant OLM issues:
operator-framework/operator-lifecycle-manager#1028
operator-framework/operator-lifecycle-manager#952

Signed-off-by: Francesco Romani <fromani@redhat.com>
  • Loading branch information
ffromani authored and MarSik committed Sep 9, 2019
1 parent b062157 commit e5cc616
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
name: kubevirt-ssp-operator
spec:
serviceAccountName: kubevirt-ssp-operator
strategy:
type: Recreate
containers:
- name: kubevirt-ssp-operator
image: REPLACE_IMAGE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: '[{"apiVersion":"kubevirt.io/v1","kind":"KubevirtCommonTemplatesBundle","metadata":{"name":"kubevirt-common-template-bundle"},"spec":{"version":"v0.6.1"}},{"apiVersion":"kubevirt.io/v1","kind":"KubevirtMetricsAggregation","metadata":{"name":"kubevirt-metrics-aggregation"},"spec":{"version":"v0.0.1"}},{"apiVersion":"kubevirt.io/v1","kind":"KubevirtNodeLabellerBundle","metadata":{"name":"kubevirt-node-labeller-bundle"},"spec":{"version":"v0.0.5"}},{"apiVersion":"kubevirt.io/v1","kind":"KubevirtTemplateValidator","metadata":{"name":"kubevirt-template-validator","namespace":"kubevirt"},"spec":{"version":"v0.6.1"}}]'
alm-examples: '[{"apiVersion":"kubevirt.io/v1","kind":"KubevirtTemplateValidator","metadata":{"name":"kubevirt-template-validator","namespace":"kubevirt"},"spec":{"version":"v0.6.2"}},{"apiVersion":"kubevirt.io/v1","kind":"KubevirtCommonTemplatesBundle","metadata":{"name":"kubevirt-common-template-bundle"},"spec":{"version":"v0.6.2"}},{"apiVersion":"kubevirt.io/v1","kind":"KubevirtMetricsAggregation","metadata":{"name":"kubevirt-metrics-aggregation"},"spec":{"version":"v0.0.1"}},{"apiVersion":"kubevirt.io/v1","kind":"KubevirtNodeLabellerBundle","metadata":{"name":"kubevirt-node-labeller-bundle"},"spec":{"version":"v0.1.1"}}]'
capabilities: Basic Install
categories: Virtualization
description: Manages KubeVirt addons for Scheduling, Scale, Performance
Expand Down Expand Up @@ -178,7 +178,8 @@ spec:
selector:
matchLabels:
name: kubevirt-ssp-operator
strategy: {}
strategy:
type: Recreate
template:
metadata:
labels:
Expand Down

0 comments on commit e5cc616

Please sign in to comment.