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

[Microsoft.KubernetesConfiguration] Add 200 OK to PATCH apis #18977

Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,28 @@
}
},
"responses": {
"200": {
"description": "Extension properties from not updating any property values.",
"body": {
"properties": {
"extensionType": "azuremonitor-containers",
"autoUpgradeMinorVersion": true,
"releaseTrain": "Preview",
"version": "0.1.4",
"scope": {
"cluster": {
"releaseNamespace": "kube-system"
}
},
"configurationSettings": {
"omsagent.secret.wsid": "a38cef99-5a89-52ed-b6db-22095c23664b",
"omsagent.env.clusterName": "clusterName1"
},
"provisioningState": "Succeeded",
"statuses": []
}
}
},
"202": {
"headers": {
"Operation-Location": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/operationId",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,126 @@
}
},
"responses": {
"200": {
"description": "FluxConfiguration properties from not updating any property values.",
"body": {
"properties": {
"scope": "cluster",
"namespace": "srs-namespace",
"sourceKind": "GitRepository",
"suspend": false,
"gitRepository": {
"url": "https://github.com/jonathan-innis/flux2-kustomize-helm-example.git",
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"repositoryRef": {
"branch": "master",
"tag": null,
"semver": null,
"commit": null
}
},
"kustomizations": {
"srs-kustomization2": {
"path": "./test/alt-path",
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 300,
"retryIntervalInSeconds": 600,
"prune": false
},
"srs-kustomization3": {
"path": "./test/another-path",
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 300,
"retryIntervalInSeconds": null,
"prune": false
}
},
"statuses": [
{
"name": "srs-fluxconfig",
"kind": "GitRepository",
"complianceState": "Compliant",
"appliedBy": null,
"helmReleaseProperties": null,
"statusConditions": [
{
"lastTransitionTime": "2021-05-19T18:12:40Z",
"message": "'Fetched revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'",
"reason": "GitOperationSucceed",
"status": "True",
"type": "Ready"
}
]
},
{
"name": "srs-fluxconfig-srs-kustomization1",
"kind": "Kustomization",
"complianceState": "Compliant",
"appliedBy": null,
"helmReleaseProperties": {
"lastRevisionApplied": 1,
"helmChartRef": {
"name": "myname",
"namespace": "mynamespace"
},
"failureCount": null,
"upgradeFailureCount": null,
"installFailureCount": null
},
"statusConditions": [
{
"lastTransitionTime": "2021-05-19T18:12:40Z",
"message": "'Applied revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'",
"reason": "ReconciliationSucceeded",
"status": "True",
"type": "Ready"
}
]
},
{
"name": "srs-fluxconfig-srs-kustomization2",
"kind": "Kustomization",
"complianceState": "Compliant",
"appliedBy": null,
"helmReleaseProperties": {
"lastRevisionApplied": 1,
"helmChartRef": {
"name": "myname",
"namespace": "mynamespace"
},
"failureCount": null,
"upgradeFailureCount": null,
"installFailureCount": null
},
"statusConditions": [
{
"lastTransitionTime": "2021-05-19T18:12:40Z",
"message": "'Applied revision: master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590'",
"reason": "ReconciliationSucceeded",
"status": "True",
"type": "Ready"
}
]
}
],
"repositoryPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiNkrANrhtRy+02Xc7b5bwvgOKvQMbqUQaXeB6FCDkbLaavw/zO/vIhIBEQu+vbBt6IlI/Pui0rMFr5JjA8Vwwd85oabzU07TPzbFvKSU9eCXqWRKWf0DHNQj/kxPJNtyPYFv3lGoiZZ6QzejOxlW/lPPokUePN0oI10daWwqznm2q0Cmh1EgPUYveq3J5KCWncZXCdwY36zWYulCWFaqazoaGy4kxcqlVy+mPjE/UJthaoLm3mq+23uhlmmfCc1j7W6+H6fcOwTyOtcbimxz2Ug8HlTzSTXBPtEe7qyllMyk62EPNUUq4bVoVsex9sKBK6/hW0Cn2P5i5jslUPCQF",
"sourceSyncedCommitId": "master/0ba6f0d30760d567de0bac86c8c4eec13ce1a590",
"sourceUpdatedAt": "2021-05-19T18:17:12Z",
"statusUpdatedAt": "2021-05-19T18:17:12Z",
"complianceState": "Compliant",
"provisioningState": "Succeeded",
"errorMessage": ""
}
}
},
"202": {
"headers": {
"Operation-Location": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/srs-fluxconfig/operations/operationId",
"x-ms-async-operation-timeout": "PT48H",
"Azure-AsyncOperation": "http://management.azure.com/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Kubernetes/ConnectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/srs-fluxconfig/operations/operationId?api-version=2022-03-01"
},
"description": "Extension properties and details of the Patch operation, including AsyncOperation url.",
"description": "FluxConfiguration properties and details of the Patch operation, including AsyncOperation url.",
"body": {
"properties": {
"scope": "cluster",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@
"$ref": "#/definitions/Extension"
}
},
"200": {
"description": "No update is done to extension so return OK.",
"schema": {
"$ref": "#/definitions/Extension"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@
"$ref": "#/definitions/FluxConfiguration"
}
},
"200": {
"description": "No update is done to fluxConfiguration so return OK.",
"schema": {
"$ref": "#/definitions/FluxConfiguration"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
Expand Down