Skip to content

Conversation

@vaishakdinesh
Copy link
Member

changes:

  • new cli flag to pass in resource ids, can pass it in multiple times. Only for zone settiings and hostname tls settings
  • zone setting fixes

if err = viper.BindEnv("provider-registry-hostname", "CLOUDFLARE_PROVIDER_REGISTRY_HOSTNAME"); err != nil {
log.Fatal(err)
}
rootCmd.PersistentFlags().StringSliceVar(&resourceIDFlags, "resource-id", []string{}, "Resource type and IDs mapping in format 'resource_type=id1,id2,id3' (can be specified multiple times)")
Copy link
Contributor

Choose a reason for hiding this comment

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

the wording here is a little confusing. does this still convey it correctly?

Suggested change
rootCmd.PersistentFlags().StringSliceVar(&resourceIDFlags, "resource-id", []string{}, "Resource type and IDs mapping in format 'resource_type=id1,id2,id3' (can be specified multiple times)")
rootCmd.PersistentFlags().StringSliceVar(&resourceIDFlags, "resource-id", []string{}, "Resource type and IDs mapping in the format of `key` to comma separated values. Example: `zone_setting=always_online,cache_level,...`")

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup. It still does. Updated

@jacobbednarz jacobbednarz merged commit fbaa348 into master Mar 25, 2025
7 checks passed
@jacobbednarz jacobbednarz deleted the vaishak/zone-settings branch March 25, 2025 01:39
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