Skip to content

Commit

Permalink
fix: correct incompatibilities with IC-2024.1 (#719)
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Mar 20, 2024
1 parent 22c1d4d commit 3be1afb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jetBrainsToken=invalid
jetBrainsChannel=stable
intellijPluginVersion=1.16.1
kotlinJvmPluginVersion=1.8.0
intellijCommonVersion=1.9.3
intellijCommonVersion=1.9.4-SNAPSHOT
telemetryPluginVersion=1.1.0.52
kotlin.stdlib.default.dependency = false
kotlinVersionIdea221=1.6.21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
******************************************************************************/
package com.redhat.devtools.intellij.kubernetes.model.util

import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.diagnostic.Logger
import io.fabric8.kubernetes.api.model.HasMetadata
import io.fabric8.kubernetes.api.model.apiextensions.v1.CustomResourceDefinitionSpec
import io.fabric8.kubernetes.client.utils.ApiVersionUtil
Expand All @@ -20,7 +20,6 @@ import io.fabric8.kubernetes.model.annotation.Group
import io.fabric8.kubernetes.model.annotation.Version
import io.fabric8.kubernetes.model.util.Helper
import java.util.stream.Collectors
import org.apache.tools.ant.util.ResourceUtils

const val MARKER_WILL_BE_DELETED = "willBeDeleted"
const val API_GROUP_VERSION_DELIMITER = '/'
Expand Down Expand Up @@ -245,7 +244,7 @@ fun getHighestPriorityVersion(spec: CustomResourceDefinitionSpec): String? {
val versions = spec.versions.map { it.name }
val version = KubernetesVersionPriority.highestPriority(versions)
if (version == null) {
logger<ResourceUtils>().warn(
Logger.getInstance("ResourceUtils").warn(
"Could not find version with highest priority in ${spec.group}/${spec.names.kind}."
)
}
Expand Down

0 comments on commit 3be1afb

Please sign in to comment.