diff --git a/apis/alertsmanagement/v1beta1/zz_generated.deepcopy.go b/apis/alertsmanagement/v1beta1/zz_generated.deepcopy.go index 802605d17..71199f42f 100644 --- a/apis/alertsmanagement/v1beta1/zz_generated.deepcopy.go +++ b/apis/alertsmanagement/v1beta1/zz_generated.deepcopy.go @@ -2695,6 +2695,18 @@ func (in *MonitorActionRuleSuppressionScopeInitParameters) DeepCopyInto(out *Mon } } } + if in.ResourceIdsRefs != nil { + in, out := &in.ResourceIdsRefs, &out.ResourceIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ResourceIdsSelector != nil { + in, out := &in.ResourceIdsSelector, &out.ResourceIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -2757,6 +2769,18 @@ func (in *MonitorActionRuleSuppressionScopeParameters) DeepCopyInto(out *Monitor } } } + if in.ResourceIdsRefs != nil { + in, out := &in.ResourceIdsRefs, &out.ResourceIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ResourceIdsSelector != nil { + in, out := &in.ResourceIdsSelector, &out.ResourceIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -6897,6 +6921,18 @@ func (in *ScopeInitParameters) DeepCopyInto(out *ScopeInitParameters) { } } } + if in.ResourceIdsRefs != nil { + in, out := &in.ResourceIdsRefs, &out.ResourceIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ResourceIdsSelector != nil { + in, out := &in.ResourceIdsSelector, &out.ResourceIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -6959,6 +6995,18 @@ func (in *ScopeParameters) DeepCopyInto(out *ScopeParameters) { } } } + if in.ResourceIdsRefs != nil { + in, out := &in.ResourceIdsRefs, &out.ResourceIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ResourceIdsSelector != nil { + in, out := &in.ResourceIdsSelector, &out.ResourceIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) diff --git a/apis/alertsmanagement/v1beta1/zz_generated.resolvers.go b/apis/alertsmanagement/v1beta1/zz_generated.resolvers.go index 4d86ab4c6..945ab4952 100644 --- a/apis/alertsmanagement/v1beta1/zz_generated.resolvers.go +++ b/apis/alertsmanagement/v1beta1/zz_generated.resolvers.go @@ -25,6 +25,7 @@ func (mg *MonitorActionRuleActionGroup) ResolveReferences( // ResolveReferences r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error { m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta1", "MonitorActionGroup", "MonitorActionGroupList") @@ -64,12 +65,33 @@ func (mg *MonitorActionRuleActionGroup) ResolveReferences( // ResolveReferences } mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference + + for i3 := 0; i3 < len(mg.Spec.ForProvider.Scope); i3++ { + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Scope[i3].ResourceIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Scope[i3].ResourceIdsRefs, + Selector: mg.Spec.ForProvider.Scope[i3].ResourceIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Scope[i3].ResourceIds") + } + mg.Spec.ForProvider.Scope[i3].ResourceIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Scope[i3].ResourceIdsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta1", "MonitorActionGroup", "MonitorActionGroupList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ActionGroupID), Extract: resource.ExtractResourceID(), @@ -84,6 +106,28 @@ func (mg *MonitorActionRuleActionGroup) ResolveReferences( // ResolveReferences mg.Spec.InitProvider.ActionGroupID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.InitProvider.ActionGroupIDRef = rsp.ResolvedReference + for i3 := 0; i3 < len(mg.Spec.InitProvider.Scope); i3++ { + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Scope[i3].ResourceIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Scope[i3].ResourceIdsRefs, + Selector: mg.Spec.InitProvider.Scope[i3].ResourceIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Scope[i3].ResourceIds") + } + mg.Spec.InitProvider.Scope[i3].ResourceIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Scope[i3].ResourceIdsRefs = mrsp.ResolvedReferences + + } + return nil } @@ -94,6 +138,7 @@ func (mg *MonitorActionRuleSuppression) ResolveReferences(ctx context.Context, c r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error { m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") @@ -115,6 +160,49 @@ func (mg *MonitorActionRuleSuppression) ResolveReferences(ctx context.Context, c mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference + for i3 := 0; i3 < len(mg.Spec.ForProvider.Scope); i3++ { + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Scope[i3].ResourceIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Scope[i3].ResourceIdsRefs, + Selector: mg.Spec.ForProvider.Scope[i3].ResourceIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Scope[i3].ResourceIds") + } + mg.Spec.ForProvider.Scope[i3].ResourceIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Scope[i3].ResourceIdsRefs = mrsp.ResolvedReferences + + } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Scope); i3++ { + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Scope[i3].ResourceIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Scope[i3].ResourceIdsRefs, + Selector: mg.Spec.InitProvider.Scope[i3].ResourceIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Scope[i3].ResourceIds") + } + mg.Spec.InitProvider.Scope[i3].ResourceIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Scope[i3].ResourceIdsRefs = mrsp.ResolvedReferences + + } + return nil } diff --git a/apis/appconfiguration/v1beta1/zz_generated.deepcopy.go b/apis/appconfiguration/v1beta1/zz_generated.deepcopy.go index b70580d05..63d9ad141 100644 --- a/apis/appconfiguration/v1beta1/zz_generated.deepcopy.go +++ b/apis/appconfiguration/v1beta1/zz_generated.deepcopy.go @@ -540,6 +540,18 @@ func (in *IdentityInitParameters) DeepCopyInto(out *IdentityInitParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -612,6 +624,18 @@ func (in *IdentityParameters) DeepCopyInto(out *IdentityParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) diff --git a/apis/appconfiguration/v1beta1/zz_generated.resolvers.go b/apis/appconfiguration/v1beta1/zz_generated.resolvers.go index 070a9e1d0..09444dd84 100644 --- a/apis/appconfiguration/v1beta1/zz_generated.resolvers.go +++ b/apis/appconfiguration/v1beta1/zz_generated.resolvers.go @@ -24,6 +24,7 @@ func (mg *Configuration) ResolveReferences( // ResolveReferences of this Configu r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error for i3 := 0; i3 < len(mg.Spec.ForProvider.Encryption); i3++ { @@ -67,6 +68,27 @@ func (mg *Configuration) ResolveReferences( // ResolveReferences of this Configu mg.Spec.ForProvider.Encryption[i3].KeyVaultKeyIdentifier = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.Encryption[i3].KeyVaultKeyIdentifierRef = rsp.ResolvedReference + } + for i3 := 0; i3 < len(mg.Spec.ForProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.ForProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Identity[i3].IdentityIds") + } + mg.Spec.ForProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + } { m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") @@ -128,6 +150,27 @@ func (mg *Configuration) ResolveReferences( // ResolveReferences of this Configu mg.Spec.InitProvider.Encryption[i3].KeyVaultKeyIdentifier = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.InitProvider.Encryption[i3].KeyVaultKeyIdentifierRef = rsp.ResolvedReference + } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.InitProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Identity[i3].IdentityIds") + } + mg.Spec.InitProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + } return nil diff --git a/apis/consumption/v1beta1/zz_generated.deepcopy.go b/apis/consumption/v1beta1/zz_generated.deepcopy.go index 9564b4c44..2ca598989 100644 --- a/apis/consumption/v1beta1/zz_generated.deepcopy.go +++ b/apis/consumption/v1beta1/zz_generated.deepcopy.go @@ -686,6 +686,18 @@ func (in *BudgetResourceGroupNotificationInitParameters) DeepCopyInto(out *Budge } } } + if in.ContactGroupsRefs != nil { + in, out := &in.ContactGroupsRefs, &out.ContactGroupsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContactGroupsSelector != nil { + in, out := &in.ContactGroupsSelector, &out.ContactGroupsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.ContactRoles != nil { in, out := &in.ContactRoles, &out.ContactRoles *out = make([]*string, len(*in)) @@ -822,6 +834,18 @@ func (in *BudgetResourceGroupNotificationParameters) DeepCopyInto(out *BudgetRes } } } + if in.ContactGroupsRefs != nil { + in, out := &in.ContactGroupsRefs, &out.ContactGroupsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContactGroupsSelector != nil { + in, out := &in.ContactGroupsSelector, &out.ContactGroupsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.ContactRoles != nil { in, out := &in.ContactRoles, &out.ContactRoles *out = make([]*string, len(*in)) @@ -1163,6 +1187,18 @@ func (in *BudgetSubscriptionFilterDimensionInitParameters) DeepCopyInto(out *Bud } } } + if in.ValuesRefs != nil { + in, out := &in.ValuesRefs, &out.ValuesRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ValuesSelector != nil { + in, out := &in.ValuesSelector, &out.ValuesSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BudgetSubscriptionFilterDimensionInitParameters. @@ -1235,6 +1271,18 @@ func (in *BudgetSubscriptionFilterDimensionParameters) DeepCopyInto(out *BudgetS } } } + if in.ValuesRefs != nil { + in, out := &in.ValuesRefs, &out.ValuesRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ValuesSelector != nil { + in, out := &in.ValuesSelector, &out.ValuesSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BudgetSubscriptionFilterDimensionParameters. @@ -2225,6 +2273,18 @@ func (in *DimensionInitParameters) DeepCopyInto(out *DimensionInitParameters) { } } } + if in.ValuesRefs != nil { + in, out := &in.ValuesRefs, &out.ValuesRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ValuesSelector != nil { + in, out := &in.ValuesSelector, &out.ValuesSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DimensionInitParameters. @@ -2297,6 +2357,18 @@ func (in *DimensionParameters) DeepCopyInto(out *DimensionParameters) { } } } + if in.ValuesRefs != nil { + in, out := &in.ValuesRefs, &out.ValuesRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ValuesSelector != nil { + in, out := &in.ValuesSelector, &out.ValuesSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DimensionParameters. @@ -2333,6 +2405,18 @@ func (in *FilterDimensionInitParameters) DeepCopyInto(out *FilterDimensionInitPa } } } + if in.ValuesRefs != nil { + in, out := &in.ValuesRefs, &out.ValuesRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ValuesSelector != nil { + in, out := &in.ValuesSelector, &out.ValuesSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterDimensionInitParameters. @@ -2405,6 +2489,18 @@ func (in *FilterDimensionParameters) DeepCopyInto(out *FilterDimensionParameters } } } + if in.ValuesRefs != nil { + in, out := &in.ValuesRefs, &out.ValuesRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ValuesSelector != nil { + in, out := &in.ValuesSelector, &out.ValuesSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FilterDimensionParameters. diff --git a/apis/consumption/v1beta1/zz_generated.resolvers.go b/apis/consumption/v1beta1/zz_generated.resolvers.go index ddbf34be4..e8fe4425a 100644 --- a/apis/consumption/v1beta1/zz_generated.resolvers.go +++ b/apis/consumption/v1beta1/zz_generated.resolvers.go @@ -25,13 +25,37 @@ func (mg *BudgetManagementGroup) ResolveReferences( // ResolveReferences of this r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.Filter); i3++ { + for i4 := 0; i4 < len(mg.Spec.ForProvider.Filter[i3].Dimension); i4++ { + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Filter[i3].Dimension[i4].Values), + Extract: reference.ExternalName(), + References: mg.Spec.ForProvider.Filter[i3].Dimension[i4].ValuesRefs, + Selector: mg.Spec.ForProvider.Filter[i3].Dimension[i4].ValuesSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Filter[i3].Dimension[i4].Values") + } + mg.Spec.ForProvider.Filter[i3].Dimension[i4].Values = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Filter[i3].Dimension[i4].ValuesRefs = mrsp.ResolvedReferences + + } + } { m, l, err = apisresolver.GetManagedResource("management.azure.upbound.io", "v1beta1", "ManagementGroup", "ManagementGroupList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ManagementGroupID), Extract: resource.ExtractResourceID(), @@ -45,12 +69,35 @@ func (mg *BudgetManagementGroup) ResolveReferences( // ResolveReferences of this } mg.Spec.ForProvider.ManagementGroupID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.ManagementGroupIDRef = rsp.ResolvedReference + + for i3 := 0; i3 < len(mg.Spec.InitProvider.Filter); i3++ { + for i4 := 0; i4 < len(mg.Spec.InitProvider.Filter[i3].Dimension); i4++ { + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Filter[i3].Dimension[i4].Values), + Extract: reference.ExternalName(), + References: mg.Spec.InitProvider.Filter[i3].Dimension[i4].ValuesRefs, + Selector: mg.Spec.InitProvider.Filter[i3].Dimension[i4].ValuesSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Filter[i3].Dimension[i4].Values") + } + mg.Spec.InitProvider.Filter[i3].Dimension[i4].Values = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Filter[i3].Dimension[i4].ValuesRefs = mrsp.ResolvedReferences + + } + } { m, l, err = apisresolver.GetManagedResource("management.azure.upbound.io", "v1beta1", "ManagementGroup", "ManagementGroupList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ManagementGroupID), Extract: resource.ExtractResourceID(), @@ -75,13 +122,58 @@ func (mg *BudgetResourceGroup) ResolveReferences(ctx context.Context, c client.R r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.Filter); i3++ { + for i4 := 0; i4 < len(mg.Spec.ForProvider.Filter[i3].Dimension); i4++ { + { + m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta2", "MonitorActionGroup", "MonitorActionGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Filter[i3].Dimension[i4].Values), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Filter[i3].Dimension[i4].ValuesRefs, + Selector: mg.Spec.ForProvider.Filter[i3].Dimension[i4].ValuesSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Filter[i3].Dimension[i4].Values") + } + mg.Spec.ForProvider.Filter[i3].Dimension[i4].Values = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Filter[i3].Dimension[i4].ValuesRefs = mrsp.ResolvedReferences + + } + } + for i3 := 0; i3 < len(mg.Spec.ForProvider.Notification); i3++ { + { + m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta2", "MonitorActionGroup", "MonitorActionGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Notification[i3].ContactGroups), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Notification[i3].ContactGroupsRefs, + Selector: mg.Spec.ForProvider.Notification[i3].ContactGroupsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Notification[i3].ContactGroups") + } + mg.Spec.ForProvider.Notification[i3].ContactGroups = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Notification[i3].ContactGroupsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ResourceGroupID), Extract: resource.ExtractResourceID(), @@ -95,12 +187,56 @@ func (mg *BudgetResourceGroup) ResolveReferences(ctx context.Context, c client.R } mg.Spec.ForProvider.ResourceGroupID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.ResourceGroupIDRef = rsp.ResolvedReference + + for i3 := 0; i3 < len(mg.Spec.InitProvider.Filter); i3++ { + for i4 := 0; i4 < len(mg.Spec.InitProvider.Filter[i3].Dimension); i4++ { + { + m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta2", "MonitorActionGroup", "MonitorActionGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Filter[i3].Dimension[i4].Values), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Filter[i3].Dimension[i4].ValuesRefs, + Selector: mg.Spec.InitProvider.Filter[i3].Dimension[i4].ValuesSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Filter[i3].Dimension[i4].Values") + } + mg.Spec.InitProvider.Filter[i3].Dimension[i4].Values = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Filter[i3].Dimension[i4].ValuesRefs = mrsp.ResolvedReferences + + } + } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Notification); i3++ { + { + m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta2", "MonitorActionGroup", "MonitorActionGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Notification[i3].ContactGroups), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Notification[i3].ContactGroupsRefs, + Selector: mg.Spec.InitProvider.Notification[i3].ContactGroupsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Notification[i3].ContactGroups") + } + mg.Spec.InitProvider.Notification[i3].ContactGroups = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Notification[i3].ContactGroupsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.ResourceGroupID), Extract: resource.ExtractResourceID(), @@ -127,6 +263,29 @@ func (mg *BudgetSubscription) ResolveReferences(ctx context.Context, c client.Re var mrsp reference.MultiResolutionResponse var err error + for i3 := 0; i3 < len(mg.Spec.ForProvider.Filter); i3++ { + for i4 := 0; i4 < len(mg.Spec.ForProvider.Filter[i3].Dimension); i4++ { + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Filter[i3].Dimension[i4].Values), + Extract: reference.ExternalName(), + References: mg.Spec.ForProvider.Filter[i3].Dimension[i4].ValuesRefs, + Selector: mg.Spec.ForProvider.Filter[i3].Dimension[i4].ValuesSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Filter[i3].Dimension[i4].Values") + } + mg.Spec.ForProvider.Filter[i3].Dimension[i4].Values = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Filter[i3].Dimension[i4].ValuesRefs = mrsp.ResolvedReferences + + } + } for i3 := 0; i3 < len(mg.Spec.ForProvider.Notification); i3++ { { m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta1", "MonitorActionGroup", "MonitorActionGroupList") @@ -148,6 +307,29 @@ func (mg *BudgetSubscription) ResolveReferences(ctx context.Context, c client.Re mg.Spec.ForProvider.Notification[i3].ContactGroupsRefs = mrsp.ResolvedReferences } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Filter); i3++ { + for i4 := 0; i4 < len(mg.Spec.InitProvider.Filter[i3].Dimension); i4++ { + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Filter[i3].Dimension[i4].Values), + Extract: reference.ExternalName(), + References: mg.Spec.InitProvider.Filter[i3].Dimension[i4].ValuesRefs, + Selector: mg.Spec.InitProvider.Filter[i3].Dimension[i4].ValuesSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Filter[i3].Dimension[i4].Values") + } + mg.Spec.InitProvider.Filter[i3].Dimension[i4].Values = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Filter[i3].Dimension[i4].ValuesRefs = mrsp.ResolvedReferences + + } + } for i3 := 0; i3 < len(mg.Spec.InitProvider.Notification); i3++ { { m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta1", "MonitorActionGroup", "MonitorActionGroupList") diff --git a/apis/containerregistry/v1beta1/zz_generated.deepcopy.go b/apis/containerregistry/v1beta1/zz_generated.deepcopy.go index 31e20ebb8..cfbf4619d 100644 --- a/apis/containerregistry/v1beta1/zz_generated.deepcopy.go +++ b/apis/containerregistry/v1beta1/zz_generated.deepcopy.go @@ -1035,6 +1035,18 @@ func (in *IdentityInitParameters) DeepCopyInto(out *IdentityInitParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -1107,6 +1119,18 @@ func (in *IdentityParameters) DeepCopyInto(out *IdentityParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) diff --git a/apis/containerregistry/v1beta1/zz_generated.resolvers.go b/apis/containerregistry/v1beta1/zz_generated.resolvers.go index a88474b9b..ac2f70e36 100644 --- a/apis/containerregistry/v1beta1/zz_generated.resolvers.go +++ b/apis/containerregistry/v1beta1/zz_generated.resolvers.go @@ -201,6 +201,7 @@ func (mg *Registry) ResolveReferences(ctx context.Context, c client.Reader) erro r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error for i3 := 0; i3 < len(mg.Spec.ForProvider.Encryption); i3++ { @@ -223,6 +224,27 @@ func (mg *Registry) ResolveReferences(ctx context.Context, c client.Reader) erro mg.Spec.ForProvider.Encryption[i3].IdentityClientID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.Encryption[i3].IdentityClientIDRef = rsp.ResolvedReference + } + for i3 := 0; i3 < len(mg.Spec.ForProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.ForProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Identity[i3].IdentityIds") + } + mg.Spec.ForProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + } for i3 := 0; i3 < len(mg.Spec.ForProvider.NetworkRuleSet); i3++ { for i4 := 0; i4 < len(mg.Spec.ForProvider.NetworkRuleSet[i3].VirtualNetwork); i4++ { @@ -286,6 +308,27 @@ func (mg *Registry) ResolveReferences(ctx context.Context, c client.Reader) erro mg.Spec.InitProvider.Encryption[i3].IdentityClientID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.InitProvider.Encryption[i3].IdentityClientIDRef = rsp.ResolvedReference + } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.InitProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Identity[i3].IdentityIds") + } + mg.Spec.InitProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + } for i3 := 0; i3 < len(mg.Spec.InitProvider.NetworkRuleSet); i3++ { for i4 := 0; i4 < len(mg.Spec.InitProvider.NetworkRuleSet[i3].VirtualNetwork); i4++ { diff --git a/apis/cosmosdb/v1beta1/zz_generated.deepcopy.go b/apis/cosmosdb/v1beta1/zz_generated.deepcopy.go index 9250c2137..59a6f5e3a 100644 --- a/apis/cosmosdb/v1beta1/zz_generated.deepcopy.go +++ b/apis/cosmosdb/v1beta1/zz_generated.deepcopy.go @@ -4310,6 +4310,18 @@ func (in *IdentityInitParameters) DeepCopyInto(out *IdentityInitParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -4382,6 +4394,18 @@ func (in *IdentityParameters) DeepCopyInto(out *IdentityParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) diff --git a/apis/cosmosdb/v1beta1/zz_generated.resolvers.go b/apis/cosmosdb/v1beta1/zz_generated.resolvers.go index c81b03444..8641bf187 100644 --- a/apis/cosmosdb/v1beta1/zz_generated.resolvers.go +++ b/apis/cosmosdb/v1beta1/zz_generated.resolvers.go @@ -26,13 +26,35 @@ func (mg *Account) ResolveReferences(ctx context.Context, c client.Reader) error r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.ForProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Identity[i3].IdentityIds") + } + mg.Spec.ForProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ResourceGroupName), Extract: reference.ExternalName(), @@ -67,6 +89,27 @@ func (mg *Account) ResolveReferences(ctx context.Context, c client.Reader) error mg.Spec.ForProvider.Restore[i3].SourceCosmosDBAccountID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.Restore[i3].SourceCosmosDBAccountIDRef = rsp.ResolvedReference + } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.InitProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Identity[i3].IdentityIds") + } + mg.Spec.InitProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + } for i3 := 0; i3 < len(mg.Spec.InitProvider.Restore); i3++ { { diff --git a/apis/insights/v1beta1/zz_generated.deepcopy.go b/apis/insights/v1beta1/zz_generated.deepcopy.go index 0fca63b60..3133ef327 100644 --- a/apis/insights/v1beta1/zz_generated.deepcopy.go +++ b/apis/insights/v1beta1/zz_generated.deepcopy.go @@ -10183,6 +10183,18 @@ func (in *MonitorDataCollectionRuleIdentityInitParameters) DeepCopyInto(out *Mon } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -10255,6 +10267,18 @@ func (in *MonitorDataCollectionRuleIdentityParameters) DeepCopyInto(out *Monitor } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -12392,6 +12416,18 @@ func (in *MonitorScheduledQueryRulesAlertInitParameters) DeepCopyInto(out *Monit } } } + if in.AuthorizedResourceIdsRefs != nil { + in, out := &in.AuthorizedResourceIdsRefs, &out.AuthorizedResourceIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.AuthorizedResourceIdsSelector != nil { + in, out := &in.AuthorizedResourceIdsSelector, &out.AuthorizedResourceIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.AutoMitigationEnabled != nil { in, out := &in.AutoMitigationEnabled, &out.AutoMitigationEnabled *out = new(bool) @@ -12691,6 +12727,18 @@ func (in *MonitorScheduledQueryRulesAlertParameters) DeepCopyInto(out *MonitorSc } } } + if in.AuthorizedResourceIdsRefs != nil { + in, out := &in.AuthorizedResourceIdsRefs, &out.AuthorizedResourceIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.AuthorizedResourceIdsSelector != nil { + in, out := &in.AuthorizedResourceIdsSelector, &out.AuthorizedResourceIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.AutoMitigationEnabled != nil { in, out := &in.AutoMitigationEnabled, &out.AutoMitigationEnabled *out = new(bool) @@ -12887,6 +12935,18 @@ func (in *MonitorScheduledQueryRulesAlertV2ActionInitParameters) DeepCopyInto(ou } } } + if in.ActionGroupsRefs != nil { + in, out := &in.ActionGroupsRefs, &out.ActionGroupsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ActionGroupsSelector != nil { + in, out := &in.ActionGroupsSelector, &out.ActionGroupsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.CustomProperties != nil { in, out := &in.CustomProperties, &out.CustomProperties *out = make(map[string]*string, len(*in)) @@ -12971,6 +13031,18 @@ func (in *MonitorScheduledQueryRulesAlertV2ActionParameters) DeepCopyInto(out *M } } } + if in.ActionGroupsRefs != nil { + in, out := &in.ActionGroupsRefs, &out.ActionGroupsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ActionGroupsSelector != nil { + in, out := &in.ActionGroupsSelector, &out.ActionGroupsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.CustomProperties != nil { in, out := &in.CustomProperties, &out.CustomProperties *out = make(map[string]*string, len(*in)) @@ -13190,6 +13262,18 @@ func (in *MonitorScheduledQueryRulesAlertV2IdentityInitParameters) DeepCopyInto( } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -13262,6 +13346,18 @@ func (in *MonitorScheduledQueryRulesAlertV2IdentityParameters) DeepCopyInto(out } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) diff --git a/apis/insights/v1beta1/zz_generated.resolvers.go b/apis/insights/v1beta1/zz_generated.resolvers.go index d9df82643..4e7126ac0 100644 --- a/apis/insights/v1beta1/zz_generated.resolvers.go +++ b/apis/insights/v1beta1/zz_generated.resolvers.go @@ -875,6 +875,7 @@ func (mg *MonitorDataCollectionRule) ResolveReferences(ctx context.Context, c cl r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error { m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta1", "MonitorDataCollectionEndpoint", "MonitorDataCollectionEndpointList") @@ -988,6 +989,27 @@ func (mg *MonitorDataCollectionRule) ResolveReferences(ctx context.Context, c cl } } + for i3 := 0; i3 < len(mg.Spec.ForProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.ForProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Identity[i3].IdentityIds") + } + mg.Spec.ForProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") if err != nil { @@ -1118,6 +1140,27 @@ func (mg *MonitorDataCollectionRule) ResolveReferences(ctx context.Context, c cl } } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.InitProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Identity[i3].IdentityIds") + } + mg.Spec.InitProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + + } return nil } @@ -1546,6 +1589,25 @@ func (mg *MonitorScheduledQueryRulesAlert) ResolveReferences(ctx context.Context if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.AuthorizedResourceIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.AuthorizedResourceIdsRefs, + Selector: mg.Spec.ForProvider.AuthorizedResourceIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.AuthorizedResourceIds") + } + mg.Spec.ForProvider.AuthorizedResourceIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.AuthorizedResourceIdsRefs = mrsp.ResolvedReferences + { + m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta1", "ApplicationInsights", "ApplicationInsightsList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.DataSourceID), Extract: resource.ExtractResourceID(), @@ -1605,6 +1667,25 @@ func (mg *MonitorScheduledQueryRulesAlert) ResolveReferences(ctx context.Context if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.AuthorizedResourceIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.AuthorizedResourceIdsRefs, + Selector: mg.Spec.InitProvider.AuthorizedResourceIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.AuthorizedResourceIds") + } + mg.Spec.InitProvider.AuthorizedResourceIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.AuthorizedResourceIdsRefs = mrsp.ResolvedReferences + { + m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta1", "ApplicationInsights", "ApplicationInsightsList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.DataSourceID), Extract: resource.ExtractResourceID(), @@ -1650,12 +1731,54 @@ func (mg *MonitorScheduledQueryRulesAlertV2) ResolveReferences(ctx context.Conte var rsp reference.ResolutionResponse var mrsp reference.MultiResolutionResponse var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.Action); i3++ { + { + m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta2", "MonitorActionGroup", "MonitorActionGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Action[i3].ActionGroups), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Action[i3].ActionGroupsRefs, + Selector: mg.Spec.ForProvider.Action[i3].ActionGroupsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Action[i3].ActionGroups") + } + mg.Spec.ForProvider.Action[i3].ActionGroups = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Action[i3].ActionGroupsRefs = mrsp.ResolvedReferences + + } + for i3 := 0; i3 < len(mg.Spec.ForProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.ForProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Identity[i3].IdentityIds") + } + mg.Spec.ForProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ResourceGroupName), Extract: reference.ExternalName(), @@ -1688,12 +1811,54 @@ func (mg *MonitorScheduledQueryRulesAlertV2) ResolveReferences(ctx context.Conte } mg.Spec.ForProvider.Scopes = reference.ToPtrValues(mrsp.ResolvedValues) mg.Spec.ForProvider.ScopesRefs = mrsp.ResolvedReferences + + for i3 := 0; i3 < len(mg.Spec.InitProvider.Action); i3++ { + { + m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta2", "MonitorActionGroup", "MonitorActionGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Action[i3].ActionGroups), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Action[i3].ActionGroupsRefs, + Selector: mg.Spec.InitProvider.Action[i3].ActionGroupsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Action[i3].ActionGroups") + } + mg.Spec.InitProvider.Action[i3].ActionGroups = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Action[i3].ActionGroupsRefs = mrsp.ResolvedReferences + + } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.InitProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Identity[i3].IdentityIds") + } + mg.Spec.InitProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta1", "ApplicationInsights", "ApplicationInsightsList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Scopes), Extract: rconfig.ExtractResourceID(), diff --git a/apis/labservices/v1beta1/zz_generated.deepcopy.go b/apis/labservices/v1beta1/zz_generated.deepcopy.go index a97a23732..e240e0ce4 100644 --- a/apis/labservices/v1beta1/zz_generated.deepcopy.go +++ b/apis/labservices/v1beta1/zz_generated.deepcopy.go @@ -1023,6 +1023,18 @@ func (in *LabServicePlanInitParameters) DeepCopyInto(out *LabServicePlanInitPara } } } + if in.AllowedRegionsRefs != nil { + in, out := &in.AllowedRegionsRefs, &out.AllowedRegionsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.AllowedRegionsSelector != nil { + in, out := &in.AllowedRegionsSelector, &out.AllowedRegionsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.DefaultAutoShutdown != nil { in, out := &in.DefaultAutoShutdown, &out.DefaultAutoShutdown *out = make([]DefaultAutoShutdownInitParameters, len(*in)) @@ -1231,6 +1243,18 @@ func (in *LabServicePlanParameters) DeepCopyInto(out *LabServicePlanParameters) } } } + if in.AllowedRegionsRefs != nil { + in, out := &in.AllowedRegionsRefs, &out.AllowedRegionsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.AllowedRegionsSelector != nil { + in, out := &in.AllowedRegionsSelector, &out.AllowedRegionsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.DefaultAutoShutdown != nil { in, out := &in.DefaultAutoShutdown, &out.DefaultAutoShutdown *out = make([]DefaultAutoShutdownParameters, len(*in)) diff --git a/apis/labservices/v1beta1/zz_generated.resolvers.go b/apis/labservices/v1beta1/zz_generated.resolvers.go index a25e6c220..47592c152 100644 --- a/apis/labservices/v1beta1/zz_generated.resolvers.go +++ b/apis/labservices/v1beta1/zz_generated.resolvers.go @@ -9,6 +9,7 @@ package v1beta1 import ( "context" reference "github.com/crossplane/crossplane-runtime/pkg/reference" + resource "github.com/crossplane/upjet/pkg/resource" errors "github.com/pkg/errors" xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" @@ -98,7 +99,27 @@ func (mg *LabServicePlan) ResolveReferences(ctx context.Context, c client.Reader r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.AllowedRegions), + Extract: resource.ExtractParamPath("location", false), + References: mg.Spec.ForProvider.AllowedRegionsRefs, + Selector: mg.Spec.ForProvider.AllowedRegionsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.AllowedRegions") + } + mg.Spec.ForProvider.AllowedRegions = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.AllowedRegionsRefs = mrsp.ResolvedReferences { m, l, err = apisresolver.GetManagedResource("network.azure.upbound.io", "v1beta1", "Subnet", "SubnetList") if err != nil { @@ -137,6 +158,25 @@ func (mg *LabServicePlan) ResolveReferences(ctx context.Context, c client.Reader } mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference + { + m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.AllowedRegions), + Extract: resource.ExtractParamPath("location", false), + References: mg.Spec.InitProvider.AllowedRegionsRefs, + Selector: mg.Spec.InitProvider.AllowedRegionsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.AllowedRegions") + } + mg.Spec.InitProvider.AllowedRegions = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.AllowedRegionsRefs = mrsp.ResolvedReferences { m, l, err = apisresolver.GetManagedResource("network.azure.upbound.io", "v1beta1", "Subnet", "SubnetList") if err != nil { diff --git a/apis/machinelearningservices/v1beta1/zz_generated.deepcopy.go b/apis/machinelearningservices/v1beta1/zz_generated.deepcopy.go index 80dd6d7ec..831485ed6 100644 --- a/apis/machinelearningservices/v1beta1/zz_generated.deepcopy.go +++ b/apis/machinelearningservices/v1beta1/zz_generated.deepcopy.go @@ -2241,6 +2241,18 @@ func (in *WorkspaceIdentityInitParameters) DeepCopyInto(out *WorkspaceIdentityIn } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -2313,6 +2325,18 @@ func (in *WorkspaceIdentityParameters) DeepCopyInto(out *WorkspaceIdentityParame } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) diff --git a/apis/machinelearningservices/v1beta1/zz_generated.resolvers.go b/apis/machinelearningservices/v1beta1/zz_generated.resolvers.go index e08051961..34186c304 100644 --- a/apis/machinelearningservices/v1beta1/zz_generated.resolvers.go +++ b/apis/machinelearningservices/v1beta1/zz_generated.resolvers.go @@ -252,6 +252,7 @@ func (mg *Workspace) ResolveReferences(ctx context.Context, c client.Reader) err r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error { m, l, err = apisresolver.GetManagedResource("insights.azure.upbound.io", "v1beta1", "ApplicationInsights", "ApplicationInsightsList") @@ -335,6 +336,27 @@ func (mg *Workspace) ResolveReferences(ctx context.Context, c client.Reader) err mg.Spec.ForProvider.Encryption[i3].UserAssignedIdentityID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.Encryption[i3].UserAssignedIdentityIDRef = rsp.ResolvedReference + } + for i3 := 0; i3 < len(mg.Spec.ForProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.ForProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Identity[i3].IdentityIds") + } + mg.Spec.ForProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + } { m, l, err = apisresolver.GetManagedResource("keyvault.azure.upbound.io", "v1beta1", "Vault", "VaultList") @@ -514,6 +536,27 @@ func (mg *Workspace) ResolveReferences(ctx context.Context, c client.Reader) err mg.Spec.InitProvider.Encryption[i3].UserAssignedIdentityID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.InitProvider.Encryption[i3].UserAssignedIdentityIDRef = rsp.ResolvedReference + } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.InitProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Identity[i3].IdentityIds") + } + mg.Spec.InitProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + } { m, l, err = apisresolver.GetManagedResource("keyvault.azure.upbound.io", "v1beta1", "Vault", "VaultList") diff --git a/apis/netapp/v1beta1/zz_generated.deepcopy.go b/apis/netapp/v1beta1/zz_generated.deepcopy.go index 302279034..2d783da0f 100644 --- a/apis/netapp/v1beta1/zz_generated.deepcopy.go +++ b/apis/netapp/v1beta1/zz_generated.deepcopy.go @@ -1181,6 +1181,18 @@ func (in *IdentityInitParameters) DeepCopyInto(out *IdentityInitParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -1253,6 +1265,18 @@ func (in *IdentityParameters) DeepCopyInto(out *IdentityParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) diff --git a/apis/netapp/v1beta1/zz_generated.resolvers.go b/apis/netapp/v1beta1/zz_generated.resolvers.go index 20ae5b648..80bb1322e 100644 --- a/apis/netapp/v1beta1/zz_generated.resolvers.go +++ b/apis/netapp/v1beta1/zz_generated.resolvers.go @@ -26,13 +26,35 @@ func (mg *Account) ResolveReferences(ctx context.Context, c client.Reader) error r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.ForProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Identity[i3].IdentityIds") + } + mg.Spec.ForProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ResourceGroupName), Extract: reference.ExternalName(), @@ -47,6 +69,28 @@ func (mg *Account) ResolveReferences(ctx context.Context, c client.Reader) error mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference + for i3 := 0; i3 < len(mg.Spec.InitProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.InitProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Identity[i3].IdentityIds") + } + mg.Spec.InitProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + + } + return nil } diff --git a/apis/network/v1beta1/zz_generated.deepcopy.go b/apis/network/v1beta1/zz_generated.deepcopy.go index 6be9e5316..70c719297 100644 --- a/apis/network/v1beta1/zz_generated.deepcopy.go +++ b/apis/network/v1beta1/zz_generated.deepcopy.go @@ -4112,6 +4112,18 @@ func (in *ConnectionMonitorInitParameters) DeepCopyInto(out *ConnectionMonitorIn } } } + if in.OutputWorkspaceResourceIdsRefs != nil { + in, out := &in.OutputWorkspaceResourceIdsRefs, &out.OutputWorkspaceResourceIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.OutputWorkspaceResourceIdsSelector != nil { + in, out := &in.OutputWorkspaceResourceIdsSelector, &out.OutputWorkspaceResourceIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Tags != nil { in, out := &in.Tags, &out.Tags *out = make(map[string]*string, len(*in)) @@ -4315,6 +4327,18 @@ func (in *ConnectionMonitorParameters) DeepCopyInto(out *ConnectionMonitorParame } } } + if in.OutputWorkspaceResourceIdsRefs != nil { + in, out := &in.OutputWorkspaceResourceIdsRefs, &out.OutputWorkspaceResourceIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.OutputWorkspaceResourceIdsSelector != nil { + in, out := &in.OutputWorkspaceResourceIdsSelector, &out.OutputWorkspaceResourceIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Tags != nil { in, out := &in.Tags, &out.Tags *out = make(map[string]*string, len(*in)) diff --git a/apis/network/v1beta1/zz_generated.resolvers.go b/apis/network/v1beta1/zz_generated.resolvers.go index 7bf347835..2394f1fa9 100644 --- a/apis/network/v1beta1/zz_generated.resolvers.go +++ b/apis/network/v1beta1/zz_generated.resolvers.go @@ -377,6 +377,7 @@ func (mg *ConnectionMonitor) ResolveReferences(ctx context.Context, c client.Rea r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error { m, l, err = apisresolver.GetManagedResource("network.azure.upbound.io", "v1beta1", "Watcher", "WatcherList") @@ -397,6 +398,44 @@ func (mg *ConnectionMonitor) ResolveReferences(ctx context.Context, c client.Rea } mg.Spec.ForProvider.NetworkWatcherID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.NetworkWatcherIDRef = rsp.ResolvedReference + { + m, l, err = apisresolver.GetManagedResource("operationalinsights.azure.upbound.io", "v1beta2", "Workspace", "WorkspaceList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.OutputWorkspaceResourceIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.OutputWorkspaceResourceIdsRefs, + Selector: mg.Spec.ForProvider.OutputWorkspaceResourceIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.OutputWorkspaceResourceIds") + } + mg.Spec.ForProvider.OutputWorkspaceResourceIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.OutputWorkspaceResourceIdsRefs = mrsp.ResolvedReferences + { + m, l, err = apisresolver.GetManagedResource("operationalinsights.azure.upbound.io", "v1beta2", "Workspace", "WorkspaceList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.OutputWorkspaceResourceIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.OutputWorkspaceResourceIdsRefs, + Selector: mg.Spec.InitProvider.OutputWorkspaceResourceIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.OutputWorkspaceResourceIds") + } + mg.Spec.InitProvider.OutputWorkspaceResourceIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.OutputWorkspaceResourceIdsRefs = mrsp.ResolvedReferences return nil } diff --git a/apis/sql/v1beta1/zz_generated.deepcopy.go b/apis/sql/v1beta1/zz_generated.deepcopy.go index 229e270f1..00281941c 100644 --- a/apis/sql/v1beta1/zz_generated.deepcopy.go +++ b/apis/sql/v1beta1/zz_generated.deepcopy.go @@ -250,6 +250,18 @@ func (in *IdentityInitParameters) DeepCopyInto(out *IdentityInitParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -312,6 +324,18 @@ func (in *IdentityParameters) DeepCopyInto(out *IdentityParameters) { } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -5307,6 +5331,18 @@ func (in *MSSQLServerIdentityInitParameters) DeepCopyInto(out *MSSQLServerIdenti } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) @@ -5379,6 +5415,18 @@ func (in *MSSQLServerIdentityParameters) DeepCopyInto(out *MSSQLServerIdentityPa } } } + if in.IdentityIdsRefs != nil { + in, out := &in.IdentityIdsRefs, &out.IdentityIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.IdentityIdsSelector != nil { + in, out := &in.IdentityIdsSelector, &out.IdentityIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } if in.Type != nil { in, out := &in.Type, &out.Type *out = new(string) diff --git a/apis/sql/v1beta1/zz_generated.resolvers.go b/apis/sql/v1beta1/zz_generated.resolvers.go index 04a392dc4..f78787fcb 100644 --- a/apis/sql/v1beta1/zz_generated.resolvers.go +++ b/apis/sql/v1beta1/zz_generated.resolvers.go @@ -26,13 +26,35 @@ func (mg *MSSQLDatabase) ResolveReferences( // ResolveReferences of this MSSQLDa r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.ForProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Identity[i3].IdentityIds") + } + mg.Spec.ForProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("sql.azure.upbound.io", "v1beta1", "MSSQLServer", "MSSQLServerList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ServerID), Extract: rconfig.ExtractResourceID(), @@ -65,12 +87,33 @@ func (mg *MSSQLDatabase) ResolveReferences( // ResolveReferences of this MSSQLDa } mg.Spec.ForProvider.TransparentDataEncryptionKeyVaultKeyID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.TransparentDataEncryptionKeyVaultKeyIDRef = rsp.ResolvedReference + + for i3 := 0; i3 < len(mg.Spec.InitProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.InitProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Identity[i3].IdentityIds") + } + mg.Spec.InitProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("keyvault.azure.upbound.io", "v1beta1", "Key", "KeyList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.InitProvider.TransparentDataEncryptionKeyVaultKeyID), Extract: resource.ExtractResourceID(), @@ -846,6 +889,7 @@ func (mg *MSSQLServer) ResolveReferences(ctx context.Context, c client.Reader) e r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error for i3 := 0; i3 < len(mg.Spec.ForProvider.AzureadAdministrator); i3++ { @@ -889,6 +933,27 @@ func (mg *MSSQLServer) ResolveReferences(ctx context.Context, c client.Reader) e mg.Spec.ForProvider.AzureadAdministrator[i3].ObjectID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.AzureadAdministrator[i3].ObjectIDRef = rsp.ResolvedReference + } + for i3 := 0; i3 < len(mg.Spec.ForProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.ForProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.Identity[i3].IdentityIds") + } + mg.Spec.ForProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + } { m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") @@ -988,6 +1053,27 @@ func (mg *MSSQLServer) ResolveReferences(ctx context.Context, c client.Reader) e mg.Spec.InitProvider.AzureadAdministrator[i3].ObjectID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.InitProvider.AzureadAdministrator[i3].ObjectIDRef = rsp.ResolvedReference + } + for i3 := 0; i3 < len(mg.Spec.InitProvider.Identity); i3++ { + { + m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.Identity[i3].IdentityIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs, + Selector: mg.Spec.InitProvider.Identity[i3].IdentityIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.Identity[i3].IdentityIds") + } + mg.Spec.InitProvider.Identity[i3].IdentityIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.Identity[i3].IdentityIdsRefs = mrsp.ResolvedReferences + } { m, l, err = apisresolver.GetManagedResource("managedidentity.azure.upbound.io", "v1beta1", "UserAssignedIdentity", "UserAssignedIdentityList") diff --git a/apis/storage/v1beta1/zz_generated.deepcopy.go b/apis/storage/v1beta1/zz_generated.deepcopy.go index a024c2cda..de9ae2218 100644 --- a/apis/storage/v1beta1/zz_generated.deepcopy.go +++ b/apis/storage/v1beta1/zz_generated.deepcopy.go @@ -6460,6 +6460,18 @@ func (in *NetworkRulesInitParameters) DeepCopyInto(out *NetworkRulesInitParamete } } } + if in.VirtualNetworkSubnetIdsRefs != nil { + in, out := &in.VirtualNetworkSubnetIdsRefs, &out.VirtualNetworkSubnetIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VirtualNetworkSubnetIdsSelector != nil { + in, out := &in.VirtualNetworkSubnetIdsSelector, &out.VirtualNetworkSubnetIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRulesInitParameters. @@ -6580,6 +6592,18 @@ func (in *NetworkRulesParameters) DeepCopyInto(out *NetworkRulesParameters) { } } } + if in.VirtualNetworkSubnetIdsRefs != nil { + in, out := &in.VirtualNetworkSubnetIdsRefs, &out.VirtualNetworkSubnetIdsRefs + *out = make([]v1.Reference, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VirtualNetworkSubnetIdsSelector != nil { + in, out := &in.VirtualNetworkSubnetIdsSelector, &out.VirtualNetworkSubnetIdsSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRulesParameters. diff --git a/apis/storage/v1beta1/zz_generated.resolvers.go b/apis/storage/v1beta1/zz_generated.resolvers.go index 7fae36f10..c744c658e 100644 --- a/apis/storage/v1beta1/zz_generated.resolvers.go +++ b/apis/storage/v1beta1/zz_generated.resolvers.go @@ -27,13 +27,35 @@ func (mg *Account) ResolveReferences(ctx context.Context, c client.Reader) error r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse + var mrsp reference.MultiResolutionResponse var err error + + for i3 := 0; i3 < len(mg.Spec.ForProvider.NetworkRules); i3++ { + { + m, l, err = apisresolver.GetManagedResource("network.azure.upbound.io", "v1beta2", "Subnet", "SubnetList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.NetworkRules[i3].VirtualNetworkSubnetIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.ForProvider.NetworkRules[i3].VirtualNetworkSubnetIdsRefs, + Selector: mg.Spec.ForProvider.NetworkRules[i3].VirtualNetworkSubnetIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.NetworkRules[i3].VirtualNetworkSubnetIds") + } + mg.Spec.ForProvider.NetworkRules[i3].VirtualNetworkSubnetIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.NetworkRules[i3].VirtualNetworkSubnetIdsRefs = mrsp.ResolvedReferences + + } { m, l, err = apisresolver.GetManagedResource("azure.upbound.io", "v1beta1", "ResourceGroup", "ResourceGroupList") if err != nil { return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") } - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ResourceGroupName), Extract: reference.ExternalName(), @@ -48,6 +70,28 @@ func (mg *Account) ResolveReferences(ctx context.Context, c client.Reader) error mg.Spec.ForProvider.ResourceGroupName = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.ResourceGroupNameRef = rsp.ResolvedReference + for i3 := 0; i3 < len(mg.Spec.InitProvider.NetworkRules); i3++ { + { + m, l, err = apisresolver.GetManagedResource("network.azure.upbound.io", "v1beta2", "Subnet", "SubnetList") + if err != nil { + return errors.Wrap(err, "failed to get the reference target managed resource and its list for reference resolution") + } + mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ + CurrentValues: reference.FromPtrValues(mg.Spec.InitProvider.NetworkRules[i3].VirtualNetworkSubnetIds), + Extract: resource.ExtractResourceID(), + References: mg.Spec.InitProvider.NetworkRules[i3].VirtualNetworkSubnetIdsRefs, + Selector: mg.Spec.InitProvider.NetworkRules[i3].VirtualNetworkSubnetIdsSelector, + To: reference.To{List: l, Managed: m}, + }) + } + if err != nil { + return errors.Wrap(err, "mg.Spec.InitProvider.NetworkRules[i3].VirtualNetworkSubnetIds") + } + mg.Spec.InitProvider.NetworkRules[i3].VirtualNetworkSubnetIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.InitProvider.NetworkRules[i3].VirtualNetworkSubnetIdsRefs = mrsp.ResolvedReferences + + } + return nil } diff --git a/examples/consumption/v1beta1/budgetresourcegroup.yaml b/examples/consumption/v1beta1/budgetresourcegroup.yaml index ddbde1d72..04a147bc6 100644 --- a/examples/consumption/v1beta1/budgetresourcegroup.yaml +++ b/examples/consumption/v1beta1/budgetresourcegroup.yaml @@ -29,8 +29,8 @@ spec: testing.upbound.io/example-name: consumeexamplerg timeGrain: Monthly timePeriod: - - endDate: "2023-07-01T00:00:00Z" - startDate: "2023-06-01T00:00:00Z" + - endDate: "2024-12-01T00:00:00Z" + startDate: "2024-11-01T00:00:00Z" --- diff --git a/examples/containerapp/v1beta1/containerapp-with-secret.yaml b/examples/containerapp/v1beta1/containerapp-with-secret.yaml index ba7d36c7c..81b643f41 100644 --- a/examples/containerapp/v1beta1/containerapp-with-secret.yaml +++ b/examples/containerapp/v1beta1/containerapp-with-secret.yaml @@ -55,7 +55,7 @@ metadata: name: example-env spec: forProvider: - location: West Europe + location: East US logAnalyticsWorkspaceIdSelector: matchLabels: testing.upbound.io/example-name: example @@ -73,7 +73,7 @@ metadata: name: example-wr spec: forProvider: - location: West Europe + location: East US resourceGroupNameSelector: matchLabels: testing.upbound.io/example-name: example @@ -90,4 +90,4 @@ metadata: name: example-rg-capp spec: forProvider: - location: West Europe + location: East US diff --git a/package/crds/alertsmanagement.azure.upbound.io_monitoractionruleactiongroups.yaml b/package/crds/alertsmanagement.azure.upbound.io_monitoractionruleactiongroups.yaml index 3b9d6845d..45a5fc7c0 100644 --- a/package/crds/alertsmanagement.azure.upbound.io_monitoractionruleactiongroups.yaml +++ b/package/crds/alertsmanagement.azure.upbound.io_monitoractionruleactiongroups.yaml @@ -376,6 +376,85 @@ spec: type: string type: array x-kubernetes-list-type: set + resourceIdsRefs: + description: References to ResourceGroup in azure to populate + resourceIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + resourceIdsSelector: + description: Selector for a list of ResourceGroup in azure + to populate resourceIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of target scope. Possible values are ResourceGroup and Resource. @@ -623,6 +702,85 @@ spec: type: string type: array x-kubernetes-list-type: set + resourceIdsRefs: + description: References to ResourceGroup in azure to populate + resourceIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + resourceIdsSelector: + description: Selector for a list of ResourceGroup in azure + to populate resourceIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of target scope. Possible values are ResourceGroup and Resource. diff --git a/package/crds/alertsmanagement.azure.upbound.io_monitoractionrulesuppressions.yaml b/package/crds/alertsmanagement.azure.upbound.io_monitoractionrulesuppressions.yaml index 43e592d24..afd084f46 100644 --- a/package/crds/alertsmanagement.azure.upbound.io_monitoractionrulesuppressions.yaml +++ b/package/crds/alertsmanagement.azure.upbound.io_monitoractionrulesuppressions.yaml @@ -297,6 +297,85 @@ spec: type: string type: array x-kubernetes-list-type: set + resourceIdsRefs: + description: References to ResourceGroup in azure to populate + resourceIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + resourceIdsSelector: + description: Selector for a list of ResourceGroup in azure + to populate resourceIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of target scope. Possible values are ResourceGroup and Resource. @@ -506,6 +585,85 @@ spec: type: string type: array x-kubernetes-list-type: set + resourceIdsRefs: + description: References to ResourceGroup in azure to populate + resourceIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + resourceIdsSelector: + description: Selector for a list of ResourceGroup in azure + to populate resourceIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of target scope. Possible values are ResourceGroup and Resource. diff --git a/package/crds/appconfiguration.azure.upbound.io_configurations.yaml b/package/crds/appconfiguration.azure.upbound.io_configurations.yaml index 94cb23601..b675be0fc 100644 --- a/package/crds/appconfiguration.azure.upbound.io_configurations.yaml +++ b/package/crds/appconfiguration.azure.upbound.io_configurations.yaml @@ -250,6 +250,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this App Configuration. Possible @@ -575,6 +654,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this App Configuration. Possible diff --git a/package/crds/consumption.azure.upbound.io_budgetmanagementgroups.yaml b/package/crds/consumption.azure.upbound.io_budgetmanagementgroups.yaml index 7b1e602f9..daef04232 100644 --- a/package/crds/consumption.azure.upbound.io_budgetmanagementgroups.yaml +++ b/package/crds/consumption.azure.upbound.io_budgetmanagementgroups.yaml @@ -100,6 +100,85 @@ spec: items: type: string type: array + valuesRefs: + description: References to ResourceGroup in azure + to populate values. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + valuesSelector: + description: Selector for a list of ResourceGroup + in azure to populate values. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with + matching labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array not: @@ -357,6 +436,85 @@ spec: items: type: string type: array + valuesRefs: + description: References to ResourceGroup in azure + to populate values. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + valuesSelector: + description: Selector for a list of ResourceGroup + in azure to populate values. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with + matching labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array not: diff --git a/package/crds/consumption.azure.upbound.io_budgetresourcegroups.yaml b/package/crds/consumption.azure.upbound.io_budgetresourcegroups.yaml index 5e400b1e5..fe4bffd15 100644 --- a/package/crds/consumption.azure.upbound.io_budgetresourcegroups.yaml +++ b/package/crds/consumption.azure.upbound.io_budgetresourcegroups.yaml @@ -100,6 +100,85 @@ spec: items: type: string type: array + valuesRefs: + description: References to MonitorActionGroup in insights + to populate values. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + valuesSelector: + description: Selector for a list of MonitorActionGroup + in insights to populate values. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with + matching labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array not: @@ -194,6 +273,85 @@ spec: items: type: string type: array + contactGroupsRefs: + description: References to MonitorActionGroup in insights + to populate contactGroups. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + contactGroupsSelector: + description: Selector for a list of MonitorActionGroup in + insights to populate contactGroups. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object contactRoles: description: Specifies a list of contact roles to send the budget notification to when the threshold is exceeded. @@ -371,6 +529,85 @@ spec: items: type: string type: array + valuesRefs: + description: References to MonitorActionGroup in insights + to populate values. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + valuesSelector: + description: Selector for a list of MonitorActionGroup + in insights to populate values. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with + matching labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array not: @@ -465,6 +702,85 @@ spec: items: type: string type: array + contactGroupsRefs: + description: References to MonitorActionGroup in insights + to populate contactGroups. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + contactGroupsSelector: + description: Selector for a list of MonitorActionGroup in + insights to populate contactGroups. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object contactRoles: description: Specifies a list of contact roles to send the budget notification to when the threshold is exceeded. diff --git a/package/crds/consumption.azure.upbound.io_budgetsubscriptions.yaml b/package/crds/consumption.azure.upbound.io_budgetsubscriptions.yaml index a1acca548..6f954c908 100644 --- a/package/crds/consumption.azure.upbound.io_budgetsubscriptions.yaml +++ b/package/crds/consumption.azure.upbound.io_budgetsubscriptions.yaml @@ -100,6 +100,85 @@ spec: items: type: string type: array + valuesRefs: + description: References to ResourceGroup in azure + to populate values. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + valuesSelector: + description: Selector for a list of ResourceGroup + in azure to populate values. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with + matching labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array not: @@ -368,6 +447,85 @@ spec: items: type: string type: array + valuesRefs: + description: References to ResourceGroup in azure + to populate values. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + valuesSelector: + description: Selector for a list of ResourceGroup + in azure to populate values. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with + matching labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array not: diff --git a/package/crds/containerregistry.azure.upbound.io_registries.yaml b/package/crds/containerregistry.azure.upbound.io_registries.yaml index d49503b1c..d9377718b 100644 --- a/package/crds/containerregistry.azure.upbound.io_registries.yaml +++ b/package/crds/containerregistry.azure.upbound.io_registries.yaml @@ -222,6 +222,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this Container Registry. @@ -642,6 +721,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this Container Registry. diff --git a/package/crds/cosmosdb.azure.upbound.io_accounts.yaml b/package/crds/cosmosdb.azure.upbound.io_accounts.yaml index 49ca56b9b..45b0d40f7 100644 --- a/package/crds/cosmosdb.azure.upbound.io_accounts.yaml +++ b/package/crds/cosmosdb.azure.upbound.io_accounts.yaml @@ -283,6 +283,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: The Type of Managed Identity assigned to this Cosmos account. Possible values are SystemAssigned, UserAssigned @@ -817,6 +896,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: The Type of Managed Identity assigned to this Cosmos account. Possible values are SystemAssigned, UserAssigned diff --git a/package/crds/insights.azure.upbound.io_monitordatacollectionrules.yaml b/package/crds/insights.azure.upbound.io_monitordatacollectionrules.yaml index 78532a226..cc244f60c 100644 --- a/package/crds/insights.azure.upbound.io_monitordatacollectionrules.yaml +++ b/package/crds/insights.azure.upbound.io_monitordatacollectionrules.yaml @@ -980,6 +980,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this Data Collection Rule. @@ -2036,6 +2115,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this Data Collection Rule. diff --git a/package/crds/insights.azure.upbound.io_monitorscheduledqueryrulesalerts.yaml b/package/crds/insights.azure.upbound.io_monitorscheduledqueryrulesalerts.yaml index 77647d592..13b6d0feb 100644 --- a/package/crds/insights.azure.upbound.io_monitorscheduledqueryrulesalerts.yaml +++ b/package/crds/insights.azure.upbound.io_monitorscheduledqueryrulesalerts.yaml @@ -180,6 +180,85 @@ spec: type: string type: array x-kubernetes-list-type: set + authorizedResourceIdsRefs: + description: References to ApplicationInsights in insights to + populate authorizedResourceIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + authorizedResourceIdsSelector: + description: Selector for a list of ApplicationInsights in insights + to populate authorizedResourceIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object autoMitigationEnabled: description: |- Should the alerts in this Metric Alert be auto resolved? Defaults to false. @@ -552,6 +631,85 @@ spec: type: string type: array x-kubernetes-list-type: set + authorizedResourceIdsRefs: + description: References to ApplicationInsights in insights to + populate authorizedResourceIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + authorizedResourceIdsSelector: + description: Selector for a list of ApplicationInsights in insights + to populate authorizedResourceIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object autoMitigationEnabled: description: |- Should the alerts in this Metric Alert be auto resolved? Defaults to false. diff --git a/package/crds/insights.azure.upbound.io_monitorscheduledqueryrulesalertv2s.yaml b/package/crds/insights.azure.upbound.io_monitorscheduledqueryrulesalertv2s.yaml index 8a8f10379..0fc0ee1ff 100644 --- a/package/crds/insights.azure.upbound.io_monitorscheduledqueryrulesalertv2s.yaml +++ b/package/crds/insights.azure.upbound.io_monitorscheduledqueryrulesalertv2s.yaml @@ -85,6 +85,85 @@ spec: items: type: string type: array + actionGroupsRefs: + description: References to MonitorActionGroup in insights + to populate actionGroups. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + actionGroupsSelector: + description: Selector for a list of MonitorActionGroup in + insights to populate actionGroups. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object customProperties: additionalProperties: type: string @@ -200,6 +279,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this Scheduled Query Rule. @@ -454,6 +612,85 @@ spec: items: type: string type: array + actionGroupsRefs: + description: References to MonitorActionGroup in insights + to populate actionGroups. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + actionGroupsSelector: + description: Selector for a list of MonitorActionGroup in + insights to populate actionGroups. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object customProperties: additionalProperties: type: string @@ -569,6 +806,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this Scheduled Query Rule. diff --git a/package/crds/labservices.azure.upbound.io_labserviceplans.yaml b/package/crds/labservices.azure.upbound.io_labserviceplans.yaml index 5fe86d7ab..93de1539f 100644 --- a/package/crds/labservices.azure.upbound.io_labserviceplans.yaml +++ b/package/crds/labservices.azure.upbound.io_labserviceplans.yaml @@ -80,6 +80,85 @@ spec: items: type: string type: array + allowedRegionsRefs: + description: References to ResourceGroup in azure to populate + allowedRegions. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + allowedRegionsSelector: + description: Selector for a list of ResourceGroup in azure to + populate allowedRegions. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object defaultAutoShutdown: description: A default_auto_shutdown block as defined below. items: @@ -346,6 +425,85 @@ spec: items: type: string type: array + allowedRegionsRefs: + description: References to ResourceGroup in azure to populate + allowedRegions. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + allowedRegionsSelector: + description: Selector for a list of ResourceGroup in azure to + populate allowedRegions. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object defaultAutoShutdown: description: A default_auto_shutdown block as defined below. items: @@ -679,10 +837,6 @@ spec: - forProvider type: object x-kubernetes-validations: - - message: spec.forProvider.allowedRegions is a required parameter - rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies - || ''Update'' in self.managementPolicies) || has(self.forProvider.allowedRegions) - || (has(self.initProvider) && has(self.initProvider.allowedRegions))' - message: spec.forProvider.location is a required parameter rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies || ''Update'' in self.managementPolicies) || has(self.forProvider.location) diff --git a/package/crds/machinelearningservices.azure.upbound.io_workspaces.yaml b/package/crds/machinelearningservices.azure.upbound.io_workspaces.yaml index 15aede22d..9e2f0c401 100644 --- a/package/crds/machinelearningservices.azure.upbound.io_workspaces.yaml +++ b/package/crds/machinelearningservices.azure.upbound.io_workspaces.yaml @@ -443,6 +443,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this Machine Learning Workspace. @@ -1294,6 +1373,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this Machine Learning Workspace. diff --git a/package/crds/netapp.azure.upbound.io_accounts.yaml b/package/crds/netapp.azure.upbound.io_accounts.yaml index 67c58242f..0dd3eaa6e 100644 --- a/package/crds/netapp.azure.upbound.io_accounts.yaml +++ b/package/crds/netapp.azure.upbound.io_accounts.yaml @@ -186,6 +186,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: The identity type, which can be SystemAssigned or UserAssigned. Only one type at a time is supported @@ -392,6 +471,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: The identity type, which can be SystemAssigned or UserAssigned. Only one type at a time is supported diff --git a/package/crds/network.azure.upbound.io_connectionmonitors.yaml b/package/crds/network.azure.upbound.io_connectionmonitors.yaml index f8833bdb9..8419280e1 100644 --- a/package/crds/network.azure.upbound.io_connectionmonitors.yaml +++ b/package/crds/network.azure.upbound.io_connectionmonitors.yaml @@ -233,6 +233,85 @@ spec: type: string type: array x-kubernetes-list-type: set + outputWorkspaceResourceIdsRefs: + description: References to Workspace in operationalinsights to + populate outputWorkspaceResourceIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + outputWorkspaceResourceIdsSelector: + description: Selector for a list of Workspace in operationalinsights + to populate outputWorkspaceResourceIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object tags: additionalProperties: type: string @@ -473,6 +552,85 @@ spec: type: string type: array x-kubernetes-list-type: set + outputWorkspaceResourceIdsRefs: + description: References to Workspace in operationalinsights to + populate outputWorkspaceResourceIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + outputWorkspaceResourceIdsSelector: + description: Selector for a list of Workspace in operationalinsights + to populate outputWorkspaceResourceIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching labels + is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object tags: additionalProperties: type: string diff --git a/package/crds/sql.azure.upbound.io_mssqldatabases.yaml b/package/crds/sql.azure.upbound.io_mssqldatabases.yaml index 02f60f907..118dca8ab 100644 --- a/package/crds/sql.azure.upbound.io_mssqldatabases.yaml +++ b/package/crds/sql.azure.upbound.io_mssqldatabases.yaml @@ -119,6 +119,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this SQL Database. Possible @@ -626,6 +705,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this SQL Database. Possible diff --git a/package/crds/sql.azure.upbound.io_mssqlservers.yaml b/package/crds/sql.azure.upbound.io_mssqlservers.yaml index 1dec4d2b4..6678ab01e 100644 --- a/package/crds/sql.azure.upbound.io_mssqlservers.yaml +++ b/package/crds/sql.azure.upbound.io_mssqlservers.yaml @@ -292,6 +292,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this SQL Server. Possible @@ -801,6 +880,85 @@ spec: type: string type: array x-kubernetes-list-type: set + identityIdsRefs: + description: References to UserAssignedIdentity in managedidentity + to populate identityIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + identityIdsSelector: + description: Selector for a list of UserAssignedIdentity + in managedidentity to populate identityIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: description: Specifies the type of Managed Service Identity that should be configured on this SQL Server. Possible diff --git a/package/crds/storage.azure.upbound.io_accounts.yaml b/package/crds/storage.azure.upbound.io_accounts.yaml index 681cb8d61..203d4d2a9 100644 --- a/package/crds/storage.azure.upbound.io_accounts.yaml +++ b/package/crds/storage.azure.upbound.io_accounts.yaml @@ -436,6 +436,85 @@ spec: type: string type: array x-kubernetes-list-type: set + virtualNetworkSubnetIdsRefs: + description: References to Subnet in network to populate + virtualNetworkSubnetIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + virtualNetworkSubnetIdsSelector: + description: Selector for a list of Subnet in network to + populate virtualNetworkSubnetIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array nfsv3Enabled: @@ -1177,6 +1256,85 @@ spec: type: string type: array x-kubernetes-list-type: set + virtualNetworkSubnetIdsRefs: + description: References to Subnet in network to populate + virtualNetworkSubnetIds. + items: + description: A Reference to a named object. + properties: + name: + description: Name of the referenced object. + type: string + policy: + description: Policies for referencing. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + required: + - name + type: object + type: array + virtualNetworkSubnetIdsSelector: + description: Selector for a list of Subnet in network to + populate virtualNetworkSubnetIds. + properties: + matchControllerRef: + description: |- + MatchControllerRef ensures an object with the same controller reference + as the selecting object is selected. + type: boolean + matchLabels: + additionalProperties: + type: string + description: MatchLabels ensures an object with matching + labels is selected. + type: object + policy: + description: Policies for selection. + properties: + resolution: + default: Required + description: |- + Resolution specifies whether resolution of this reference is required. + The default is 'Required', which means the reconcile will fail if the + reference cannot be resolved. 'Optional' means this reference will be + a no-op if it cannot be resolved. + enum: + - Required + - Optional + type: string + resolve: + description: |- + Resolve specifies when this reference should be resolved. The default + is 'IfNotPresent', which will attempt to resolve the reference only when + the corresponding field is not present. Use 'Always' to resolve the + reference on every reconcile. + enum: + - Always + - IfNotPresent + type: string + type: object + type: object type: object type: array nfsv3Enabled: