Skip to content

Commit

Permalink
Merge pull request #174 from gabemontero/work-around-3.6-api-issue
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Sep 25, 2017
2 parents ab5442e + a4a406e commit 546037b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
~ hpi-plugin.version: The HPI Maven Plugin version used by the plugin..
~ stapler-plugin.version: The Stapler Maven plugin version required by the plugin.
-->
<openshift-client.version>2.6.2</openshift-client.version>
<openshift-client.version>2.3.1</openshift-client.version>
<log.level>INFO</log.level>
<findbugs-maven-plugin.version>3.0.1</findbugs-maven-plugin.version>
<findbugs.failOnError>false</findbugs.failOnError>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ public synchronized void start() {
}

private synchronized void onInitialBuildConfigs(BuildConfigList buildConfigs) {
if (buildConfigs == null)
return;
List<BuildConfig> items = buildConfigs.getItems();
if (items != null) {
for (BuildConfig buildConfig : items) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ public synchronized void eventReceived(Action action, Build build) {
}

public synchronized static void onInitialBuilds(BuildList buildList) {
if (buildList == null)
return;
List<Build> items = buildList.getItems();
if (items != null) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ public void eventReceived(Action action, ConfigMap configMap) {
}

private synchronized void onInitialConfigMaps(ConfigMapList configMaps) {
if (configMaps == null)
return;
if (trackedConfigMaps == null) {
trackedConfigMaps = new ConcurrentHashMap<>(configMaps.getItems()
.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ public void eventReceived(Action action, ImageStream imageStream) {
}

private synchronized void onInitialImageStream(ImageStreamList imageStreams) {
if (imageStreams == null)
return;
List<ImageStream> items = imageStreams.getItems();
if (items != null) {
for (ImageStream imageStream : items) {
Expand Down

0 comments on commit 546037b

Please sign in to comment.