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

Commit

Permalink
Fix #1696: Fix failures in PUT during applying ImageStreams
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanKanojia committed Oct 16, 2019
1 parent f75d09b commit 244a5bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ After this we will switch probably to real [Semantic Versioning 2.0.0](http://se
* Fix #1728: Ingress enricher is using Ingress kind
* Fix #1732: Correctly replacing template placeholders in helm chart
* Fix #1734: Add logging during jib builds
* Fix #1696: Fix put operations for ImageStreams in ApplyService

### 4.3.0 (04-10-2019)
* Updated custom-enricher sample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,9 @@ public void applyImageStream(ImageStream entity, String sourceName) {
} else {
log.info("Updating " + kind + " " + name + " from " + sourceName);
copyAllImageStreamTags(entity, old);
patchService.compareAndPatchEntity(namespace, entity, old);
entity = patchService.compareAndPatchEntity(namespace, entity, old);
openShiftClient.resource(entity).inNamespace(namespace).createOrReplace();
}
openShiftClient.resource(entity).inNamespace(namespace).createOrReplace();
} catch (Exception e) {
onApplyError("Failed to create " + kind + " from " + sourceName + ". " + e, e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void build(ImageConfiguration imageConfiguration) {
} else {
fullName = new ImageName(imageConfiguration.getName(), null).getFullName();
}
log.info("Image tagging successfull!");
log.info("Image tagging successful!");
jibBuildConfiguration = JibBuildServiceUtil.getJibBuildConfiguration(config, buildImageConfiguration, fullName, log);
JibBuildServiceUtil.buildImage(jibBuildConfiguration, log);
} catch (Exception ex) {
Expand Down Expand Up @@ -199,4 +199,4 @@ public JibBuildConfiguration build() {
}
}
}
}
}

0 comments on commit 244a5bc

Please sign in to comment.