Skip to content

Commit 366ffb8

Browse files
Merge pull request #1963 from shiftstack/deprecate-unused-mapo-fields
OSASINFRA-3689: Deprecate unused MAPO fields
2 parents 52377f0 + 4945158 commit 366ffb8

File tree

4 files changed

+28
-22
lines changed

4 files changed

+28
-22
lines changed

machine/v1alpha1/types_openstack.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ type OpenstackProviderSpec struct {
5151
KeyName string `json:"keyName,omitempty"`
5252

5353
// The machine ssh username
54+
// Deprecated: sshUserName is silently ignored.
5455
SshUserName string `json:"sshUserName,omitempty"`
5556

5657
// A networks object. Required parameter when there are multiple networks defined for the tenant.
@@ -108,6 +109,7 @@ type OpenstackProviderSpec struct {
108109
ServerGroupName string `json:"serverGroupName,omitempty"`
109110

110111
// The subnet that a set of machines will get ingress/egress traffic from
112+
// Deprecated: primarySubnet is silently ignored. Use subnets instead.
111113
PrimarySubnet string `json:"primarySubnet,omitempty"`
112114
}
113115

@@ -161,6 +163,7 @@ type NetworkParam struct {
161163
// The UUID of the network. Required if you omit the port attribute.
162164
UUID string `json:"uuid,omitempty"`
163165
// A fixed IPv4 address for the NIC.
166+
// Deprecated: fixedIP is silently ignored. Use subnets instead.
164167
FixedIp string `json:"fixedIp,omitempty"`
165168
// Filters for optional network query
166169
Filter Filter `json:"filter,omitempty"`
@@ -233,6 +236,7 @@ type SubnetParam struct {
233236
PortTags []string `json:"portTags,omitempty"`
234237

235238
// portSecurity optionally enables or disables security on ports managed by OpenStack
239+
// Deprecated: portSecurity is silently ignored. Set portSecurity on the parent network instead.
236240
PortSecurity *bool `json:"portSecurity,omitempty"`
237241
}
238242

@@ -263,6 +267,7 @@ type SubnetFilter struct {
263267
// ipv6RaMode filters subnets by IPv6 router adversiement mode.
264268
IPv6RAMode string `json:"ipv6RaMode,omitempty"`
265269
// subnetpoolId filters subnets by subnet pool ID.
270+
// Deprecated: subnetpoolId is silently ignored.
266271
SubnetPoolID string `json:"subnetpoolId,omitempty"`
267272
// tags filters by subnets containing all specified tags.
268273
// Multiple tags are comma separated.
@@ -307,11 +312,12 @@ type PortOpts struct {
307312
// tenantID specifies the tenant ID of the created port. Note that this
308313
// requires OpenShift to have administrative permissions, which is
309314
// typically not the case. Use of this field is not recommended.
310-
// Deprecated: use projectID instead. It will be ignored if projectID is set.
315+
// Deprecated: tenantID is silently ignored.
311316
TenantID string `json:"tenantID,omitempty"`
312317
// projectID specifies the project ID of the created port. Note that this
313318
// requires OpenShift to have administrative permissions, which is
314319
// typically not the case. Use of this field is not recommended.
320+
// Deprecated: projectID is silently ignored.
315321
ProjectID string `json:"projectID,omitempty"`
316322
// securityGroups specifies a set of security group UUIDs to use instead
317323
// of the machine's default security groups. The default security groups

machine/v1alpha1/zz_generated.swagger_doc_generated.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19965,7 +19965,7 @@
1996519965
"$ref": "#/definitions/com.github.openshift.api.machine.v1alpha1.Filter"
1996619966
},
1996719967
"fixedIp": {
19968-
"description": "A fixed IPv4 address for the NIC.",
19968+
"description": "A fixed IPv4 address for the NIC. Deprecated: fixedIP is silently ignored. Use subnets instead.",
1996919969
"type": "string"
1997019970
},
1997119971
"noAllowedAddressPairs": {
@@ -20097,7 +20097,7 @@
2009720097
}
2009820098
},
2009920099
"primarySubnet": {
20100-
"description": "The subnet that a set of machines will get ingress/egress traffic from",
20100+
"description": "The subnet that a set of machines will get ingress/egress traffic from Deprecated: primarySubnet is silently ignored. Use subnets instead.",
2010120101
"type": "string"
2010220102
},
2010320103
"rootVolume": {
@@ -20129,7 +20129,7 @@
2012920129
}
2013020130
},
2013120131
"sshUserName": {
20132-
"description": "The machine ssh username",
20132+
"description": "The machine ssh username Deprecated: sshUserName is silently ignored.",
2013320133
"type": "string"
2013420134
},
2013520135
"tags": {
@@ -20210,7 +20210,7 @@
2021020210
}
2021120211
},
2021220212
"projectID": {
20213-
"description": "projectID specifies the project ID of the created port. Note that this requires OpenShift to have administrative permissions, which is typically not the case. Use of this field is not recommended.",
20213+
"description": "projectID specifies the project ID of the created port. Note that this requires OpenShift to have administrative permissions, which is typically not the case. Use of this field is not recommended. Deprecated: projectID is silently ignored.",
2021420214
"type": "string"
2021520215
},
2021620216
"securityGroups": {
@@ -20230,7 +20230,7 @@
2023020230
}
2023120231
},
2023220232
"tenantID": {
20233-
"description": "tenantID specifies the tenant ID of the created port. Note that this requires OpenShift to have administrative permissions, which is typically not the case. Use of this field is not recommended. Deprecated: use projectID instead. It will be ignored if projectID is set.",
20233+
"description": "tenantID specifies the tenant ID of the created port. Note that this requires OpenShift to have administrative permissions, which is typically not the case. Use of this field is not recommended. Deprecated: tenantID is silently ignored.",
2023420234
"type": "string"
2023520235
},
2023620236
"trunk": {
@@ -20423,7 +20423,7 @@
2042320423
"type": "string"
2042420424
},
2042520425
"subnetpoolId": {
20426-
"description": "subnetpoolId filters subnets by subnet pool ID.",
20426+
"description": "subnetpoolId filters subnets by subnet pool ID. Deprecated: subnetpoolId is silently ignored.",
2042720427
"type": "string"
2042820428
},
2042920429
"tags": {
@@ -20449,7 +20449,7 @@
2044920449
"$ref": "#/definitions/com.github.openshift.api.machine.v1alpha1.SubnetFilter"
2045020450
},
2045120451
"portSecurity": {
20452-
"description": "portSecurity optionally enables or disables security on ports managed by OpenStack",
20452+
"description": "portSecurity optionally enables or disables security on ports managed by OpenStack Deprecated: portSecurity is silently ignored. Set portSecurity on the parent network instead.",
2045320453
"type": "boolean"
2045420454
},
2045520455
"portTags": {

0 commit comments

Comments
 (0)