Skip to content

Commit

Permalink
fallback option
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgitario committed Jun 30, 2023
1 parent fe4d841 commit e773ba5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.quarkus.kubernetes.deployment.config;

import io.smallrye.config.FallbackConfigSourceInterceptor;

public class KubernetesToOpenShiftFallbackConfigSourceInterceptor extends FallbackConfigSourceInterceptor {
public KubernetesToOpenShiftFallbackConfigSourceInterceptor() {
super(name -> {
return name.startsWith("quarkus.kubernetes") ? name.replaceAll("quarkus\\.kubernetes", "quarkus.openshift")
: name;
});
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.quarkus.kubernetes.deployment.config.KubernetesToOpenShiftFallbackConfigSourceInterceptor

0 comments on commit e773ba5

Please sign in to comment.