Skip to content

Commit

Permalink
Add Microsoft.KubernetesConfiguration to azure api specs
Browse files Browse the repository at this point in the history
  • Loading branch information
NarayanThiru committed Apr 6, 2020
1 parent 5b818ee commit e0889b2
Show file tree
Hide file tree
Showing 6 changed files with 900 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.Kubernetes",
"clusterResourceName": "connectedClusters",
"sourceControlConfigurationName": "SRS_GitHubConfig",
"api-version": "2019-11-01-preview",
"clusterName": "clusterName1",
"sourceControlConfiguration": {
"properties":{
"repositoryUrl": "[email protected]:k8sdeveloper425/flux-get-started",
"operatorNamespace": "SRS_Namespace",
"operatorInstanceName": "SRSGitHubFluxOp-01",
"operatorType": "Flux",
"operatorScope": "namespace",
"operatorParams": "[email protected]",
"enableHelmOperator": "true",
"helmOperatorProperties": {
"chartVersion": "0.3.0",
"chartValues" : "--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system"
}
}
}
},
"responses": {
"201": {
"headers": {},
"description": "Details of the Kubernetes Configuration's current status.",
"body": {
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/SRS_GitHubConfig",
"type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations",
"name": "SRS_GitHubConfig",
"properties": {
"repositoryUrl": "[email protected]:k8sdeveloper425/flux-get-started",
"operatorNamespace": "SRS_Namespace",
"operatorInstanceName": "SRSGitHubFluxOp-01",
"operatorType": "Flux",
"operatorScope": "namespace",
"operatorParams": "[email protected]",
"enableHelmOperator": "true",
"helmOperatorProperties": {
"chartVersion": "0.3.0",
"chartValues" : "--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system"
},
"repositoryPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAqvTzeL+BWgcHnC1CTBRMg2ZfCh9khlrvb2avFHiGG24rRvjLHlKqtfiiw+cZNCKskUyVKqamD2RHrhyn/wXvJ9fFRt0LhYLKn4hJhJaPx4IawdWnW1MUv4U+Mr8o3Cxps4EmiZemqri3fOrhzEIlPL272whKpzlDLV7L4W1XQIGmVPwQ93HTzKEd5uHuEuw6JyFftDDLlCnd3Q1kQ7HOabFEfcSSr9cMx2MU4j/Pjuf3Rd/CzeksvKtU009KSXSnWKm8LL1fihSc1H1WDTi8iuZtT63hsNYH1yxrPRpMVScs3ufLViAGO9NEHQSgDdl/OERQQqKisUn2Qm6adgmftw== rsa-key-20190909",
"provisioningState": "Succeeded",
"complianceStatus": {
"complianceState": "Pending",
"lastConfigApplied": "2019-09-10T05:10:57.027Z",
"message": "Configuration successfully created",
"messageLevel": "Info"
}
}
}
},
"200": {
"headers": {},
"description": "Details of the Kubernetes Configuration's current status.",
"body": {
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/SRS_GitHubConfig",
"type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations",
"name": "SRS_GitHubConfig",
"properties": {
"repositoryUrl": "[email protected]:k8sdeveloper425/flux-get-started",
"operatorNamespace": "SRS_Namespace",
"operatorInstanceName": "SRSGitHubFluxOp-01",
"operatorType": "Flux",
"operatorScope": "namespace",
"operatorParams": "[email protected]",
"enableHelmOperator": "true",
"helmOperatorProperties": {
"chartVersion": "0.3.0",
"chartValues" : "--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system"
},
"repositoryPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAqvTzeL+BWgcHnC1CTBRMg2ZfCh9khlrvb2avFHiGG24rRvjLHlKqtfiiw+cZNCKskUyVKqamD2RHrhyn/wXvJ9fFRt0LhYLKn4hJhJaPx4IawdWnW1MUv4U+Mr8o3Cxps4EmiZemqri3fOrhzEIlPL272whKpzlDLV7L4W1XQIGmVPwQ93HTzKEd5uHuEuw6JyFftDDLlCnd3Q1kQ7HOabFEfcSSr9cMx2MU4j/Pjuf3Rd/CzeksvKtU009KSXSnWKm8LL1fihSc1H1WDTi8iuZtT63hsNYH1yxrPRpMVScs3ufLViAGO9NEHQSgDdl/OERQQqKisUn2Qm6adgmftw== rsa-key-20190909",
"provisioningState": "Succeeded",
"complianceStatus": {
"complianceState": "Pending",
"lastConfigApplied": "2019-09-10T05:10:57.027Z",
"message": "Configuration successfully created",
"messageLevel": "Info"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.Kubernetes",
"clusterResourceName": "connectedClusters",
"sourceControlConfigurationName": "SRS_GitHubConfig",
"api-version": "2019-11-01-preview",
"clusterName": "clusterName1"
},
"responses": {
"200": {},
"202": {},
"204":{}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.Kubernetes",
"clusterResourceName": "connectedClusters",
"sourceControlConfigurationName": "SRS_GitHubConfig",
"api-version": "2019-11-01-preview",
"clusterName": "clusterName1"
},
"responses": {
"200": {
"headers": {},
"description": "Details of the Source Control Configuration's current status.",
"body": {
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/SRS_GitHubConfig",
"type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations",
"name": "SRS_GitHubConfig",
"properties": {
"repositoryUrl": "[email protected]:k8sdeveloper425/flux-get-started",
"operatorNamespace": "SRS_Namespace",
"operatorInstanceName": "SRSGitHubFluxOp-01",
"operatorType": "Flux",
"operatorScope": "namespace",
"operatorParams": "[email protected]",
"helmOperatorProperties": {
"chartVersion": "0.3.0",
"chartValues" : "--set git.ssh.secretName=flux-git-deploy --set tillerNamespace=kube-system"
},
"repositoryPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAqvTzeL+BWgcHnC1CTBRMg2ZfCh9khlrvb2avFHiGG24rRvjLHlKqtfiiw+cZNCKskUyVKqamD2RHrhyn/wXvJ9fFRt0LhYLKn4hJhJaPx4IawdWnW1MUv4U+Mr8o3Cxps4EmiZemqri3fOrhzEIlPL272whKpzlDLV7L4W1XQIGmVPwQ93HTzKEd5uHuEuw6JyFftDDLlCnd3Q1kQ7HOabFEfcSSr9cMx2MU4j/Pjuf3Rd/CzeksvKtU009KSXSnWKm8LL1fihSc1H1WDTi8iuZtT63hsNYH1yxrPRpMVScs3ufLViAGO9NEHQSgDdl/OERQQqKisUn2Qm6adgmftw== rsa-key-20190909",
"provisioningState": "Succeeded",
"complianceStatus": {
"complianceState": "Pending",
"lastConfigApplied": "2019-09-10T05:10:57.027Z",
"message": "Configuration successfully created",
"messageLevel": "Info"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.Kubernetes",
"clusterResourceName": "connectedClusters",
"api-version": "2019-11-01-preview",
"clusterName": "clusterName1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/SRS_GitHubConfig",
"type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations",
"name": "SRS_GitHubConfig",
"properties": {
"repositoryUrl": "[email protected]:k8sdeveloper425/SRSClusterconfigs",
"operatorNamespace": "SRS_Namespace",
"operatorInstanceName": "SRSGitHubFluxOp-01",
"operatorType": "Flux",
"operatorScope": "namespace",
"provisioningState": "Succeeded",
"complianceStatus": {
"complianceState": "Compliant"
}
}
},
{
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations/SCRS_GitHubConfig",
"type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations",
"name": "SCRS_GitHubConfig",
"properties": {
"repositoryUrl": "[email protected]:k8sdeveloper425/SCRSClusterconfigs",
"operatorNamespace": "SCRS_Namespace",
"operatorInstanceName": "SCRSGitHubFluxOp-02",
"operatorType": "Flux",
"operatorScope": "cluster",
"provisioningState": "Succeeded",
"complianceStatus": {
"complianceState": "Compliant"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2019-11-01-preview"
},
"responses": {
"200": {
"body": [
{
"name": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/read",
"display": {
"provider": "Microsoft KubernetesConfiguration",
"resource": "sourceControlConfigurations",
"operation": "Get Source Control Configuration",
"description": "Get the specified Source Control Configuration."
}
},
{
"name": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/write",
"display": {
"provider": "Microsoft KubernetesConfiguration",
"resource": "sourceControlConfigurations",
"operation": "Create a Source Control Configuration",
"description": "Create the Source Control Configuration specified."
}
},
{
"name": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/delete",
"display": {
"provider": "Microsoft KubernetesConfiguration",
"resource": "sourceControlConfigurations",
"operation": "Delete Source Control Configuration",
"description": "Delete the specified Source Control Configuration."
}
}
]
}
}
}
Loading

0 comments on commit e0889b2

Please sign in to comment.