Skip to content

Commit eb56dd8

Browse files
committed
Correct CRD update
1 parent 0c5f6ed commit eb56dd8

File tree

1 file changed

+2
-1
lines changed
  • operator/src/main/java/oracle/kubernetes/operator/helpers

1 file changed

+2
-1
lines changed

operator/src/main/java/oracle/kubernetes/operator/helpers/CRDHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ private boolean isOutdatedCRD(V1beta1CustomResourceDefinition existingCRD) {
152152
}
153153

154154
Step updateCRD(Step next, V1beta1CustomResourceDefinition existingCRD) {
155+
model.getMetadata().setResourceVersion(existingCRD.getMetadata().getResourceVersion());
155156
return new CallBuilder()
156157
.replaceCustomResourceDefinitionAsync(
157-
model.getMetadata().getName(), createModel(), createReplaceResponseStep(next));
158+
model.getMetadata().getName(), model, createReplaceResponseStep(next));
158159
}
159160

160161
ResponseStep<V1beta1CustomResourceDefinition> createReplaceResponseStep(Step next) {

0 commit comments

Comments
 (0)