Skip to content

Commit d2e3927

Browse files
committed
Update expected hashes based on updated Kube
Kube 1.34 had serialization changes, so we need to make sure the expected hash is updated. Signed-off-by: Nolan Brubaker <[email protected]>
1 parent 606aea0 commit d2e3927

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/controllers/resourceapply/resourceapply_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ var _ = Describe("applyDeployment", func() {
239239
actualFn: workloadDeploymentWithDefaultSpecHash,
240240
expectedFn: func(namespace string) *appsv1.Deployment {
241241
w := workloadDeployment(namespace)
242-
w.Annotations["operator.openshift.io/spec-hash"] = "a188738eb8e2da21166bc0bfaeb7c87a9c7422f426591e7e3cd52f300cb0785d"
242+
w.Annotations["operator.openshift.io/spec-hash"] = "16f6a903f99b589ce62472721b6931f402f6522a0f235563547749750e627f76"
243243
w.Spec.Template.Finalizers = []string{"newFinalizer"}
244244
return w
245245
},
@@ -340,7 +340,7 @@ var _ = Describe("applyDeployment", func() {
340340
},
341341
}
342342
w.Spec.Template.Labels = map[string]string{"bar": "baz"}
343-
w.Annotations[specHashAnnotation] = "ad5da8e55a1a2c05026368f3b68f5625f7fd038b38ac8a4aa1358e2e1a07a85d"
343+
w.Annotations[specHashAnnotation] = "657d8aba67cefec4cc0b45d099903bf66eef39e12c9a551af5e575083aa3da20"
344344
return w
345345
},
346346
expectError: false,
@@ -548,7 +548,7 @@ var _ = Describe("applyDaemonSet", func() {
548548
actualFn: workloadDaemonSetWithDefaultSpecHash,
549549
expectedFn: func(namespace string) *appsv1.DaemonSet {
550550
w := workloadDaemonSet(namespace)
551-
w.Annotations["operator.openshift.io/spec-hash"] = "cb44c29fda480ea0b4e7a08dda99db54c46d7ed21a8d9360b6b701864fe7cbbb"
551+
w.Annotations["operator.openshift.io/spec-hash"] = "13082cadc276dce3cfde0677648b8266d31da301866525b7daffd49154df3973"
552552
w.Spec.Template.Finalizers = []string{"newFinalizer"}
553553
return w
554554
},
@@ -649,7 +649,7 @@ var _ = Describe("applyDaemonSet", func() {
649649
},
650650
}
651651
w.Spec.Template.Labels = map[string]string{"bar": "baz"}
652-
w.Annotations[specHashAnnotation] = "4c860db5451a859e104e640b8315da4bb6ece3fb8143344c8fcdf1ba95431dd9"
652+
w.Annotations[specHashAnnotation] = "f05577839b4191210f9bb4cbb1762b0d95f27eef90c07bb4d276de977eb3947e"
653653
return w
654654
},
655655
expectError: false,
@@ -898,7 +898,7 @@ func workloadDeployment(namespace string) *appsv1.Deployment {
898898

899899
func workloadDeploymentWithDefaultSpecHash(namespace string) *appsv1.Deployment {
900900
w := workloadDeployment(namespace)
901-
w.Annotations[specHashAnnotation] = "8b26fe4cab14c9368f2ca916f59fafdc62f312544d7994a1580db80758b50f05"
901+
w.Annotations[specHashAnnotation] = "2bed3a3344bc23d6ae58fcc48502b82d9df78de07ab3ed22ebc5615e1848d764"
902902
return w
903903
}
904904

@@ -987,7 +987,7 @@ func workloadDaemonSet(namespace string) *appsv1.DaemonSet {
987987

988988
func workloadDaemonSetWithDefaultSpecHash(namespace string) *appsv1.DaemonSet {
989989
w := workloadDaemonSet(namespace)
990-
w.Annotations[specHashAnnotation] = "b9f17f24c21dbab45ba7b59d458142cf6aab160ec03a471272e561a062e57107"
990+
w.Annotations[specHashAnnotation] = "d692b0440643226a5be917290d22bf5eb221a22d3692e96ff093e98e8de32a6b"
991991
return w
992992
}
993993

0 commit comments

Comments
 (0)