Skip to content

Commit

Permalink
feat: helm Chart.yaml contains appVersion field
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Nov 24, 2023
1 parent 7c722af commit 9f1df0a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9f1df0a

Please sign in to comment.