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

Move other values to global #423

Merged
merged 6 commits into from
Nov 30, 2023
Merged

Move other values to global #423

merged 6 commits into from
Nov 30, 2023

Conversation

nprokopic
Copy link
Contributor

Towards giantswarm/roadmap#2954

⚠️ This is a Helm values breaking change, so it will require adjusting Helm values for all cluster when doing the upgrade.

What this PR does / why we need it

We have ported all provider-independent Cluster API resources to cluster chart, which was phase 1 of restructuring of cluster- apps, see giantswarm/roadmap#2742 for more details. Now we want to use cluster chart in cluster-aws and remove all provider-independent Cluster API resources from cluster-aws.

In order to do so, first we have to refactor cluster-aws Helm values, so that cluster chart can read provider-independent values it needs. For that, we have to move current top-level properties to be under Values.global.

This pull request makes the following changes to Helm values:

  • Move Helm values property .Values.managementCluster to .Values.global.managementCluster.
  • Move Helm values property .Values.baseDomain to .Values.global.connectivity.baseDomain.

Checklist

  • Update changelog in CHANGELOG.md.

Trigger e2e tests

/run cluster-test-suites

Copy link
Contributor

(helm/cluster-aws/ci/test-wc-minimal-values.yaml) rendered manifest diff
/metadata/labels/helm.sh/chart  (AWSCluster/org-giantswarm/test-wc-minimal)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (AWSCluster/org-giantswarm/test-wc-minimal)
  ± value change
    - 0.48.1
    + 0.47.0

/metadata/labels/helm.sh/chart  (AWSMachinePool/org-giantswarm/test-wc-minimal-def00)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (AWSMachinePool/org-giantswarm/test-wc-minimal-def00)
  ± value change
    - 0.48.1
    + 0.47.0

/metadata/labels/helm.sh/chart  (AWSMachineTemplate/org-giantswarm/test-wc-minimal-control-plane-779bfa58)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (AWSMachineTemplate/org-giantswarm/test-wc-minimal-control-plane-779bfa58)
  ± value change
    - 0.48.1
    + 0.47.0

/spec/template/metadata/labels/helm.sh/chart  (AWSMachineTemplate/org-giantswarm/test-wc-minimal-control-plane-779bfa58)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (AWSMachineTemplate/org-giantswarm/test-wc-minimal-bastion-17f76896)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (AWSMachineTemplate/org-giantswarm/test-wc-minimal-bastion-17f76896)
  ± value change
    - 0.48.1
    + 0.47.0

/spec/template/metadata/labels/helm.sh/chart  (AWSMachineTemplate/org-giantswarm/test-wc-minimal-bastion-17f76896)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (Cluster/org-giantswarm/test-wc-minimal)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (Cluster/org-giantswarm/test-wc-minimal)
  ± value change
    - 0.48.1
    + 0.47.0

/metadata/labels/helm.sh/chart  (HelmRelease/org-giantswarm/test-wc-minimal-aws-ebs-csi-driver)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (HelmRelease/org-giantswarm/test-wc-minimal-cilium)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/spec/chart/spec/version  (HelmRelease/org-giantswarm/test-wc-minimal-cilium)
  ± value change
    - 0.17.0
    + 0.13.0

/metadata/labels/helm.sh/chart  (HelmRelease/org-giantswarm/test-wc-minimal-cloud-provider-aws)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (HelmRelease/org-giantswarm/test-wc-minimal-coredns)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (HelmRelease/org-giantswarm/test-wc-minimal-vertical-pod-autoscaler-crd)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (HelmRepository/org-giantswarm/test-wc-minimal-default)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (HelmRepository/org-giantswarm/test-wc-minimal-default-test)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (KubeadmConfig/org-giantswarm/test-wc-minimal-def00)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (KubeadmConfig/org-giantswarm/test-wc-minimal-def00)
  ± value change
    - 0.48.1
    + 0.47.0

/metadata/labels/helm.sh/chart  (KubeadmConfigTemplate/org-giantswarm/test-wc-minimal-bastion-c7cb92f0)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (KubeadmControlPlane/org-giantswarm/test-wc-minimal)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (KubeadmControlPlane/org-giantswarm/test-wc-minimal)
  ± value change
    - 0.48.1
    + 0.47.0

/spec/machineTemplate/metadata/labels/helm.sh/chart  (KubeadmControlPlane/org-giantswarm/test-wc-minimal)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/spec/machineTemplate/metadata/labels/app.kubernetes.io/version  (KubeadmControlPlane/org-giantswarm/test-wc-minimal)
  ± value change
    - 0.48.1
    + 0.47.0

