-
Notifications
You must be signed in to change notification settings - Fork 2
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
remove faulty regex and remove labels from awsmachinetemplate specs #401
Conversation
/run cluster-test-suites |
/run cluster-test-suites |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, and xxx-spec
now actually means what it says 😄 Ping me when this is tested and ready for review.
cluster-test-suites
📋 View full results in Tekton Dashboard Rerun trigger: |
cluster-test-suites
📋 View full results in Tekton Dashboard Rerun trigger: |
(helm/cluster-aws/ci/test-wc-minimal-values.yaml) rendered manifest diff(file level)
- two documents removed:
---
# Source: cluster-aws/templates/list.yaml
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSMachineTemplate
metadata:
name: test-wc-minimal-control-plane-40875668
namespace: org-giantswarm
labels:
cluster.x-k8s.io/role: control-plane
app: cluster-aws
app.kubernetes.io/managed-by: Helm
cluster.x-k8s.io/cluster-name: test-wc-minimal
giantswarm.io/cluster: test-wc-minimal
giantswarm.io/organization: test
cluster.x-k8s.io/watch-filter: capi
helm.sh/chart: cluster-aws-0.45.0
application.giantswarm.io/team: phoenix
app.kubernetes.io/version: 0.45.0
spec:
template:
metadata:
labels:
cluster.x-k8s.io/role: control-plane
app: cluster-aws
app.kubernetes.io/managed-by: Helm
cluster.x-k8s.io/cluster-name: test-wc-minimal
giantswarm.io/cluster: test-wc-minimal
giantswarm.io/organization: test
cluster.x-k8s.io/watch-filter: capi
helm.sh/chart: cluster-aws-0.45.0
application.giantswarm.io/team: phoenix
spec:
ami: {}
imageLookupBaseOS: flatcar-stable
imageLookupFormat: capa-ami-{{.BaseOS}}-v{{.K8sVersion}}-gs
imageLookupOrg: 706635527432
cloudInit: {}
instanceType: r6i.xlarge
nonRootVolumes:
- type: gp3
deviceName: /dev/xvdc
encrypted: true
size: 100
- type: gp3
deviceName: /dev/xvdd
encrypted: true
size: 100
- type: gp3
deviceName: /dev/xvde
encrypted: true
size: 100
rootVolume:
type: gp3
size: 120
iamInstanceProfile: control-plane-test-wc-minimal
sshKeyName:
subnet:
filters:
- name: "tag:kubernetes.io/cluster/test-wc-minimal"
values:
- shared
- owned
- name: "tag:sigs.k8s.io/cluster-api-provider-aws/role"
values:
- private
# Source: cluster-aws/templates/list.yaml
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSMachineTemplate
metadata:
labels:
cluster.x-k8s.io/role: bastion
app: cluster-aws
app.kubernetes.io/managed-by: Helm
cluster.x-k8s.io/cluster-name: test-wc-minimal
giantswarm.io/cluster: test-wc-minimal
giantswarm.io/organization: test
cluster.x-k8s.io/watch-filter: capi
helm.sh/chart: cluster-aws-0.45.0
application.giantswarm.io/team: phoenix
app.kubernetes.io/version: 0.45.0
name: test-wc-minimal-bastion-40875668
namespace: org-giantswarm
spec:
template:
metadata:
labels:
cluster.x-k8s.io/role: bastion
app: cluster-aws
app.kubernetes.io/managed-by: Helm
cluster.x-k8s.io/cluster-name: test-wc-minimal
giantswarm.io/cluster: test-wc-minimal
giantswarm.io/organization: test
cluster.x-k8s.io/watch-filter: capi
helm.sh/chart: cluster-aws-0.45.0
application.giantswarm.io/team: phoenix
spec:
instanceType: t3.small
cloudInit: {}
imageLookupBaseOS: flatcar-stable
imageLookupFormat: capa-ami-{{.BaseOS}}-v{{.K8sVersion}}-gs
imageLookupOrg: 706635527432
iamInstanceProfile: test-wc-minimal-bastion
publicIP: true
sshKeyName:
subnet:
filters:
- name: "tag:sigs.k8s.io/cluster-api-provider-aws/role"
values:
- public
- name: "tag:sigs.k8s.io/cluster-api-provider-aws/cluster/test-wc-minimal"
values:
- owned
- shared
---
# Source: cluster-aws/templates/list.yaml
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSMachineTemplate
metadata:
name: test-wc-minimal-control-plane-779bfa58
namespace: org-giantswarm
labels:
cluster.x-k8s.io/role: control-plane
app: cluster-aws
app.kubernetes.io/managed-by: Helm
cluster.x-k8s.io/cluster-name: test-wc-minimal
giantswarm.io/cluster: test-wc-minimal
giantswarm.io/organization: test
cluster.x-k8s.io/watch-filter: capi
helm.sh/chart: cluster-aws-0.45.0
application.giantswarm.io/team: phoenix
app.kubernetes.io/version: 0.45.0
spec:
template:
metadata:
labels:
cluster.x-k8s.io/role: control-plane
app: cluster-aws
app.kubernetes.io/managed-by: Helm
cluster.x-k8s.io/cluster-name: test-wc-minimal
giantswarm.io/cluster: test-wc-minimal
giantswarm.io/organization: test
cluster.x-k8s.io/watch-filter: capi
helm.sh/chart: cluster-aws-0.45.0
application.giantswarm.io/team: phoenix
spec:
ami: {}
imageLookupBaseOS: flatcar-stable
imageLookupFormat: capa-ami-{{.BaseOS}}-v{{.K8sVersion}}-gs
imageLookupOrg: 706635527432
cloudInit: {}
instanceType: r6i.xlarge
nonRootVolumes:
- type: gp3
deviceName: /dev/xvdc
encrypted: true
size: 100
- type: gp3
deviceName: /dev/xvdd
encrypted: true
size: 100
- type: gp3
deviceName: /dev/xvde
encrypted: true
size: 100
rootVolume:
type: gp3
size: 120
iamInstanceProfile: control-plane-test-wc-minimal
sshKeyName:
subnet:
filters:
- name: "tag:kubernetes.io/cluster/test-wc-minimal"
values:
- shared
- owned
- name: "tag:sigs.k8s.io/cluster-api-provider-aws/role"
values:
- private
# Source: cluster-aws/templates/list.yaml
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSMachineTemplate
metadata:
labels:
cluster.x-k8s.io/role: bastion
app: cluster-aws
app.kubernetes.io/managed-by: Helm
cluster.x-k8s.io/cluster-name: test-wc-minimal
giantswarm.io/cluster: test-wc-minimal
giantswarm.io/organization: test
cluster.x-k8s.io/watch-filter: capi
helm.sh/chart: cluster-aws-0.45.0
application.giantswarm.io/team: phoenix
app.kubernetes.io/version: 0.45.0
name: test-wc-minimal-bastion-17f76896
namespace: org-giantswarm
spec:
template:
metadata:
labels:
cluster.x-k8s.io/role: bastion
app: cluster-aws
app.kubernetes.io/managed-by: Helm
cluster.x-k8s.io/cluster-name: test-wc-minimal
giantswarm.io/cluster: test-wc-minimal
giantswarm.io/organization: test
cluster.x-k8s.io/watch-filter: capi
helm.sh/chart: cluster-aws-0.45.0
application.giantswarm.io/team: phoenix
spec:
instanceType: t3.small
cloudInit: {}
imageLookupBaseOS: flatcar-stable
imageLookupFormat: capa-ami-{{.BaseOS}}-v{{.K8sVersion}}-gs
imageLookupOrg: 706635527432
iamInstanceProfile: test-wc-minimal-bastion
publicIP: true
sshKeyName:
subnet:
filters:
- name: "tag:sigs.k8s.io/cluster-api-provider-aws/role"
values:
- public
- name: "tag:sigs.k8s.io/cluster-api-provider-aws/cluster/test-wc-minimal"
values:
- owned
- shared
/spec/machineTemplate/infrastructureRef/name (KubeadmControlPlane/org-giantswarm/test-wc-minimal)
± value change
- test-wc-minimal-control-plane-40875668
+ test-wc-minimal-control-plane-779bfa58
/spec/template/spec/infrastructureRef/name (MachineDeployment/org-giantswarm/test-wc-minimal-bastion)
± value change
- test-wc-minimal-bastion-40875668
+ test-wc-minimal-bastion-17f76896
|
/run cluster-test-suites |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if tested with a workload cluster
cluster-test-suites
📋 View full results in Tekton Dashboard Rerun trigger: |
/run cluster-test-suites |
cluster-test-suites
📋 View full results in Tekton Dashboard Rerun trigger: |
/run cluster-test-suites |
cluster-test-suites
📋 View full results in Tekton Dashboard Rerun trigger: |
/run cluster-test-suites |
cluster-test-suites
📋 View full results in Tekton Dashboard Rerun trigger: |
/run cluster-test-suites |
cluster-test-suites
📋 View full results in Tekton Dashboard Rerun trigger: |
/run cluster-test-suites |
cluster-test-suites
📋 View full results in Tekton Dashboard Rerun trigger: |
What this PR does / why we need it
We introduced regexReplace with this commit to prevent unnecessary node rolling which caused no node rolling at all. Instead of removing respective label via regex, all label related sections were moved to AWSMachineTemplate manifests directly.
Checklist
Trigger e2e tests
/run cluster-test-suites