Comments (4)
@amihalfa : Is it possible for you to debug this to check what's wrong with Enricher behavior?
- Set a breakpoint in Enricher
- Run
mvnDebug k8s:resource
from terminal - Connect Via Remote JVM Debug from your IDE
I see that in code we're only setting name when it's blank:
from jkube.
Hello @rohanKanojia
When I debug :
- configuredName has the value set in my
pom.xml
- defaultName has the value of my
${project.artifactId}
The resource name is always overwritten if a configuredName is set. From my point of view, if the resource already has a name, we keep the name, even if there is a configuredName.
My expected behaviour is to have in NameEnricher
something like this :
builder.accept(new TypedVisitor<ObjectMetaBuilder>() {
@Override
public void visit(ObjectMetaBuilder resource) {
if (StringUtils.isBlank(resource.getName())) {
if (StringUtils.isNotBlank(configuredName)) {
resource.withName(configuredName);
} else {
resource.withName(defaultName);
}
}
}
});
Thanks !
from jkube.
@amihalfa : Your approach looks correct to me. Is it possible to contribute a pull request for this?
from jkube.
Related Issues (20)
- DockerFileUtilTest : Use JUnit5's `@TempDir` annotation for creating temporary directories HOT 3
- Fix `JavaExecGeneratorMainClassDeterminationTest` failing on windows HOT 7
- Fix unit tests failing for windows in `kubernetes-maven-plugin` module HOT 1
- ProfileUtilTest.findProfile_whenValidProfileArg_returnsValidProfile The declared Exception exception is never thrown HOT 7
- RemoteDevMojo.executeInternal The declared Exception exception is never thrown HOT 4
- ResourceMojo.extractEnricherConfig The declared Exception exception is never thrown
- ResourceMojo.extractGeneratorConfig The declared Exception exception is never thrown HOT 1
- TestHttpStaticServer.close The declared Exception exception is never thrown
- WildflyJARHealthCheckEnricherTest.setUp The declared Exception exception is never thrown HOT 1
- Improve Hello-World maven Quickstart to not restart and have CrashLoopBackOffs HOT 4
- Update `quickstarts/maven/quarkus` to latest version HOT 6
- Update `quickstarts/maven/quarkus-customized-image` to latest version HOT 1
- ContainerHandler : Return empty collection instead of `null`
- DefaultServiceEnricher : Remove expression which always evaluates to `false` HOT 2
- DefaultServiceEnricher : Remove unused import HOT 1
- EnvUtil : Replace `size() > 0` with `!isEmpty()` HOT 1
- Cannot use helm template in yaml fragments HOT 3
- Changing the default port of the embedded server does not change the K8S probes default port HOT 29
- Create a test for SecretEnricher class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jkube.