@@ -163,7 +163,6 @@ type Instances interface {
163
163
// ProviderID is a unique identifier of the node. This will not be called
164
164
// from the node whose nodeaddresses are being queried. i.e. local metadata
165
165
// services cannot be used in this method to obtain nodeaddresses
166
- // Deprecated: Remove once all calls are migrated to InstanceMetadataByProviderID
167
166
NodeAddressesByProviderID (ctx context.Context , providerID string ) ([]v1.NodeAddress , error )
168
167
// InstanceID returns the cloud provider ID of the node with the specified NodeName.
169
168
// Note that if the instance does not exist, we must return ("", cloudprovider.InstanceNotFound)
@@ -172,7 +171,6 @@ type Instances interface {
172
171
// InstanceType returns the type of the specified instance.
173
172
InstanceType (ctx context.Context , name types.NodeName ) (string , error )
174
173
// InstanceTypeByProviderID returns the type of the specified instance.
175
- // Deprecated: Remove once all calls are migrated to InstanceMetadataByProviderID
176
174
InstanceTypeByProviderID (ctx context.Context , providerID string ) (string , error )
177
175
// AddSSHKeyToAllInstances adds an SSH public key as a legal identity for all instances
178
176
// expected format for the key is standard ssh-keygen format: <protocol> <blob>
@@ -183,12 +181,9 @@ type Instances interface {
183
181
// InstanceExistsByProviderID returns true if the instance for the given provider exists.
184
182
// If false is returned with no error, the instance will be immediately deleted by the cloud controller manager.
185
183
// This method should still return true for instances that exist but are stopped/sleeping.
186
- // Deprecated: Remove once all calls are migrated to InstanceMetadataByProviderID
187
184
InstanceExistsByProviderID (ctx context.Context , providerID string ) (bool , error )
188
185
// InstanceShutdownByProviderID returns true if the instance is shutdown in cloudprovider
189
186
InstanceShutdownByProviderID (ctx context.Context , providerID string ) (bool , error )
190
- // InstanceMetadataByProviderID returns the instance's metadata.
191
- InstanceMetadataByProviderID (ctx context.Context , providerID string ) (* InstanceMetadata , error )
192
187
}
193
188
194
189
// Route is a representation of an advanced routing rule.
0 commit comments