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

🐛 Add AGE column to our CRDs #5180

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

Jont828
Copy link
Contributor

@Jont828 Jont828 commented Aug 30, 2021

What this PR does / why we need it: This adds the AGE column to all our CRDs to make the printed output consistent with the built in K8s resources.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #5159

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 30, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @Jont828. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 30, 2021
@Jont828 Jont828 changed the title Add AGE column to our CRDs 🐛 Add AGE column to our CRDs Aug 30, 2021
@vincepri
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 30, 2021
@sbueringer
Copy link
Member

sbueringer commented Aug 31, 2021

@Jont828 Looks good.

Can you please also add the column to: (those are the remaining two CRDs which also already have additionalPrinterColumns)

  • providers.clusterctl.cluster.x-k8s.io
  • kubeadmcontrolplanes.controlplane.cluster.x-k8s.io

I wonder if it makes sense to add the column to all our CRDs, even when they currently don't have additionalPrinterColumns. The reason would be that we might forget to add the age column when we add other columns to those CRDs otherwise. This would affect:

  • clusterresourcesetbindings.addons.cluster.x-k8s.io
  • clusterresourcesets.addons.cluster.x-k8s.io
  • clusterclasses.cluster.x-k8s.io
  • kubeadmcontrolplanetemplates.controlplane.cluster.x-k8s.io
  • kubeadmconfigs.bootstrap.cluster.x-k8s.io
  • kubeadmconfigtemplates.bootstrap.cluster.x-k8s.io
  • CRDs in test/infrastructure/docker/config/crd/bases

Copy link
Member

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

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

lgtm apart addressing comment about description (if there is agreement for it)
+1 to add AGE to all CRDs

Note: apart for ClusterClass that should be included in this PR, It will be ok to address other API types in follow up PRs given that we track the missing bits in a issue

@CecileRobertMichon
Copy link
Contributor

+1 to add AGE to all CRDs
+2

Let's also add AGE to Docker provider CRDs (either in this PR or in a later one)

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 31, 2021
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 31, 2021
@sbueringer
Copy link
Member

@Jont828 Thx. There's one last additional one (test/infrastructure/docker/exp/api/v1alpha4/dockermachinepool_types.go)

@fabriziopandini We have two MachinePool YAMLs in test/infrastructure/docker/config/crd/bases. Imho we can/should delete test/infrastructure/docker/config/crd/bases/infrastructure.cluster.x-k8s.io_dockermachinepools.yaml.

@CecileRobertMichon
Copy link
Contributor

@sbueringer Jonathan and I found the issue with the dockermachinepool kubebuilder generation when looking at this, I believe he's going to open a separate PR to fix it (the groupName kubebuilder comment is wong in groupversion_info.go). For now excluding dockermachinepools from this change because generation isn't working until we fix the above issue.

@Jont828
Copy link
Contributor Author

Jont828 commented Sep 1, 2021

Yep, as Cecile mentioned, I'm going to create a separate PR after this to fix the bug with dockermachinepools and add the age to it.

@Jont828
Copy link
Contributor Author

Jont828 commented Sep 1, 2021

Do all the changes look good? If so, I'll squash and get ready to merge.

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

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

lgtm

@sbueringer
Copy link
Member

sbueringer commented Sep 1, 2021

lgtm

And thx for taking care of this :). I was going mad debugging weird bugs in the ClusterClass topology controller without the age column, it's very helpful!!

@Jont828
Copy link
Contributor Author

Jont828 commented Sep 1, 2021

Np, happy to help! I just squashed everything into one commit. Hopefully everything passes and we're good to go.

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 1, 2021
Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 1, 2021
@k8s-ci-robot k8s-ci-robot merged commit ec87b00 into kubernetes-sigs:master Sep 1, 2021
@k8s-ci-robot k8s-ci-robot added this to the v0.4 milestone Sep 1, 2021
kashifest added a commit to metal3-io/cluster-api-provider-metal3 that referenced this pull request Sep 9, 2021
This adds the AGE column to all our CRDs to make the printed output consistent with the built in K8s resources.

Keeping things consistent with CAPI# kubernetes-sigs/cluster-api#5180
kashifest added a commit to Nordix/cluster-api-provider-metal3 that referenced this pull request Sep 9, 2021
This adds the AGE column to all our CRDs to make the printed output consistent with the built in K8s resources.

Keeping things consistent with CAPI# kubernetes-sigs/cluster-api#5180
kashifest added a commit to Nordix/metal3-ipam that referenced this pull request Sep 9, 2021
This adds the AGE column to all our CRDs to make the printed output consistent with the built in K8s resources.

Keeping things consistent with CAPI# kubernetes-sigs/cluster-api#5180
kashifest added a commit to Nordix/cluster-api-provider-metal3 that referenced this pull request Sep 9, 2021
This adds the AGE column to all our CRDs to make the printed output consistent with the built in K8s resources.

Keeping things consistent with CAPI# kubernetes-sigs/cluster-api#5180
kashifest added a commit to Nordix/metal3-ipam that referenced this pull request Sep 9, 2021
This adds the AGE column to all our CRDs to make the printed output consistent with the built in K8s resources.

Keeping things consistent with CAPI# kubernetes-sigs/cluster-api#5180
kashifest added a commit to Nordix/baremetal-operator that referenced this pull request Sep 9, 2021
This adds the AGE column to BMH CRDs to make the printed output consistent with the built in K8s resources.

Keeping things consistent with CAPI# kubernetes-sigs/cluster-api#5180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AGE column to all our CRDs
7 participants