Skip to content

Commit

Permalink
Update generated manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Lukianov committed Aug 4, 2019
1 parent e423e28 commit 3bace2f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
10 changes: 10 additions & 0 deletions manifests/generated/machine-remediation-operator-csv.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ spec:
machineremediation.kubevirt.io: machine-remediation-operator
machineremediation.kubevirt.io/version: {{.ContainerTag}}
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: machineremediation.kubevirt.io
operator: In
values:
- machine-remediation-operator
topologyKey: kubernetes.io/hostname
containers:
- args:
- --logtostderr=true
Expand Down
10 changes: 10 additions & 0 deletions manifests/generated/machine-remediation-operator.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ spec:
machineremediation.kubevirt.io: machine-remediation-operator
machineremediation.kubevirt.io/version: {{.ContainerTag}}
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: machineremediation.kubevirt.io
operator: In
values:
- machine-remediation-operator
topologyKey: kubernetes.io/hostname
containers:
- args:
- --logtostderr=true
Expand Down
1 change: 1 addition & 0 deletions pkg/operator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ go_library(
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
"//vendor/k8s.io/utils/pointer:go_default_library",
"//vendor/sigs.k8s.io/controller-runtime/pkg/client:go_default_library",
"//vendor/sigs.k8s.io/controller-runtime/pkg/controller:go_default_library",
"//vendor/sigs.k8s.io/controller-runtime/pkg/handler:go_default_library",
Expand Down
4 changes: 2 additions & 2 deletions pkg/operator/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ func TestReconcile(t *testing.T) {

// update all deployments status to have desired number of replicas
for _, d := range deploys.Items {
d.Status.Replicas = 1
d.Status.UpdatedReplicas = 1
d.Status.Replicas = 2
d.Status.UpdatedReplicas = 2
assert.NoError(t, r.client.Update(context.TODO(), &d))
}

Expand Down

0 comments on commit 3bace2f

Please sign in to comment.