Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR kubernetesconfiguration] remove unnecessary bool enums #1296

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 142 additions & 0 deletions schemas/2019-11-01-preview/Microsoft.KubernetesConfiguration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"id": "https://schema.management.azure.com/schemas/2019-11-01-preview/Microsoft.KubernetesConfiguration.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.KubernetesConfiguration",
"description": "Microsoft KubernetesConfiguration Resource Types",
"resourceDefinitions": {},
"extension_resourceDefinitions": {
"sourceControlConfigurations": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2019-11-01-preview"
]
},
"name": {
"type": "string",
"description": "Name of the Source Control Configuration."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/SourceControlConfigurationProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties to create a Source Control Configuration resource"
},
"type": {
"type": "string",
"enum": [
"Microsoft.KubernetesConfiguration/sourceControlConfigurations"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.KubernetesConfiguration/sourceControlConfigurations"
}
},
"definitions": {
"HelmOperatorProperties": {
"type": "object",
"properties": {
"chartValues": {
"type": "string",
"description": "Values override for the operator Helm chart."
},
"chartVersion": {
"type": "string",
"description": "Version of the operator Helm chart."
}
},
"description": "Properties for Helm operator."
},
"SourceControlConfigurationProperties": {
"type": "object",
"properties": {
"enableHelmOperator": {
"oneOf": [
{
"type": "string",
"enum": [
"true",
"false"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Option to enable Helm Operator for this git configuration."
},
"helmOperatorProperties": {
"oneOf": [
{
"$ref": "#/definitions/HelmOperatorProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties for Helm operator."
},
"operatorInstanceName": {
"type": "string",
"description": "Instance name of the operator - identifying the specific configuration."
},
"operatorNamespace": {
"type": "string",
"default": "default",
"description": "The namespace to which this operator is installed to. Maximum of 253 lower case alphanumeric characters, hyphen and period only."
},
"operatorParams": {
"type": "string",
"description": "Any Parameters for the Operator instance in string format."
},
"operatorScope": {
"oneOf": [
{
"type": "string",
"enum": [
"cluster",
"namespace"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Scope at which the operator will be installed."
},
"operatorType": {
"oneOf": [
{
"type": "string",
"enum": [
"Flux"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Type of the operator."
},
"repositoryUrl": {
"type": "string",
"description": "Url of the SourceControl Repository."
}
},
"description": "Properties to create a Source Control Configuration resource"
}
}
}