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

Commit

Permalink
Merge branch 'master' into pr/removeImageChangeTriggerFlag
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanKanojia authored May 21, 2019
2 parents 153e67d + 9f75dfb commit 2dca34d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ protected void applyEntities(KubernetesClient kubernetes, String namespace, Stri
}
}
}
processCustomEntities(kubernetes, namespace, resources.getCrdContexts(), false);
processCustomEntities(kubernetes, namespace, resources != null ? resources.getCrdContexts() : null, false);
}

protected String getExternalServiceURL(Service service) {
Expand Down Expand Up @@ -635,6 +635,9 @@ protected void createIngress(KubernetesClient kubernetesClient, Collection<HasMe
}

protected void processCustomEntities(KubernetesClient client, String namespace, List<String> customResourceDefinitions, boolean isDelete) throws Exception {
if(customResourceDefinitions == null)
return;

List<CustomResourceDefinitionContext> crdContexts = KubernetesClientUtil.getCustomResourceDefinitionContext(client ,customResourceDefinitions);
Map<File, String> fileToCrdMap = getCustomResourcesFileToNamemap();

Expand Down

0 comments on commit 2dca34d

Please sign in to comment.