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

*: sed s/flatcar-linux/flatcar #372

Merged
merged 1 commit into from
Sep 14, 2022
Merged

*: sed s/flatcar-linux/flatcar #372

merged 1 commit into from
Sep 14, 2022

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Sep 12, 2022

Signed-off-by: Mathieu Tortuyaux mtortuyaux@microsoft.com


TODO:

  • go mod vendor (for flatcar/ignition and flatcar/container-linux-config-transpiler)
  • run the CI

@@ -115,7 +115,7 @@ func init() {
creationFlags.StringVar(&sdkUrlPath,
"sdk-url-path", "sdk", "SDK URL path")
creationFlags.StringVar(&sdkURL,
"sdk-url", "mirror.release.flatcar-linux.net", "SDK URL (supported schema: gs, https)")
"sdk-url", "mirror.release.flatcar.net", "SDK URL (supported schema: gs, https)")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"sdk-url", "mirror.release.flatcar.net", "SDK URL (supported schema: gs, https)")
"sdk-url", "mirror.release.flatcar-linux.net", "SDK URL (supported schema: gs, https)")

Copy link
Member

Choose a reason for hiding this comment

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

(To prevent this you could first replace the large bulk of github.com/flatcar-linux and then look for any remaining flatcar-linux references)

@@ -45,7 +45,7 @@ func init() {
cmdCreateDevice.Flags().StringVar(&options.InstallerImageBaseURL, "installer-image-base-url", "", "installer image base URL, non-https (default board-dependent, e.g. \"http://stable.release.flatcar-linux.net/amd64-usr/current\")")
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_packet_image.bin.bz2\")")
cmdCreateDevice.Flags().StringVar(&options.ImageURL, "image-url", "", "image base URL (default board-dependent, e.g. \"https://alpha.release-linux.flatcar.net/amd64-usr/current/flatcar_production_packet_image.bin.bz2\")")
Copy link
Member

@pothos pothos Sep 14, 2022

Choose a reason for hiding this comment

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

Suggested change
cmdCreateDevice.Flags().StringVar(&options.ImageURL, "image-url", "", "image base URL (default board-dependent, e.g. \"https://alpha.release-linux.flatcar.net/amd64-usr/current/flatcar_production_packet_image.bin.bz2\")")
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\")")

same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I messed up.
It should be:

https://alpha.release.flatcar-linux.net

I appended -linux to release instead of flatcar. 😑

Copy link
Member

Choose a reason for hiding this comment

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

Oh, right, updated the suggestion

@@ -324,7 +324,7 @@ func (cs channelSpec) SourceURL() string {
baseURL = cs.BasePrivateURL
}
if gceJSONKeyFile == "none" {
baseURL = strings.Replace(baseURL, "gs://", "https://bucket.release.flatcar-linux.net/", 1)
baseURL = strings.Replace(baseURL, "gs://", "https://bucket.release-linux.flatcar.net/", 1)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
baseURL = strings.Replace(baseURL, "gs://", "https://bucket.release-linux.flatcar.net/", 1)
baseURL = strings.Replace(baseURL, "gs://", "https://bucket.release.flatcar-linux.net/", 1)

@@ -35,7 +35,7 @@ func init() {
DO.AddCommand(cmdCreateImage)
cmdCreateImage.Flags().StringVar(&options.Region, "region", "sfo2", "region slug")
cmdCreateImage.Flags().StringVarP(&imageName, "name", "n", "", "image name")
cmdCreateImage.Flags().StringVarP(&imageURL, "url", "u", "", "image source URL (e.g. \"https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_digitalocean_image.bin.bz2\"")
cmdCreateImage.Flags().StringVarP(&imageURL, "url", "u", "", "image source URL (e.g. \"https://stable.release-linux.flatcar.net/amd64-usr/current/flatcar_production_digitalocean_image.bin.bz2\"")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
cmdCreateImage.Flags().StringVarP(&imageURL, "url", "u", "", "image source URL (e.g. \"https://stable.release-linux.flatcar.net/amd64-usr/current/flatcar_production_digitalocean_image.bin.bz2\"")
cmdCreateImage.Flags().StringVarP(&imageURL, "url", "u", "", "image source URL (e.g. \"https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_digitalocean_image.bin.bz2\"")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, should be good now - I grepped on release-linux, sorry for the confusion :D

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 merged commit f105114 into flatcar-master Sep 14, 2022
@tormath1 tormath1 deleted the tormath1/flatcar branch September 14, 2022 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants