-
Notifications
You must be signed in to change notification settings - Fork 13
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
*: rename packet
to equinixmetal
#277
Conversation
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.
Like it, thanks for keeping the old flags supported for the transition.
CHANGELOG.md
Outdated
@@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | |||
- plume: Add new AWS regions, af-south-1, ap-southeast-3, eu-south-1 ([#274](https://github.com/flatcar-linux/mantle/pull/274)) | |||
- kubernetes test for release 1.23.0 ([#275](https://github.com/flatcar-linux/mantle/pull/275)) | |||
|
|||
### Changed | |||
- removed `packet` occurences in favor of `equinixmetal` ([#277](https://github.com/flatcar-linux/mantle/pull/277)) |
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.
- removed `packet` occurences in favor of `equinixmetal` ([#277](https://github.com/flatcar-linux/mantle/pull/277)) | |
- removed `packet` occurrences in favor of `equinixmetal` ([#277](https://github.com/flatcar-linux/mantle/pull/277)) |
cmdCreateDevice.Flags().StringVar(&options.ImageURL, "image-url", "", "image base URL (default board-dependent, e.g. \"https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_production_packet_image.bin.bz2\")") | ||
cmdCreateDevice.Flags().StringVar(&options.InstallerImageKernelURL, "installer-image-kernel-url", "", "EquinixMetal installer image kernel URL, (default installer-image-base-url/flatcar_production_pxe.vmlinuz)") | ||
cmdCreateDevice.Flags().StringVar(&options.InstallerImageCpioURL, "installer-image-cpio-url", "", "EquinixMetal installer image cpio URL, (default installer-image-base-url/flatcar_production_pxe_image.cpio.gz)") | ||
cmdCreateDevice.Flags().StringVar(&options.ImageURL, "image-url", "", "image base URL (default board-dependent, e.g. \"https://alpha.release.flatcar-linux.net/amd64-usr/current/flatcar_production_equinixmetal_image.bin.bz2\")") |
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.
Hm, this link is 404 as we still produce "packet" images, not "equinixmetal" ones.
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 catch, I tried to preserve the URL links but I missed this one. It's just an example value but let's keep things correct. :)
06f2f6f
to
1f8745d
Compare
@krnowak your suggestions are committed. I also took the opportunity to split into two commits: sed + backward compatibility to ease the revert of the last one later. |
@@ -22,26 +22,26 @@ import ( | |||
"path/filepath" | |||
) | |||
|
|||
const PacketConfigPath = ".config/packet.json" | |||
const EquinixMetalConfigPath = ".config/equinixmetal.json" |
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.
I'm wondering if this won't break if someone had a config named packet.json
. This value is used as a default value for --packet-config-file
(now --equinixmetal-config-file
). I haven't seen --packet-config-file
being used in our Jenkins setup, so not sure we should care.
It is also used in ore equinixmetal --config-file
too.
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.
I had a doubt for this one, at first I started to support both - but I dropped the idea since it's a default config... Not sure about what we should do.
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.
Eh, if something breaks then we can revert this one line.
@@ -0,0 +1,70 @@ | |||
// Copyright 2017 CoreOS, Inc. |
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.
Let's update the license here with the #263 changes.
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.
Thanks, since it's a brand new file, header has been updated to:
// Copyright The Mantle Authors
// SPDX-License-Identifier: Apache-2.0
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.
I wouldn't say it's a new file - just a rename of an old one…
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.
The line Copyright 2017 CoreOS, Inc.
must stay
0a79114
to
3a52ee1
Compare
@sayanchowdhury thanks for your suggestion - comments have been addressed. |
@@ -0,0 +1,59 @@ | |||
// Copyright The Mantle Authors |
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.
// Copyright The Mantle Authors | |
// Copyright The Mantle Authors | |
// Copyright 2017 CoreOS, Inc. |
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.
Original copyright statements should not be removed
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.
Ouh yes. Thanks !
Signed-off-by: Mathieu Tortuyaux <[email protected]>
* marked `--packet-*` options as deprecated (still work but not visible) * added `packet` aliase for `ore` commands Signed-off-by: Mathieu Tortuyaux <[email protected]>
Signed-off-by: Mathieu Tortuyaux <[email protected]>
3a52ee1
to
bbbe9e9
Compare
Follow up from: flatcar/mantle#277 Signed-off-by: Mathieu Tortuyaux <[email protected]>
--packet-*
options as deprecated (still work but not visible)packet
aliase forore
commandsSigned-off-by: Mathieu Tortuyaux [email protected]
Example with current commands:
and for
ore
command:changelog/
directory (user-facing change, bug fix, security fix, update)Closes: flatcar/Flatcar#561