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

[v1.7.x] Label Templates: add IP addresses to the Network variables (#885) #894

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

fgiudici
Copy link
Member

BACKPORT of #885
(cherry picked from commit 5e14e96)

  • util: add network util functions

Signed-off-by: Francesco Giudici [email protected]

  • Label Templates: add IPAddress to the Network vars

Signed-off-by: Francesco Giudici [email protected]

  • util/net: rework to allow mocking system ip address retrieval

Signed-off-by: Francesco Giudici [email protected]

  • util/net: return all the available network addresses

Signed-off-by: Francesco Giudici [email protected]

  • Label Templates: add IPAddresses.{num} to the Network vars

track all available network addresses

Signed-off-by: Francesco Giudici [email protected]

  • make generate-mocks

Signed-off-by: Francesco Giudici [email protected]

  • tests: add util/net coverage

Signed-off-by: Francesco Giudici [email protected]

  • error strings should not be capitalized

Signed-off-by: Francesco Giudici [email protected]


Signed-off-by: Francesco Giudici [email protected]

* util: add network util functions

Signed-off-by: Francesco Giudici <[email protected]>

* Label Templates: add IPAddress to the Network vars

Signed-off-by: Francesco Giudici <[email protected]>

* util/net: rework to allow mocking system ip address retrieval

Signed-off-by: Francesco Giudici <[email protected]>

* util/net: return all the available network addresses

Signed-off-by: Francesco Giudici <[email protected]>

* Label Templates: add IPAddresses.{num} to the Network vars

track all available network addresses

Signed-off-by: Francesco Giudici <[email protected]>

* make generate-mocks

Signed-off-by: Francesco Giudici <[email protected]>

* tests: add util/net coverage

Signed-off-by: Francesco Giudici <[email protected]>

* error strings should not be capitalized

Signed-off-by: Francesco Giudici <[email protected]>

---------

Signed-off-by: Francesco Giudici <[email protected]>
(cherry picked from commit 5e14e96)
@fgiudici fgiudici requested a review from a team as a code owner December 10, 2024 08:20
@fgiudici fgiudici self-assigned this Dec 10, 2024
@github-actions github-actions bot added area/operator operator related changes area/tests test related changes area/build build related changes labels Dec 10, 2024
@fgiudici fgiudici merged commit 1e52844 into rancher:v1.7.x Dec 10, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build build related changes area/operator operator related changes area/tests test related changes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants