Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert Fabric8 4.10 backward compatibility fix (#374) ad718b27 #444

Merged
merged 1 commit into from Jul 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 0 additions & 9 deletions core/src/main/java/cz/xtf/core/openshift/OpenShift.java
Expand Up @@ -1110,15 +1110,7 @@ public boolean deleteConfigMap(ConfigMap configMap) {
return configMaps().delete(configMap);
}

// Templates
private void updateTemplateApiVersion(Template template) {
if (OpenShifts.getVersion().startsWith("3")) {
template.setApiVersion("template.openshift.io/v1");
}
}

public Template createTemplate(Template template) {
updateTemplateApiVersion(template);
return templates().create(template);
}

Expand All @@ -1135,7 +1127,6 @@ public boolean deleteTemplate(String name) {
}

public boolean deleteTemplate(Template template) {
updateTemplateApiVersion(template);
return templates().delete(template);
}

Expand Down