Skip to content

Commit 682f5da

Browse files
authored
Merge pull request #545 from oracle/crd-update
Correct CRD update
2 parents 0c5f6ed + eb56dd8 commit 682f5da

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)