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

Validate mac address on Hardware spec: #628

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

jacobweinstock
Copy link
Member

Description

This only allows lower case mac addresses. This simplifies matching/looking up mac addresses. Without this values could be upper case or mixed case. Upper case and mixed cases will cause clients to miss lookups if using the wrong case. This standardized to lowercase to remove this error prone interaction.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

@codecov
Copy link

codecov bot commented Jun 13, 2022

Codecov Report

Merging #628 (84895da) into main (9039877) will not change coverage.
The diff coverage is n/a.

❗ Current head 84895da differs from pull request most recent head 733e536. Consider uploading reports for the commit 733e536 to get more accurate results

@@           Coverage Diff           @@
##             main     #628   +/-   ##
=======================================
  Coverage   44.52%   44.52%           
=======================================
  Files          61       61           
  Lines        3519     3519           
=======================================
  Hits         1567     1567           
  Misses       1870     1870           
  Partials       82       82           
Impacted Files Coverage Δ
pkg/apis/core/v1alpha1/hardware_types.go 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9039877...733e536. Read the comment docs.

@jacobweinstock jacobweinstock force-pushed the validate-mac branch 3 times, most recently from 74c4b97 to dfa33fc Compare June 14, 2022 16:09
This only allows lower case mac addresses.
This simplifies matching/looking up mac addresses.
Without this values could be upper case or mixed case.
Upper case and mixed cases will cause clients to miss
lookups if using the wrong case. This standardized to lowercase
to remove this error prone interaction.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Copy link
Contributor

@micahhausler micahhausler left a comment

Choose a reason for hiding this comment

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

LGTM

@jacobweinstock jacobweinstock added the ready-to-merge Signal to Mergify to merge the PR. label Jun 14, 2022
@mergify mergify bot merged commit bd1c1c0 into tinkerbell:main Jun 14, 2022
@displague displague added this to the 0.7.0 milestone Aug 15, 2022
mergify bot added a commit that referenced this pull request Aug 29, 2022
I'm a maintainer of several other services often related to the Kuberenetes back-end/Kubernetes controllers and I'm taking ownership for a lot of release synchronization making it both appropriate and necessary for me to maintain aspects of the Tink repository.

Requirements:

- I have reviewed the [community membership guidelines](https://github.com/tinkerbell/proposals/blob/main/proposals/0024/GOVERNANCE.md)
- I have [enabled 2FA on my GitHub account](https://github.com/settings/security)
- I have subscribed to the [tinkerbell-contributors e-mail list](https://groups.google.com/g/tinkerbell-contributors)
- I am actively contributing to 1 or more Tinkerbell subprojects

Here is a list of non-trival PRs I have been the primary reviewer on:

#596
#628
#614

I have also made a number of code contributions to this repository, here are a few of them:

#638
#631
#626
#622
#612

I have also raised various issues and am driving the releasing across Tinkerbell including in this repository.

Requesting consideration of expedited responsibilities: yes

Sponsors:

- @mmlb (Maintainer)
- @micahhausler (Maintainer)
- @jacobweinstock (Core contributor in other Tinkerbell repositories)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants