diff --git a/nested_K8sCustomIngressTlsHostsHaveDefinedDomainSuffix.bicep b/nested_K8sCustomIngressTlsHostsHaveDefinedDomainSuffix.bicep index 1517a42a..d1bc2c61 100644 --- a/nested_K8sCustomIngressTlsHostsHaveDefinedDomainSuffix.bicep +++ b/nested_K8sCustomIngressTlsHostsHaveDefinedDomainSuffix.bicep @@ -84,6 +84,57 @@ resource pdK8sCustomIngressTlsHostsHaveDefinedDomainSuffix 'Microsoft.Authorizat } defaultValue: { } + schema: { + description: 'A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all resources.' + type: 'object' + properties: { + matchLabels: { + description: 'matchLabels is a map of {key,value} pairs.' + type: 'object' + additionalProperties: { + type: 'string' + } + minProperties: 1 + } + matchExpressions: { + description: 'matchExpressions is a list of values, a key, and an operator.' + type: 'array' + items: { + type: 'object' + properties: { + key: { + description: 'key is the label key that the selector applies to.' + type: 'string' + } + operator: { + description: 'operator represents a key\'s relationship to a set of values.' + type: 'string' + enum: [ + 'In' + 'NotIn' + 'Exists' + 'DoesNotExist' + ] + } + values: { + description: 'values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.' + type: 'array' + items: { + type: 'string' + } + } + } + required: [ + 'key' + 'operator' + ] + additionalProperties: false + } + minItems: 1 + } + } + additionalProperties: false + } } allowedDomainSuffixes: { type: 'Array'