-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure Kubernetes manifests are generated in the project location
... when using the `quarkus.kubernetes.output-directory`. In gradle, when users set the output-directory property, the K8s resources were generated at `$HOME/.gradle/workers`. I tried these changes in Maven and Gradle and now, it works. Fix #34827
- Loading branch information
Showing
4 changed files
with
45 additions
and
20 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...netes/spi/src/main/java/io/quarkus/kubernetes/spi/KubernetesOutputDirectoryBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.quarkus.kubernetes.spi; | ||
|
||
import java.nio.file.Path; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
|
||
/** | ||
* Contains the effective output directory where to find the generated kubernetes resources. | ||
*/ | ||
public final class KubernetesOutputDirectoryBuildItem extends SimpleBuildItem { | ||
private final Path outputDirectory; | ||
|
||
public KubernetesOutputDirectoryBuildItem(Path outputDirectory) { | ||
this.outputDirectory = outputDirectory; | ||
} | ||
|
||
public Path getOutputDirectory() { | ||
return outputDirectory; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters