This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validation logic backward compatibility support for custom VNET (#2693)
* Validation logic backward compatibility support for API models converted from prior v20180331 models. * Fix check-style. * Simplify network plugin check. * Change network plugin "none" to "kubenet", remove agent pool nil check. * Set default network values in un-versioned model. * Add defaults for network settings.
- Loading branch information
1 parent
92f7b29
commit cb36601
Showing
10 changed files
with
382 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
pkg/acsengine/testdata/agentPoolOnly/v20180331/agentsWithFullNetworkProfile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"apiVersion": "2018-03-31", | ||
"properties": { | ||
"dnsPrefix": "agents006", | ||
"fqdn": "agents006.azmk8s.io", | ||
"kubernetesVersion": "1.8.7", | ||
"agentPoolProfiles": [ | ||
{ | ||
"name": "agentpool1", | ||
"count": 1, | ||
"vmSize": "Standard_D2_v2", | ||
"vnetSubnetID": "/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" | ||
} | ||
], | ||
"servicePrincipalProfile": { | ||
"clientID": "ServicePrincipalClientID", | ||
"secret": "myServicePrincipalClientSecret" | ||
}, | ||
"networkProfile": { | ||
"networkPlugin": "azure", | ||
"serviceCidr": "10.0.0.0/8", | ||
"dnsServiceIP": "10.0.0.10", | ||
"dockerBridgeCidr": "172.17.0.1/32" | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
pkg/acsengine/testdata/agentPoolOnly/v20180331/agentsWithOnlyNetworkPlugin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"apiVersion": "2018-03-31", | ||
"properties": { | ||
"dnsPrefix": "agents006", | ||
"fqdn": "agents006.azmk8s.io", | ||
"kubernetesVersion": "1.8.7", | ||
"agentPoolProfiles": [ | ||
{ | ||
"name": "agentpool1", | ||
"count": 1, | ||
"vmSize": "Standard_D2_v2", | ||
"vnetSubnetID": "/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" | ||
} | ||
], | ||
"servicePrincipalProfile": { | ||
"clientID": "ServicePrincipalClientID", | ||
"secret": "myServicePrincipalClientSecret" | ||
}, | ||
"networkProfile": { | ||
"networkPlugin": "kubenet" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.