/metadata/labels/helm.sh/chart  (MachineDeployment/org-giantswarm/test-wc-minimal-bastion)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (MachineDeployment/org-giantswarm/test-wc-minimal-bastion)
  ± value change
    - 0.48.1
    + 0.47.0

/spec/template/metadata/labels/helm.sh/chart  (MachineDeployment/org-giantswarm/test-wc-minimal-bastion)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (MachineHealthCheck/org-giantswarm/test-wc-minimal-control-plane)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (MachineHealthCheck/org-giantswarm/test-wc-minimal-control-plane)
  ± value change
    - 0.48.1
    + 0.47.0

/metadata/labels/helm.sh/chart  (MachinePool/org-giantswarm/test-wc-minimal-def00)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/app.kubernetes.io/version  (MachinePool/org-giantswarm/test-wc-minimal-def00)
  ± value change
    - 0.48.1
    + 0.47.0

/metadata/labels/helm.sh/chart  (ServiceAccount/org-giantswarm/test-wc-minimal-cleanup-helmreleases-hook)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (Role/org-giantswarm/test-wc-minimal-cleanup-helmreleases-hook)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (RoleBinding/org-giantswarm/test-wc-minimal-cleanup-helmreleases-hook)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/metadata/labels/helm.sh/chart  (Job/org-giantswarm/test-wc-minimal-cleanup-helmreleases-hook)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

/spec/template/metadata/labels/helm.sh/chart  (Job/org-giantswarm/test-wc-minimal-cleanup-helmreleases-hook)
  ± value change
    - cluster-aws-0.48.1
    + cluster-aws-0.47.0

@nprokopic nprokopic marked this pull request as ready for review November 23, 2023 16:53
@nprokopic nprokopic requested a review from a team as a code owner November 23, 2023 16:53
@nprokopic nprokopic requested a review from a team November 23, 2023 16:53
@nprokopic nprokopic force-pushed the move-nodepools-to-global branch from 4c832cb to e0ab346 Compare November 28, 2023 14:37
@nprokopic nprokopic force-pushed the move-other-values-to-global branch from 7542ea1 to c3790e5 Compare November 28, 2023 14:37
@nprokopic nprokopic force-pushed the move-nodepools-to-global branch from e0ab346 to 8fda797 Compare November 28, 2023 14:49
@nprokopic nprokopic force-pushed the move-other-values-to-global branch 2 times, most recently from 3fb78f0 to e9e35e3 Compare November 28, 2023 15:13
Copy link
Contributor

@AndiDog AndiDog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do the new values get filled in? I guess baseDomain comes from cluster-apps-operator but for managementCluster I forgot the config source.

The new .Values.x.y.z paths should be required via JSON schema, given how we use them in the manifest without {{ required ... }}, assuming non-empty values.

@fiunchinho
Copy link
Member

Where do the new values get filled in? I guess baseDomain comes from cluster-apps-operator but for managementCluster I forgot the config source.

From the app catalog https://github.com/giantswarm/giantswarm-management-clusters/pull/289

@nprokopic nprokopic force-pushed the move-nodepools-to-global branch from 273a64a to 8a87880 Compare November 29, 2023 23:38
@nprokopic nprokopic force-pushed the move-other-values-to-global branch from e9e35e3 to e11607b Compare November 29, 2023 23:39
@nprokopic nprokopic force-pushed the move-nodepools-to-global branch from 8a87880 to 2e52982 Compare November 29, 2023 23:59
@nprokopic nprokopic force-pushed the move-other-values-to-global branch from e11607b to 171f174 Compare November 30, 2023 00:00
@nprokopic nprokopic force-pushed the move-nodepools-to-global branch from 2e52982 to 23eaec1 Compare November 30, 2023 00:08
@nprokopic nprokopic force-pushed the move-other-values-to-global branch from 171f174 to de96379 Compare November 30, 2023 00:09
Base automatically changed from move-nodepools-to-global to master November 30, 2023 00:12
@nprokopic nprokopic force-pushed the move-other-values-to-global branch from de96379 to 4700041 Compare November 30, 2023 00:15
@nprokopic nprokopic merged commit d2b6b87 into master Nov 30, 2023
14 of 15 checks passed
@nprokopic nprokopic deleted the move-other-values-to-global branch November 30, 2023 00:18
@tinkerers-ci
Copy link

tinkerers-ci bot commented Nov 30, 2023

cluster-test-suites

Run name pr-cluster-aws-423-cluster-test-suites8z57h
Commit SHA de96379
Result Failed ❌

📋 View full results in Tekton Dashboard

Rerun trigger:
/run cluster-test-suites

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants