-
Notifications
You must be signed in to change notification settings - Fork 20
interface: support BYO resource group for atm #251
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,11 +34,23 @@ type TrafficManagerProfile struct { | |
| // TrafficManagerProfileSpec defines the desired state of TrafficManagerProfile. | ||
| // For now, only the "Weighted" traffic routing method is supported. | ||
| type TrafficManagerProfileSpec struct { | ||
| // BringYourOwn defines the Azure Traffic Manager in your own resource group. | ||
| // +required | ||
| BringYourOwn *BringYourOwn `json:"bringYourOwn"` | ||
|
|
||
| // The endpoint monitoring settings of the Traffic Manager profile. | ||
| // +optional | ||
| MonitorConfig *MonitorConfig `json:"monitorConfig,omitempty"` | ||
| } | ||
|
|
||
| // BringYourOwn configures the existing Azure resource. | ||
| type BringYourOwn struct { | ||
| // The Azure Resource Group of the existing resource. | ||
| // +required | ||
| // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="resourceGroup is immutable" | ||
| ResourceGroup string `json:"resourceGroup"` | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we could add name in the future to support BYO ATM profile. |
||
| } | ||
|
|
||
| // MonitorConfig defines the endpoint monitoring settings of the Traffic Manager profile. | ||
| // https://learn.microsoft.com/en-us/azure/traffic-manager/traffic-manager-monitoring | ||
| type MonitorConfig struct { | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Just ResourceGroup? The bring your own noun is unnecessary, as there is no not bring your now today.
// The resource ID of the resource group to contain the Azure Traffic Manager resource corresponding to this profile. Use this option if you would like to use this profile to manage the full life cycle of the traffic manager, including creation and deletion. When this profile is created, updated, or deleted, the corresponding traffic manager with the same name will be created, updated, or deleted.
Later, we can add:
// The resource ID of the Azure Traffic Manager resource corresponding to this profile. Use this option if you would like to use this profile to update an existing traffic manager, not creating or deleting it.
ResourceId;
// If none of the above is specified, we will use the default resource group passed in as an env variable.