Skip to content

Commit

Permalink
Rename APIServerEndpoint to AllocationEndpoint for multi-cluster allo…
Browse files Browse the repository at this point in the history
…cation. (#755)
  • Loading branch information
pooneh-m authored and markmandel committed May 1, 2019
1 parent 0cc5c6e commit 0333c22
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ spec:
properties:
secretName:
type: string
apiServerEndpoint:
allocationEndpoint:
type: string
clusterName:
type: string
required:
- clusterName
- apiServerEndpoint
- allocationEndpoint
- secretName
type: object
priority:
Expand Down
4 changes: 2 additions & 2 deletions install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -732,13 +732,13 @@ spec:
properties:
secretName:
type: string
apiServerEndpoint:
allocationEndpoint:
type: string
clusterName:
type: string
required:
- clusterName
- apiServerEndpoint
- allocationEndpoint
- secretName
type: object
priority:
Expand Down
6 changes: 3 additions & 3 deletions pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ type GameServerAllocationPolicySpec struct {

// ClusterConnectionInfo defines the connection information for a cluster
type ClusterConnectionInfo struct {
ClusterName string `json:"clusterName"`
APIServerEndpoint string `json:"apiServerEndpoint"`
SecretName string `json:"secretName"`
ClusterName string `json:"clusterName"`
AllocationEndpoint string `json:"allocationEndpoint"`
SecretName string `json:"secretName"`
}

// +genclient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ func TestConnectionInfoIterator(t *testing.T) {
Priority: 1,
Weight: 100,
ConnectionInfo: ClusterConnectionInfo{
ClusterName: "cluster1",
SecretName: "secret-name",
APIServerEndpoint: "api-server-endpoint",
ClusterName: "cluster1",
SecretName: "secret-name",
AllocationEndpoint: "allocation-endpoint",
},
},
},
},
want: []ClusterConnectionInfo{
{
ClusterName: "cluster1",
SecretName: "secret-name",
APIServerEndpoint: "api-server-endpoint",
ClusterName: "cluster1",
SecretName: "secret-name",
AllocationEndpoint: "allocation-endpoint",
},
},
},
Expand Down

0 comments on commit 0333c22

Please sign in to comment.