Skip to content

Commit

Permalink
feat(helm/bake): Add additional input fields where we can fill in det…
Browse files Browse the repository at this point in the history
…ails of the APIs versions (#4546)

* feat(helm/bake): Add additional input fields where we can fill in details of the APIs versions

- These input fields will not be pre-populated with versions of the target cluster available in the environment.

- They will become part of the bake result.

- Added API_VERSIONS_ENABLED env variable flag

* feat(helm/bake): Add additional input fields where we can fill in details of the APIs versions

- These input fields will not be pre-populated with versions of the target cluster available in the environment.

- They will become part of the bake result.

- Added API_VERSIONS_ENABLED env variable flag

---------

Co-authored-by: ovidiupopa07 <105648914+ovidiupopa07@users.noreply.github.com>
(cherry picked from commit cd9781f)
  • Loading branch information
ciurescuraul authored and mergify[bot] committed Oct 11, 2023
1 parent b15787f commit bc41651
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
@Data
@EqualsAndHashCode(callSuper = true)
public class HelmBakeManifestRequest extends BakeManifestRequest {

@JsonProperty("apiVersions")
private String apiVersions;

@JsonProperty("kubeVersion")
private String kubeVersion;

@JsonProperty("namespace")
private String namespace;

Expand Down Expand Up @@ -59,6 +66,8 @@ public HelmBakeManifestRequest(
outputArtifactName,
bakeManifestContext.getOutputName());
this.setOverrides(overrides);
this.setApiVersions(bakeManifestContext.getApiVersions());
this.setKubeVersion(bakeManifestContext.getKubeVersion());
this.setNamespace(bakeManifestContext.getNamespace());
this.setInputArtifacts(inputArtifacts);
this.setRawOverrides(bakeManifestContext.getRawOverrides());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public class BakeManifestContext {
private final Boolean evaluateOverrideExpressions;
private final String templateRenderer;
private final String outputName;
private final String apiVersions;
private final String kubeVersion;
private final String namespace;
private final String environment;
private final Boolean rawOverrides;
Expand All @@ -53,6 +55,8 @@ public BakeManifestContext(
@JsonProperty("evaluateOverrideExpressions") Boolean evaluateOverrideExpressions,
@JsonProperty("templateRenderer") String templateRenderer,
@JsonProperty("outputName") String outputName,
@Nullable @JsonProperty("apiVersions") String apiVersions,
@Nullable @JsonProperty("kubeVersion") String kubeVersion,
@JsonProperty("namespace") String namespace,
@Nullable @JsonProperty("environment") String environment,
@Nullable @JsonProperty("inputArtifact") CreateBakeManifestTask.InputArtifact inputArtifact,
Expand All @@ -71,6 +75,8 @@ public BakeManifestContext(
this.evaluateOverrideExpressions = evaluateOverrideExpressions;
this.templateRenderer = templateRenderer;
this.outputName = outputName;
this.apiVersions = apiVersions;
this.kubeVersion = kubeVersion;
this.namespace = namespace;
this.environment = environment;
this.kustomizeFilePath = kustomizeFilePath;
Expand Down

0 comments on commit bc41651

Please sign in to comment.