From f32f46829c9d2e3ba085f96d62203e09e1f054b5 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Thu, 29 Oct 2020 11:24:36 -0700 Subject: [PATCH] Mark SecondaryRangeName as deprecated. --- .../k8s.io/legacy-cloud-providers/gce/gce.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/staging/src/k8s.io/legacy-cloud-providers/gce/gce.go b/staging/src/k8s.io/legacy-cloud-providers/gce/gce.go index b183afd3ba3..dacddda8571 100644 --- a/staging/src/k8s.io/legacy-cloud-providers/gce/gce.go +++ b/staging/src/k8s.io/legacy-cloud-providers/gce/gce.go @@ -129,7 +129,8 @@ type Cloud struct { unsafeIsLegacyNetwork bool // unsafeSubnetworkURL should be used only via SubnetworkURL() accessor, // to ensure it was properly initialized. - unsafeSubnetworkURL string + unsafeSubnetworkURL string + // DEPRECATED: Do not rely on this value as it may be incorrect. secondaryRangeName string networkProjectID string onXPN bool @@ -179,6 +180,7 @@ type ConfigGlobal struct { NetworkProjectID string `gcfg:"network-project-id"` NetworkName string `gcfg:"network-name"` SubnetworkName string `gcfg:"subnetwork-name"` + // DEPRECATED: Do not rely on this value as it may be incorrect. // SecondaryRangeName is the name of the secondary range to allocate IP // aliases. The secondary range must be present on the subnetwork the // cluster is attached to. @@ -226,12 +228,13 @@ type CloudConfig struct { NetworkURL string SubnetworkName string SubnetworkURL string - SecondaryRangeName string - NodeTags []string - NodeInstancePrefix string - TokenSource oauth2.TokenSource - UseMetadataServer bool - AlphaFeatureGate *AlphaFeatureGate + // DEPRECATED: Do not rely on this value as it may be incorrect. + SecondaryRangeName string + NodeTags []string + NodeInstancePrefix string + TokenSource oauth2.TokenSource + UseMetadataServer bool + AlphaFeatureGate *AlphaFeatureGate } func init() {