private ContainerServiceNetworkProfile GetNetworkProfile() { var networkProfile = new ContainerServiceNetworkProfile { NetworkPlugin = NetworkPlugin, LoadBalancerSku = LoadBalancerSku }; if (this.IsParameterBound(c => c.NodeMinCount)) { networkProfile.NetworkPolicy = NetworkPolicy; } if (this.IsParameterBound(c => c.PodCidr)) { networkProfile.PodCidr = PodCidr; } if (this.IsParameterBound(c => c.ServiceCidr)) { networkProfile.ServiceCidr = ServiceCidr; } if (this.IsParameterBound(c => c.DnsServiceIP)) { networkProfile.DnsServiceIP = DnsServiceIP; } if (this.IsParameterBound(c => c.DockerBridgeCidr)) { networkProfile.DockerBridgeCidr = DockerBridgeCidr; } return(networkProfile); }
private ContainerServiceNetworkProfile GetNetworkProfile() { var networkProfile = new ContainerServiceNetworkProfile(); networkProfile.NetworkPlugin = NetworkPlugin; networkProfile.LoadBalancerSku = LoadBalancerSku; return(networkProfile); }
///GENMHASH:3C3CEB8BADA599708F0C92A1BD34D3E4:C55D4F95C12A7B863F7E0B7054A8B72D public KubernetesClusterImpl WithNetworkProfile(ContainerServiceNetworkProfile networkProfile) { this.Inner.NetworkProfile = networkProfile; return(this); }
private ContainerServiceNetworkProfile SetNetworkProfile(ContainerServiceNetworkProfile networkProfile) { networkProfile.LoadBalancerProfile = CreateOrUpdateLoadBalancerProfile(networkProfile.LoadBalancerProfile); return(networkProfile); }
/// <summary> /// Updates the cluster's network profile. /// </summary> /// <param name="networkProfile">The cluster's networkProfile.</param> /// <return>The next stage of the update.</return> KubernetesCluster.Update.IUpdate KubernetesCluster.Update.IWithNetworkProfileBeta.WithNetworkProfile(ContainerServiceNetworkProfile networkProfile) { return(this.WithNetworkProfile(networkProfile)); }