Skip to content

Commit

Permalink
fix(api): make HCP networking optional for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
hasueki committed Jul 28, 2022
1 parent 917c954 commit 6ef3452
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion api/v1alpha1/hosted_controlplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ type HostedControlPlaneSpec struct {
IssuerURL string `json:"issuerURL"`

// Networking specifies network configuration for the cluster.
Networking ClusterNetworking `json:"networking"`
// Temporarily optional for backward compatibility, required in future releases.
// +optional
Networking ClusterNetworking `json:"networking,omitempty"`

// deprecated
// use networking.ServiceNetwork
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,8 @@ spec:
type: string
networking:
description: Networking specifies network configuration for the cluster.
Temporarily optional for backward compatibility, required in future
releases.
properties:
apiServer:
description: APIServer contains advanced network settings for
Expand Down Expand Up @@ -3027,7 +3029,6 @@ spec:
- etcd
- infraID
- issuerURL
- networking
- platform
- pullSecret
- releaseImage
Expand Down
4 changes: 3 additions & 1 deletion docs/content/reference/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3598,7 +3598,9 @@ ClusterNetworking
</em>
</td>
<td>
<p>Networking specifies network configuration for the cluster.</p>
<em>(Optional)</em>
<p>Networking specifies network configuration for the cluster.
Temporarily optional for backward compatibility, required in future releases.</p>
</td>
</tr>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions hack/app-sre/saas_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25410,7 +25410,8 @@ objects:
type: string
networking:
description: Networking specifies network configuration for the
cluster.
cluster. Temporarily optional for backward compatibility, required
in future releases.
properties:
apiServer:
description: APIServer contains advanced network settings for
Expand Down Expand Up @@ -26435,7 +26436,6 @@ objects:
- etcd
- infraID
- issuerURL
- networking
- platform
- pullSecret
- releaseImage
Expand Down

0 comments on commit 6ef3452

Please sign in to comment.