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

feat: helm Chart.yaml contains appVersion field #356

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@ void k8sHelm() {
.resolve("helm").resolve(getApplication()).resolve("kubernetes");
assertThat(helmDirectory.resolve(getApplication() + "-0.0.0-SNAPSHOT.tar.gz").toFile(), anExistingFile());
assertThat(helmDirectory.resolve("Chart.yaml").toFile(), yaml(allOf(
aMapWithSize(3),
aMapWithSize(4),
hasEntry("apiVersion", "v1"),
hasEntry("name", getApplication()),
hasEntry("version", "0.0.0-SNAPSHOT")
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ void ocHelm() {
assertThat(helmDirectory.resolve(getApplication() + "-0.0.0-SNAPSHOT.tar.gz").toFile(),
anExistingFile());
assertThat(helmDirectory.resolve("Chart.yaml").toFile(), yaml(allOf(
aMapWithSize(3),
aMapWithSize(4),
hasEntry("apiVersion", "v1"),
hasEntry("name", getApplication()),
hasEntry("version", "0.0.0-SNAPSHOT")
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ final Pod assertThatShouldApplyResources() throws Exception {
final void assertHelm(File helmDirectory) {
assertThat(helmDirectory.exists(), equalTo(true));
assertThat(new File(helmDirectory, "Chart.yaml"), yaml(allOf(
aMapWithSize(4),
aMapWithSize(5),
hasEntry("apiVersion", "v1"),
hasEntry("name", "quarkus-rest"),
hasEntry("description", "Quarkus REST JSON project")
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@ void k8sHelm() throws Exception {
final File helmDirectory = new File(
String.format("../%s/target/jkube/helm/This is the chart name/kubernetes", getProject()));
assertThat(new File(helmDirectory, "Chart.yaml"), yaml(allOf(
aMapWithSize(9),
aMapWithSize(10),
hasEntry("apiVersion", "v1"),
hasEntry("name", "This is the chart name"),
hasEntry("version", "1.0-KUBERNETES"),
@@ -140,7 +140,7 @@ void ocHelm() throws Exception {
final File helmDirectory = new File(
String.format("../%s/target/jkube/helm/different-name-for-oc/openshift", getProject()));
assertThat(new File(helmDirectory, "Chart.yaml"), yaml(allOf(
aMapWithSize(8),
aMapWithSize(9),
hasEntry("apiVersion", "v1"),
hasEntry("name", "different-name-for-oc"),
hasEntry("version", "0.1-OC"),
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ final Pod assertThatShouldApplyResources() throws Exception {
static void assertHelm(File helmDirectory) {
assertThat(helmDirectory.exists(), equalTo(true));
assertThat(new File(helmDirectory, "Chart.yaml"), yaml(allOf(
aMapWithSize(4),
aMapWithSize(5),
hasEntry("apiVersion", "v1"),
hasEntry("name", "spring-boot-zero-config"),
hasEntry("description", "Spring Boot with Zero Config project")
Original file line number Diff line number Diff line change
@@ -132,7 +132,7 @@ void k8sHelm() {
assertThat(helmDirectory.resolve(getApplication() + "-0.0.0-SNAPSHOT.tar.gz").toFile(),
anExistingFile());
assertThat(helmDirectory.resolve("Chart.yaml").toFile(), yaml(allOf(
aMapWithSize(3),
aMapWithSize(4),
hasEntry("apiVersion", "v1"),
hasEntry("name", getApplication()),
hasEntry("version", "0.0.0-SNAPSHOT")
Original file line number Diff line number Diff line change
@@ -105,7 +105,7 @@ void ocHelm() {
assertThat(helmDirectory.resolve(getApplication() + "-0.0.0-SNAPSHOT.tar.gz").toFile(),
anExistingFile());
assertThat(helmDirectory.resolve("Chart.yaml").toFile(), yaml(allOf(
aMapWithSize(3),
aMapWithSize(4),
hasEntry("apiVersion", "v1"),
hasEntry("name", getApplication()),
hasEntry("version", "0.0.0-SNAPSHOT")
Original file line number Diff line number Diff line change
@@ -179,7 +179,7 @@ public MavenInvocationResult maven(String goal, Properties properties)
private static void assertHelm(File helmDirectory) {
assertThat(helmDirectory.exists(), equalTo(true));
assertThat(new File(helmDirectory, "Chart.yaml"), yaml(allOf(
aMapWithSize(4),
aMapWithSize(5),
hasEntry("apiVersion", "v1"),
hasEntry("name", "windows"),
hasEntry("description", "Windows Image Build")