diff --git a/install/helm/agones/templates/crds/gameserverallocationpolicy.yaml b/install/helm/agones/templates/crds/gameserverallocationpolicy.yaml index dbdc5c07d8..2204cad3de 100644 --- a/install/helm/agones/templates/crds/gameserverallocationpolicy.yaml +++ b/install/helm/agones/templates/crds/gameserverallocationpolicy.yaml @@ -53,13 +53,13 @@ spec: properties: secretName: type: string - apiServerEndpoint: + allocationEndpoint: type: string clusterName: type: string required: - clusterName - - apiServerEndpoint + - allocationEndpoint - secretName type: object priority: diff --git a/install/yaml/install.yaml b/install/yaml/install.yaml index 86c70dad79..f86deef181 100644 --- a/install/yaml/install.yaml +++ b/install/yaml/install.yaml @@ -732,13 +732,13 @@ spec: properties: secretName: type: string - apiServerEndpoint: + allocationEndpoint: type: string clusterName: type: string required: - clusterName - - apiServerEndpoint + - allocationEndpoint - secretName type: object priority: diff --git a/pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy.go b/pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy.go index 05754659f3..712b277be2 100644 --- a/pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy.go +++ b/pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy.go @@ -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 diff --git a/pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy_test.go b/pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy_test.go index 9eed642851..53f3fc096f 100644 --- a/pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy_test.go +++ b/pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy_test.go @@ -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", }, }, },