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

WIP:Add architecture and os checks when fetching tags #60

Closed
wants to merge 1 commit into from

Conversation

tfadeyi
Copy link

@tfadeyi tfadeyi commented Nov 16, 2020

This updates the controller to check the architecture of the cluster
nodes and select only tags for the current architecture.

Going to handle the composite hashes in a following PR.

needs: #61

Signed-off-by: oluwole.fadeyi [email protected]

@jetstack-bot
Copy link
Contributor

@tfadeyi: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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.

@tfadeyi tfadeyi force-pushed the 58-add-arch-and-os-checks branch 2 times, most recently from 0192ae2 to 66007c1 Compare November 16, 2020 15:01
@tfadeyi tfadeyi changed the title WIP: Add architecture and os checks when fetching tags Add architecture and os checks when fetching tags Nov 16, 2020
@tfadeyi tfadeyi force-pushed the 58-add-arch-and-os-checks branch from 66007c1 to 79273fa Compare November 16, 2020 15:26
pkg/api/types.go Outdated Show resolved Hide resolved
pkg/controller/architecture/architecture.go Outdated Show resolved Hide resolved
pkg/controller/architecture/architecture.go Outdated Show resolved Hide resolved
pkg/controller/architecture/architecture.go Outdated Show resolved Hide resolved
Copy link
Contributor

@JoshVanL JoshVanL left a comment

Choose a reason for hiding this comment

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

Generally looking good, hope my comments make sense 😄

pkg/controller/architecture/architecture.go Outdated Show resolved Hide resolved
pkg/controller/architecture/architecture.go Outdated Show resolved Hide resolved
pkg/controller/architecture/architecture.go Outdated Show resolved Hide resolved
pkg/controller/architecture/architecture.go Outdated Show resolved Hide resolved
pkg/controller/architecture/architecture.go Outdated Show resolved Hide resolved
pkg/controller/controller.go Outdated Show resolved Hide resolved
pkg/controller/options/options.go Outdated Show resolved Hide resolved
pkg/controller/search/search.go Outdated Show resolved Hide resolved
pkg/metrics/metrics.go Outdated Show resolved Hide resolved
pkg/version/version.go Outdated Show resolved Hide resolved
pkg/version/version.go Outdated Show resolved Hide resolved
pkg/api/types.go Outdated Show resolved Hide resolved
@tfadeyi tfadeyi changed the title Add architecture and os checks when fetching tags WIP:Add architecture and os checks when fetching tags Nov 16, 2020
@tfadeyi tfadeyi force-pushed the 58-add-arch-and-os-checks branch from 79273fa to 0c3371c Compare November 16, 2020 23:50
@tfadeyi tfadeyi force-pushed the 58-add-arch-and-os-checks branch 3 times, most recently from f3c85b3 to 4f8160f Compare November 17, 2020 13:03
Copy link
Contributor

@JoshVanL JoshVanL left a comment

Choose a reason for hiding this comment

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

Looking good, few more comments from me 🙂

@@ -62,7 +62,7 @@ metadata:
name: version-checker
rules:
- apiGroups: [""]
resources: ["pods"]
resources: ["pods","nodes"]
Copy link
Contributor

Choose a reason for hiding this comment

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

We also need to update deploy/yaml/deploy.yaml

Copy link
Author

Choose a reason for hiding this comment

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

do you mean the Helm chart?

Isn't the deploy/yaml/deploy.yaml changed already?

pkg/api/types.go Outdated Show resolved Hide resolved
pkg/checker/architecture/architecture.go Outdated Show resolved Hide resolved
pkg/checker/architecture/architecture.go Outdated Show resolved Hide resolved
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

utils "github.com/jetstack/version-checker/pkg/checker/internal/testutils"
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

nit: can we testutils -> test

pkg/controller/nodes/informer.go Outdated Show resolved Hide resolved
pkg/controller/nodes/informer.go Outdated Show resolved Hide resolved
pkg/controller/nodes/informer.go Outdated Show resolved Hide resolved
pkg/controller/nodes/informer.go Outdated Show resolved Hide resolved
pkg/metrics/metrics.go Outdated Show resolved Hide resolved
@tfadeyi tfadeyi force-pushed the 58-add-arch-and-os-checks branch 2 times, most recently from 8ed61f9 to 5c5d535 Compare November 18, 2020 16:29
This updates the controller to check the architecture of the cluster
nodes and select only tags for the current architecture.

Signed-off-by: oluwole.fadeyi <[email protected]>
@tfadeyi tfadeyi force-pushed the 58-add-arch-and-os-checks branch from 5c5d535 to 4bab9ef Compare November 18, 2020 16:33
@JoshVanL
Copy link
Contributor

/hold
/approve
/lgtm

@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoshVanL, tfadeyi

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

@jetstack-bot
Copy link
Contributor

@tfadeyi: PR needs rebase.

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.

@hawksight
Copy link
Contributor

Hey @tfadeyi, this has been open a while and needs a rebase at least.

Are you interested in updating this branch and getting this feature into version-checker?
If not I can try to see if someone else can take over here.

@tfadeyi
Copy link
Author

tfadeyi commented Apr 11, 2024

Hey @tfadeyi, this has been open a while and needs a rebase at least.

Are you interested in updating this branch and getting this feature into version-checker? If not I can try to see if someone else can take over here.

Hey @hawksight I think we could have someone take over, or close this PR. I don't fully remember but there were some edge cases with multi-arch images that this PR won't cover

@hawksight
Copy link
Contributor

@tfadeyi - thanks for feedback.

We will close this as it's quite old but use it as a good reference point for a new implementation from a fresh branch.

Created #181 to track discussion / progress on the topic.

@hawksight hawksight closed this Apr 25, 2024
@davidcollom davidcollom mentioned this pull request Jun 25, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants