Skip to content

Commit

Permalink
fix: cognitive_deployment externalname template
Browse files Browse the repository at this point in the history
  • Loading branch information
mirza-src committed Apr 11, 2024
1 parent 75564c3 commit fc4482c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 128 deletions.
13 changes: 0 additions & 13 deletions apis/cognitiveservices/v1beta1/zz_deployment_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions apis/cognitiveservices/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions apis/cognitiveservices/v1beta1/zz_generated.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/externalname.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ var TerraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{
// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.CognitiveServices/accounts/account1
"azurerm_cognitive_account": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.CognitiveServices/accounts/{{ .external_name }}"),
// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.CognitiveServices/accounts/account1/deployments/deployment1
"azurerm_cognitive_deployment": config.TemplatedStringAsIdentifier("name", "/subscriptions/{{ .setup.configuration.subscription_id }}/resourceGroups/{{ .parameters.resource_group_name }}/providers/Microsoft.CognitiveServices/accounts/{{ .parameters.account_name }}/deployments/{{ .external_name }}"),
"azurerm_cognitive_deployment": config.TemplatedStringAsIdentifier("name", "{{ .parameters.cognitive_account_id }}/deployments/{{ .external_name }}"),

// communication
//
Expand Down
80 changes: 0 additions & 80 deletions package/crds/cognitiveservices.azure.upbound.io_deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,86 +234,6 @@ spec:
for example because of an external controller is managing them, like an
autoscaler.
properties:
cognitiveAccountId:
description: The ID of the Cognitive Services Account. Changing
this forces a new resource to be created.
type: string
cognitiveAccountIdRef:
description: Reference to a Account in cognitiveservices to populate
cognitiveAccountId.
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
cognitiveAccountIdSelector:
description: Selector for a Account in cognitiveservices to populate
cognitiveAccountId.
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
model:
description: A model block as defined below. Changing this forces
a new resource to be created.
Expand Down

0 comments on commit fc4482c

Please sign in to comment.