From c736ca9cb62f8ff9c221b97c49502f114fc06581 Mon Sep 17 00:00:00 2001
From: Pooneh Mortazavi
Date: Mon, 15 Apr 2019 14:21:44 -0700
Subject: [PATCH] Changing the group name for allocation policy to
multicluster.agones.dev
---
build/boilerplate.go.txt | 2 +-
build/build-image/Dockerfile | 2 +-
build/build-image/gen-crd-client.sh | 3 +-
.../crds/gameserverallocationpolicy.yaml | 4 +-
install/yaml/install.yaml | 4 +-
pkg/apis/multicluster/register.go | 23 ++
.../v1alpha1/gameserverallocationpolicy.go | 0
pkg/apis/multicluster/v1alpha1/register.go | 59 ++++++
.../v1alpha1/zz_generated.deepcopy.go | 101 +++++++++
pkg/apis/stable/v1alpha1/register.go | 2 -
.../stable/v1alpha1/zz_generated.deepcopy.go | 96 +--------
pkg/client/clientset/versioned/clientset.go | 26 ++-
pkg/client/clientset/versioned/doc.go | 2 +-
.../versioned/fake/clientset_generated.go | 14 +-
pkg/client/clientset/versioned/fake/doc.go | 2 +-
.../clientset/versioned/fake/register.go | 4 +-
pkg/client/clientset/versioned/scheme/doc.go | 2 +-
.../clientset/versioned/scheme/register.go | 4 +-
.../typed/multicluster/v1alpha1/doc.go | 20 ++
.../typed/multicluster/v1alpha1/fake/doc.go | 20 ++
.../fake/fake_gameserverallocationpolicy.go | 10 +-
.../v1alpha1/fake/fake_multicluster_client.go | 40 ++++
.../v1alpha1/gameserverallocationpolicy.go | 6 +-
.../v1alpha1/generated_expansion.go | 21 ++
.../v1alpha1/multicluster_client.go | 90 ++++++++
.../versioned/typed/stable/v1alpha1/doc.go | 2 +-
.../typed/stable/v1alpha1/fake/doc.go | 2 +-
.../typed/stable/v1alpha1/fake/fake_fleet.go | 2 +-
.../v1alpha1/fake/fake_fleetallocation.go | 2 +-
.../v1alpha1/fake/fake_fleetautoscaler.go | 2 +-
.../stable/v1alpha1/fake/fake_gameserver.go | 2 +-
.../fake/fake_gameserverallocation.go | 2 +-
.../v1alpha1/fake/fake_gameserverset.go | 2 +-
.../v1alpha1/fake/fake_stable_client.go | 6 +-
.../versioned/typed/stable/v1alpha1/fleet.go | 2 +-
.../typed/stable/v1alpha1/fleetallocation.go | 2 +-
.../typed/stable/v1alpha1/fleetautoscaler.go | 2 +-
.../typed/stable/v1alpha1/gameserver.go | 2 +-
.../stable/v1alpha1/gameserverallocation.go | 2 +-
.../typed/stable/v1alpha1/gameserverset.go | 2 +-
.../stable/v1alpha1/generated_expansion.go | 4 +-
.../typed/stable/v1alpha1/stable_client.go | 7 +-
.../informers/externalversions/factory.go | 8 +-
.../informers/externalversions/generic.go | 25 ++-
.../internalinterfaces/factory_interfaces.go | 2 +-
.../multicluster/interface.go | 46 ++++
.../v1alpha1/gameserverallocationpolicy.go | 14 +-
.../multicluster/v1alpha1/interface.go | 45 ++++
.../externalversions/stable/interface.go | 2 +-
.../externalversions/stable/v1alpha1/fleet.go | 2 +-
.../stable/v1alpha1/fleetallocation.go | 2 +-
.../stable/v1alpha1/fleetautoscaler.go | 2 +-
.../stable/v1alpha1/gameserver.go | 2 +-
.../stable/v1alpha1/gameserverallocation.go | 2 +-
.../stable/v1alpha1/gameserverset.go | 2 +-
.../stable/v1alpha1/interface.go | 9 +-
.../v1alpha1/expansion_generated.go | 27 +++
.../v1alpha1/gameserverallocationpolicy.go | 4 +-
.../stable/v1alpha1/expansion_generated.go | 10 +-
pkg/client/listers/stable/v1alpha1/fleet.go | 2 +-
.../stable/v1alpha1/fleetallocation.go | 2 +-
.../stable/v1alpha1/fleetautoscaler.go | 2 +-
.../listers/stable/v1alpha1/gameserver.go | 2 +-
.../stable/v1alpha1/gameserverallocation.go | 2 +-
.../listers/stable/v1alpha1/gameserverset.go | 2 +-
.../Reference/agones_crd_api_reference.html | 199 +-----------------
66 files changed, 619 insertions(+), 398 deletions(-)
create mode 100644 pkg/apis/multicluster/register.go
rename pkg/apis/{stable => multicluster}/v1alpha1/gameserverallocationpolicy.go (100%)
create mode 100644 pkg/apis/multicluster/v1alpha1/register.go
create mode 100644 pkg/apis/multicluster/v1alpha1/zz_generated.deepcopy.go
create mode 100644 pkg/client/clientset/versioned/typed/multicluster/v1alpha1/doc.go
create mode 100644 pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/doc.go
rename pkg/client/clientset/versioned/typed/{stable => multicluster}/v1alpha1/fake/fake_gameserverallocationpolicy.go (94%)
create mode 100644 pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/fake_multicluster_client.go
rename pkg/client/clientset/versioned/typed/{stable => multicluster}/v1alpha1/gameserverallocationpolicy.go (96%)
create mode 100644 pkg/client/clientset/versioned/typed/multicluster/v1alpha1/generated_expansion.go
create mode 100644 pkg/client/clientset/versioned/typed/multicluster/v1alpha1/multicluster_client.go
create mode 100644 pkg/client/informers/externalversions/multicluster/interface.go
rename pkg/client/informers/externalversions/{stable => multicluster}/v1alpha1/gameserverallocationpolicy.go (86%)
create mode 100644 pkg/client/informers/externalversions/multicluster/v1alpha1/interface.go
create mode 100644 pkg/client/listers/multicluster/v1alpha1/expansion_generated.go
rename pkg/client/listers/{stable => multicluster}/v1alpha1/gameserverallocationpolicy.go (97%)
diff --git a/build/boilerplate.go.txt b/build/boilerplate.go.txt
index 5f7b4a0ce6..e891f68ee4 100644
--- a/build/boilerplate.go.txt
+++ b/build/boilerplate.go.txt
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/build/build-image/Dockerfile b/build/build-image/Dockerfile
index ef422b76d5..04eca46eed 100644
--- a/build/build-image/Dockerfile
+++ b/build/build-image/Dockerfile
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# ForceUpdate 7 -- change here if you need to force a rebuild
+# ForceUpdate 7-- change here if you need to force a rebuild
FROM debian:stretch
diff --git a/build/build-image/gen-crd-client.sh b/build/build-image/gen-crd-client.sh
index fed0a77f57..43b25b26a6 100644
--- a/build/build-image/gen-crd-client.sh
+++ b/build/build-image/gen-crd-client.sh
@@ -18,5 +18,6 @@ rsync -r /go/src/agones.dev/agones/vendor/k8s.io/ /go/src/k8s.io/
cd /go/src/k8s.io/code-generator
./generate-groups.sh "all" \
agones.dev/agones/pkg/client \
- agones.dev/agones/pkg/apis stable:v1alpha1 \
+ agones.dev/agones/pkg/apis "stable:v1alpha1 multicluster:v1alpha1" \
--go-header-file=/go/src/agones.dev/agones/build/boilerplate.go.txt
+
diff --git a/install/helm/agones/templates/crds/gameserverallocationpolicy.yaml b/install/helm/agones/templates/crds/gameserverallocationpolicy.yaml
index 003a986652..14cef57116 100644
--- a/install/helm/agones/templates/crds/gameserverallocationpolicy.yaml
+++ b/install/helm/agones/templates/crds/gameserverallocationpolicy.yaml
@@ -25,9 +25,9 @@ metadata:
chart: {{ template "agones.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
- name: gameserverallocationpolicies.stable.agones.dev
+ name: gameserverallocationpolicies.multicluster.agones.dev
spec:
- group: stable.agones.dev
+ group: multicluster.agones.dev
names:
kind: GameServerAllocationPolicy
plural: gameserverallocationpolicies
diff --git a/install/yaml/install.yaml b/install/yaml/install.yaml
index 4497efe5c3..21d9e68f8f 100644
--- a/install/yaml/install.yaml
+++ b/install/yaml/install.yaml
@@ -793,9 +793,9 @@ metadata:
chart: agones-0.10.0
release: agones-manual
heritage: Tiller
- name: gameserverallocationpolicies.stable.agones.dev
+ name: gameserverallocationpolicies.multicluster.agones.dev
spec:
- group: stable.agones.dev
+ group: multicluster.agones.dev
names:
kind: GameServerAllocationPolicy
plural: gameserverallocationpolicies
diff --git a/pkg/apis/multicluster/register.go b/pkg/apis/multicluster/register.go
new file mode 100644
index 0000000000..88f29dad51
--- /dev/null
+++ b/pkg/apis/multicluster/register.go
@@ -0,0 +1,23 @@
+// Copyright 2017 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package multicluster
+
+const (
+ // GroupName is the Scheme Group Name for Agones Custom Resource Definitions
+ GroupName = "multicluster.agones.dev"
+ // VersionAnnotation is the key for version annotation
+ // associated with the CRD
+ VersionAnnotation = GroupName + "/sdk-version"
+)
diff --git a/pkg/apis/stable/v1alpha1/gameserverallocationpolicy.go b/pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy.go
similarity index 100%
rename from pkg/apis/stable/v1alpha1/gameserverallocationpolicy.go
rename to pkg/apis/multicluster/v1alpha1/gameserverallocationpolicy.go
diff --git a/pkg/apis/multicluster/v1alpha1/register.go b/pkg/apis/multicluster/v1alpha1/register.go
new file mode 100644
index 0000000000..7b45496f4c
--- /dev/null
+++ b/pkg/apis/multicluster/v1alpha1/register.go
@@ -0,0 +1,59 @@
+// Copyright 2017 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package v1alpha1
+
+import (
+ "agones.dev/agones/pkg/apis/multicluster"
+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
+ k8sruntime "k8s.io/apimachinery/pkg/runtime"
+ "k8s.io/apimachinery/pkg/runtime/schema"
+ "k8s.io/client-go/kubernetes/scheme"
+)
+
+// SchemeGroupVersion is group version used to register these objects
+var SchemeGroupVersion = schema.GroupVersion{Group: multicluster.GroupName, Version: "v1alpha1"}
+
+// Kind takes an unqualified kind and returns back a Group qualified GroupKind
+func Kind(kind string) schema.GroupKind {
+ return SchemeGroupVersion.WithKind(kind).GroupKind()
+}
+
+// Resource takes an unqualified resource and returns a Group qualified GroupResource
+func Resource(resource string) schema.GroupResource {
+ return SchemeGroupVersion.WithResource(resource).GroupResource()
+}
+
+var (
+ // SchemeBuilder registers our types
+ SchemeBuilder = k8sruntime.NewSchemeBuilder(addKnownTypes)
+ // AddToScheme local alias for SchemeBuilder.AddToScheme
+ AddToScheme = SchemeBuilder.AddToScheme
+)
+
+func init() {
+ if err := AddToScheme(scheme.Scheme); err != nil {
+ panic(err)
+ }
+}
+
+// Adds the list of known types to api.Scheme.
+func addKnownTypes(scheme *k8sruntime.Scheme) error {
+ scheme.AddKnownTypes(SchemeGroupVersion,
+ &GameServerAllocationPolicy{},
+ &GameServerAllocationPolicyList{},
+ )
+ metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
+ return nil
+}
diff --git a/pkg/apis/multicluster/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/multicluster/v1alpha1/zz_generated.deepcopy.go
new file mode 100644
index 0000000000..6fdfe5ae19
--- /dev/null
+++ b/pkg/apis/multicluster/v1alpha1/zz_generated.deepcopy.go
@@ -0,0 +1,101 @@
+// +build !ignore_autogenerated
+
+// Copyright 2018 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This code was autogenerated. Do not edit directly.
+
+// Code generated by deepcopy-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ runtime "k8s.io/apimachinery/pkg/runtime"
+)
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *GameServerAllocationPolicy) DeepCopyInto(out *GameServerAllocationPolicy) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
+ in.Spec.DeepCopyInto(&out.Spec)
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicy.
+func (in *GameServerAllocationPolicy) DeepCopy() *GameServerAllocationPolicy {
+ if in == nil {
+ return nil
+ }
+ out := new(GameServerAllocationPolicy)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *GameServerAllocationPolicy) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *GameServerAllocationPolicyList) DeepCopyInto(out *GameServerAllocationPolicyList) {
+ *out = *in
+ out.TypeMeta = in.TypeMeta
+ out.ListMeta = in.ListMeta
+ if in.Items != nil {
+ in, out := &in.Items, &out.Items
+ *out = make([]GameServerAllocationPolicy, len(*in))
+ for i := range *in {
+ (*in)[i].DeepCopyInto(&(*out)[i])
+ }
+ }
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicyList.
+func (in *GameServerAllocationPolicyList) DeepCopy() *GameServerAllocationPolicyList {
+ if in == nil {
+ return nil
+ }
+ out := new(GameServerAllocationPolicyList)
+ in.DeepCopyInto(out)
+ return out
+}
+
+// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
+func (in *GameServerAllocationPolicyList) DeepCopyObject() runtime.Object {
+ if c := in.DeepCopy(); c != nil {
+ return c
+ }
+ return nil
+}
+
+// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
+func (in *GameServerAllocationPolicySpec) DeepCopyInto(out *GameServerAllocationPolicySpec) {
+ *out = *in
+ return
+}
+
+// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicySpec.
+func (in *GameServerAllocationPolicySpec) DeepCopy() *GameServerAllocationPolicySpec {
+ if in == nil {
+ return nil
+ }
+ out := new(GameServerAllocationPolicySpec)
+ in.DeepCopyInto(out)
+ return out
+}
diff --git a/pkg/apis/stable/v1alpha1/register.go b/pkg/apis/stable/v1alpha1/register.go
index 13d4014097..fb823798f8 100644
--- a/pkg/apis/stable/v1alpha1/register.go
+++ b/pkg/apis/stable/v1alpha1/register.go
@@ -61,8 +61,6 @@ func addKnownTypes(scheme *k8sruntime.Scheme) error {
&FleetAllocationList{},
&GameServerAllocation{},
&GameServerAllocationList{},
- &GameServerAllocationPolicy{},
- &GameServerAllocationPolicyList{},
&FleetAutoscaler{},
&FleetAutoscalerList{},
)
diff --git a/pkg/apis/stable/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/stable/v1alpha1/zz_generated.deepcopy.go
index 306ae44573..5c7ffc1b40 100644
--- a/pkg/apis/stable/v1alpha1/zz_generated.deepcopy.go
+++ b/pkg/apis/stable/v1alpha1/zz_generated.deepcopy.go
@@ -1,6 +1,6 @@
// +build !ignore_autogenerated
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -43,23 +43,6 @@ func (in *BufferPolicy) DeepCopy() *BufferPolicy {
return out
}
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *ClusterConnectionInfo) DeepCopyInto(out *ClusterConnectionInfo) {
- *out = *in
- in.AllocationServiceSecret.DeepCopyInto(&out.AllocationServiceSecret)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConnectionInfo.
-func (in *ClusterConnectionInfo) DeepCopy() *ClusterConnectionInfo {
- if in == nil {
- return nil
- }
- out := new(ClusterConnectionInfo)
- in.DeepCopyInto(out)
- return out
-}
-
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Fleet) DeepCopyInto(out *Fleet) {
*out = *in
@@ -550,83 +533,6 @@ func (in *GameServerAllocationList) DeepCopyObject() runtime.Object {
return nil
}
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *GameServerAllocationPolicy) DeepCopyInto(out *GameServerAllocationPolicy) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicy.
-func (in *GameServerAllocationPolicy) DeepCopy() *GameServerAllocationPolicy {
- if in == nil {
- return nil
- }
- out := new(GameServerAllocationPolicy)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *GameServerAllocationPolicy) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *GameServerAllocationPolicyList) DeepCopyInto(out *GameServerAllocationPolicyList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- out.ListMeta = in.ListMeta
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]GameServerAllocationPolicy, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicyList.
-func (in *GameServerAllocationPolicyList) DeepCopy() *GameServerAllocationPolicyList {
- if in == nil {
- return nil
- }
- out := new(GameServerAllocationPolicyList)
- in.DeepCopyInto(out)
- return out
-}
-
-// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
-func (in *GameServerAllocationPolicyList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
-}
-
-// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
-func (in *GameServerAllocationPolicySpec) DeepCopyInto(out *GameServerAllocationPolicySpec) {
- *out = *in
- in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo)
- return
-}
-
-// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicySpec.
-func (in *GameServerAllocationPolicySpec) DeepCopy() *GameServerAllocationPolicySpec {
- if in == nil {
- return nil
- }
- out := new(GameServerAllocationPolicySpec)
- in.DeepCopyInto(out)
- return out
-}
-
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *GameServerAllocationSpec) DeepCopyInto(out *GameServerAllocationSpec) {
*out = *in
diff --git a/pkg/client/clientset/versioned/clientset.go b/pkg/client/clientset/versioned/clientset.go
index aebf4e14e9..fb020a9d1f 100644
--- a/pkg/client/clientset/versioned/clientset.go
+++ b/pkg/client/clientset/versioned/clientset.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
package versioned
import (
+ multiclusterv1alpha1 "agones.dev/agones/pkg/client/clientset/versioned/typed/multicluster/v1alpha1"
stablev1alpha1 "agones.dev/agones/pkg/client/clientset/versioned/typed/stable/v1alpha1"
discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest"
@@ -27,6 +28,9 @@ import (
type Interface interface {
Discovery() discovery.DiscoveryInterface
+ MulticlusterV1alpha1() multiclusterv1alpha1.MulticlusterV1alpha1Interface
+ // Deprecated: please explicitly pick a version if possible.
+ Multicluster() multiclusterv1alpha1.MulticlusterV1alpha1Interface
StableV1alpha1() stablev1alpha1.StableV1alpha1Interface
// Deprecated: please explicitly pick a version if possible.
Stable() stablev1alpha1.StableV1alpha1Interface
@@ -36,7 +40,19 @@ type Interface interface {
// version included in a Clientset.
type Clientset struct {
*discovery.DiscoveryClient
- stableV1alpha1 *stablev1alpha1.StableV1alpha1Client
+ multiclusterV1alpha1 *multiclusterv1alpha1.MulticlusterV1alpha1Client
+ stableV1alpha1 *stablev1alpha1.StableV1alpha1Client
+}
+
+// MulticlusterV1alpha1 retrieves the MulticlusterV1alpha1Client
+func (c *Clientset) MulticlusterV1alpha1() multiclusterv1alpha1.MulticlusterV1alpha1Interface {
+ return c.multiclusterV1alpha1
+}
+
+// Deprecated: Multicluster retrieves the default version of MulticlusterClient.
+// Please explicitly pick a version.
+func (c *Clientset) Multicluster() multiclusterv1alpha1.MulticlusterV1alpha1Interface {
+ return c.multiclusterV1alpha1
}
// StableV1alpha1 retrieves the StableV1alpha1Client
@@ -66,6 +82,10 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
}
var cs Clientset
var err error
+ cs.multiclusterV1alpha1, err = multiclusterv1alpha1.NewForConfig(&configShallowCopy)
+ if err != nil {
+ return nil, err
+ }
cs.stableV1alpha1, err = stablev1alpha1.NewForConfig(&configShallowCopy)
if err != nil {
return nil, err
@@ -82,6 +102,7 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
// panics if there is an error in the config.
func NewForConfigOrDie(c *rest.Config) *Clientset {
var cs Clientset
+ cs.multiclusterV1alpha1 = multiclusterv1alpha1.NewForConfigOrDie(c)
cs.stableV1alpha1 = stablev1alpha1.NewForConfigOrDie(c)
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
@@ -91,6 +112,7 @@ func NewForConfigOrDie(c *rest.Config) *Clientset {
// New creates a new Clientset for the given RESTClient.
func New(c rest.Interface) *Clientset {
var cs Clientset
+ cs.multiclusterV1alpha1 = multiclusterv1alpha1.New(c)
cs.stableV1alpha1 = stablev1alpha1.New(c)
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
diff --git a/pkg/client/clientset/versioned/doc.go b/pkg/client/clientset/versioned/doc.go
index 79c0549ac0..f4886574e5 100644
--- a/pkg/client/clientset/versioned/doc.go
+++ b/pkg/client/clientset/versioned/doc.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/fake/clientset_generated.go b/pkg/client/clientset/versioned/fake/clientset_generated.go
index 3451bb4732..89c00f1f28 100644
--- a/pkg/client/clientset/versioned/fake/clientset_generated.go
+++ b/pkg/client/clientset/versioned/fake/clientset_generated.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -20,6 +20,8 @@ package fake
import (
clientset "agones.dev/agones/pkg/client/clientset/versioned"
+ multiclusterv1alpha1 "agones.dev/agones/pkg/client/clientset/versioned/typed/multicluster/v1alpha1"
+ fakemulticlusterv1alpha1 "agones.dev/agones/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake"
stablev1alpha1 "agones.dev/agones/pkg/client/clientset/versioned/typed/stable/v1alpha1"
fakestablev1alpha1 "agones.dev/agones/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake"
"k8s.io/apimachinery/pkg/runtime"
@@ -71,6 +73,16 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
var _ clientset.Interface = &Clientset{}
+// MulticlusterV1alpha1 retrieves the MulticlusterV1alpha1Client
+func (c *Clientset) MulticlusterV1alpha1() multiclusterv1alpha1.MulticlusterV1alpha1Interface {
+ return &fakemulticlusterv1alpha1.FakeMulticlusterV1alpha1{Fake: &c.Fake}
+}
+
+// Multicluster retrieves the MulticlusterV1alpha1Client
+func (c *Clientset) Multicluster() multiclusterv1alpha1.MulticlusterV1alpha1Interface {
+ return &fakemulticlusterv1alpha1.FakeMulticlusterV1alpha1{Fake: &c.Fake}
+}
+
// StableV1alpha1 retrieves the StableV1alpha1Client
func (c *Clientset) StableV1alpha1() stablev1alpha1.StableV1alpha1Interface {
return &fakestablev1alpha1.FakeStableV1alpha1{Fake: &c.Fake}
diff --git a/pkg/client/clientset/versioned/fake/doc.go b/pkg/client/clientset/versioned/fake/doc.go
index 8aaf2d39c3..7bfca0473c 100644
--- a/pkg/client/clientset/versioned/fake/doc.go
+++ b/pkg/client/clientset/versioned/fake/doc.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/fake/register.go b/pkg/client/clientset/versioned/fake/register.go
index 11a0897de6..7eed9ca6a4 100644
--- a/pkg/client/clientset/versioned/fake/register.go
+++ b/pkg/client/clientset/versioned/fake/register.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
package fake
import (
+ multiclusterv1alpha1 "agones.dev/agones/pkg/apis/multicluster/v1alpha1"
stablev1alpha1 "agones.dev/agones/pkg/apis/stable/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
@@ -50,5 +51,6 @@ func init() {
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
// correctly.
func AddToScheme(scheme *runtime.Scheme) {
+ multiclusterv1alpha1.AddToScheme(scheme)
stablev1alpha1.AddToScheme(scheme)
}
diff --git a/pkg/client/clientset/versioned/scheme/doc.go b/pkg/client/clientset/versioned/scheme/doc.go
index b7513ce1de..32b3bb308e 100644
--- a/pkg/client/clientset/versioned/scheme/doc.go
+++ b/pkg/client/clientset/versioned/scheme/doc.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/scheme/register.go b/pkg/client/clientset/versioned/scheme/register.go
index 5a24d464a4..ddb793fd38 100644
--- a/pkg/client/clientset/versioned/scheme/register.go
+++ b/pkg/client/clientset/versioned/scheme/register.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
package scheme
import (
+ multiclusterv1alpha1 "agones.dev/agones/pkg/apis/multicluster/v1alpha1"
stablev1alpha1 "agones.dev/agones/pkg/apis/stable/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
@@ -50,5 +51,6 @@ func init() {
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
// correctly.
func AddToScheme(scheme *runtime.Scheme) {
+ multiclusterv1alpha1.AddToScheme(scheme)
stablev1alpha1.AddToScheme(scheme)
}
diff --git a/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/doc.go b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/doc.go
new file mode 100644
index 0000000000..e9b701578e
--- /dev/null
+++ b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/doc.go
@@ -0,0 +1,20 @@
+// Copyright 2019 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This code was autogenerated. Do not edit directly.
+
+// Code generated by client-gen. DO NOT EDIT.
+
+// This package has the automatically generated typed clients.
+package v1alpha1
diff --git a/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/doc.go
new file mode 100644
index 0000000000..36d8114553
--- /dev/null
+++ b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/doc.go
@@ -0,0 +1,20 @@
+// Copyright 2019 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This code was autogenerated. Do not edit directly.
+
+// Code generated by client-gen. DO NOT EDIT.
+
+// Package fake has the automatically generated clients.
+package fake
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverallocationpolicy.go b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/fake_gameserverallocationpolicy.go
similarity index 94%
rename from pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverallocationpolicy.go
rename to pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/fake_gameserverallocationpolicy.go
index 61c3912fa6..536074dfe7 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverallocationpolicy.go
+++ b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/fake_gameserverallocationpolicy.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@
package fake
import (
- v1alpha1 "agones.dev/agones/pkg/apis/stable/v1alpha1"
+ v1alpha1 "agones.dev/agones/pkg/apis/multicluster/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
@@ -30,13 +30,13 @@ import (
// FakeGameServerAllocationPolicies implements GameServerAllocationPolicyInterface
type FakeGameServerAllocationPolicies struct {
- Fake *FakeStableV1alpha1
+ Fake *FakeMulticlusterV1alpha1
ns string
}
-var gameserverallocationpoliciesResource = schema.GroupVersionResource{Group: "stable.agones.dev", Version: "v1alpha1", Resource: "gameserverallocationpolicies"}
+var gameserverallocationpoliciesResource = schema.GroupVersionResource{Group: "multicluster", Version: "v1alpha1", Resource: "gameserverallocationpolicies"}
-var gameserverallocationpoliciesKind = schema.GroupVersionKind{Group: "stable.agones.dev", Version: "v1alpha1", Kind: "GameServerAllocationPolicy"}
+var gameserverallocationpoliciesKind = schema.GroupVersionKind{Group: "multicluster", Version: "v1alpha1", Kind: "GameServerAllocationPolicy"}
// Get takes name of the gameServerAllocationPolicy, and returns the corresponding gameServerAllocationPolicy object, and an error if there is any.
func (c *FakeGameServerAllocationPolicies) Get(name string, options v1.GetOptions) (result *v1alpha1.GameServerAllocationPolicy, err error) {
diff --git a/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/fake_multicluster_client.go b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/fake_multicluster_client.go
new file mode 100644
index 0000000000..3b86d5cd28
--- /dev/null
+++ b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/fake/fake_multicluster_client.go
@@ -0,0 +1,40 @@
+// Copyright 2019 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This code was autogenerated. Do not edit directly.
+
+// Code generated by client-gen. DO NOT EDIT.
+
+package fake
+
+import (
+ v1alpha1 "agones.dev/agones/pkg/client/clientset/versioned/typed/multicluster/v1alpha1"
+ rest "k8s.io/client-go/rest"
+ testing "k8s.io/client-go/testing"
+)
+
+type FakeMulticlusterV1alpha1 struct {
+ *testing.Fake
+}
+
+func (c *FakeMulticlusterV1alpha1) GameServerAllocationPolicies(namespace string) v1alpha1.GameServerAllocationPolicyInterface {
+ return &FakeGameServerAllocationPolicies{c, namespace}
+}
+
+// RESTClient returns a RESTClient that is used to communicate
+// with API server by this client implementation.
+func (c *FakeMulticlusterV1alpha1) RESTClient() rest.Interface {
+ var ret *rest.RESTClient
+ return ret
+}
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverallocationpolicy.go b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/gameserverallocationpolicy.go
similarity index 96%
rename from pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverallocationpolicy.go
rename to pkg/client/clientset/versioned/typed/multicluster/v1alpha1/gameserverallocationpolicy.go
index 34a86d690b..6af327d495 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverallocationpolicy.go
+++ b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/gameserverallocationpolicy.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@
package v1alpha1
import (
- v1alpha1 "agones.dev/agones/pkg/apis/stable/v1alpha1"
+ v1alpha1 "agones.dev/agones/pkg/apis/multicluster/v1alpha1"
scheme "agones.dev/agones/pkg/client/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -53,7 +53,7 @@ type gameServerAllocationPolicies struct {
}
// newGameServerAllocationPolicies returns a GameServerAllocationPolicies
-func newGameServerAllocationPolicies(c *StableV1alpha1Client, namespace string) *gameServerAllocationPolicies {
+func newGameServerAllocationPolicies(c *MulticlusterV1alpha1Client, namespace string) *gameServerAllocationPolicies {
return &gameServerAllocationPolicies{
client: c.RESTClient(),
ns: namespace,
diff --git a/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/generated_expansion.go b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/generated_expansion.go
new file mode 100644
index 0000000000..7c8b350ac0
--- /dev/null
+++ b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/generated_expansion.go
@@ -0,0 +1,21 @@
+// Copyright 2019 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This code was autogenerated. Do not edit directly.
+
+// Code generated by client-gen. DO NOT EDIT.
+
+package v1alpha1
+
+type GameServerAllocationPolicyExpansion interface{}
diff --git a/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/multicluster_client.go b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/multicluster_client.go
new file mode 100644
index 0000000000..50a916ced8
--- /dev/null
+++ b/pkg/client/clientset/versioned/typed/multicluster/v1alpha1/multicluster_client.go
@@ -0,0 +1,90 @@
+// Copyright 2019 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This code was autogenerated. Do not edit directly.
+
+// Code generated by client-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ v1alpha1 "agones.dev/agones/pkg/apis/multicluster/v1alpha1"
+ "agones.dev/agones/pkg/client/clientset/versioned/scheme"
+ serializer "k8s.io/apimachinery/pkg/runtime/serializer"
+ rest "k8s.io/client-go/rest"
+)
+
+type MulticlusterV1alpha1Interface interface {
+ RESTClient() rest.Interface
+ GameServerAllocationPoliciesGetter
+}
+
+// MulticlusterV1alpha1Client is used to interact with features provided by the multicluster group.
+type MulticlusterV1alpha1Client struct {
+ restClient rest.Interface
+}
+
+func (c *MulticlusterV1alpha1Client) GameServerAllocationPolicies(namespace string) GameServerAllocationPolicyInterface {
+ return newGameServerAllocationPolicies(c, namespace)
+}
+
+// NewForConfig creates a new MulticlusterV1alpha1Client for the given config.
+func NewForConfig(c *rest.Config) (*MulticlusterV1alpha1Client, error) {
+ config := *c
+ if err := setConfigDefaults(&config); err != nil {
+ return nil, err
+ }
+ client, err := rest.RESTClientFor(&config)
+ if err != nil {
+ return nil, err
+ }
+ return &MulticlusterV1alpha1Client{client}, nil
+}
+
+// NewForConfigOrDie creates a new MulticlusterV1alpha1Client for the given config and
+// panics if there is an error in the config.
+func NewForConfigOrDie(c *rest.Config) *MulticlusterV1alpha1Client {
+ client, err := NewForConfig(c)
+ if err != nil {
+ panic(err)
+ }
+ return client
+}
+
+// New creates a new MulticlusterV1alpha1Client for the given RESTClient.
+func New(c rest.Interface) *MulticlusterV1alpha1Client {
+ return &MulticlusterV1alpha1Client{c}
+}
+
+func setConfigDefaults(config *rest.Config) error {
+ gv := v1alpha1.SchemeGroupVersion
+ config.GroupVersion = &gv
+ config.APIPath = "/apis"
+ config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: scheme.Codecs}
+
+ if config.UserAgent == "" {
+ config.UserAgent = rest.DefaultKubernetesUserAgent()
+ }
+
+ return nil
+}
+
+// RESTClient returns a RESTClient that is used to communicate
+// with API server by this client implementation.
+func (c *MulticlusterV1alpha1Client) RESTClient() rest.Interface {
+ if c == nil {
+ return nil
+ }
+ return c.restClient
+}
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/doc.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/doc.go
index 6ec16bf779..e9b701578e 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/doc.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/doc.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/doc.go
index 0f9684c210..36d8114553 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/doc.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/doc.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleet.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleet.go
index 77375f002d..04d869b091 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleet.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleet.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleetallocation.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleetallocation.go
index 6692ac3cd9..60b14af9b1 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleetallocation.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleetallocation.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleetautoscaler.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleetautoscaler.go
index 4c10d6d908..fb4dc9589d 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleetautoscaler.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_fleetautoscaler.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserver.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserver.go
index a2b1e35ce7..be7d69883a 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserver.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserver.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverallocation.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverallocation.go
index b3452d5fdd..48346b63fb 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverallocation.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverallocation.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverset.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverset.go
index 3cf2032f78..ba52991271 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverset.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_gameserverset.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_stable_client.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_stable_client.go
index 9d54558fcd..8a7b3d6e84 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_stable_client.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fake/fake_stable_client.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -48,10 +48,6 @@ func (c *FakeStableV1alpha1) GameServerAllocations(namespace string) v1alpha1.Ga
return &FakeGameServerAllocations{c, namespace}
}
-func (c *FakeStableV1alpha1) GameServerAllocationPolicies(namespace string) v1alpha1.GameServerAllocationPolicyInterface {
- return &FakeGameServerAllocationPolicies{c, namespace}
-}
-
func (c *FakeStableV1alpha1) GameServerSets(namespace string) v1alpha1.GameServerSetInterface {
return &FakeGameServerSets{c, namespace}
}
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleet.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleet.go
index b785dab05e..9483bb9b8d 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleet.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleet.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleetallocation.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleetallocation.go
index e1ff51378d..d922c55db5 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleetallocation.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleetallocation.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleetautoscaler.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleetautoscaler.go
index 4c79d1f574..7e3c85b6b3 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleetautoscaler.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/fleetautoscaler.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserver.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserver.go
index 066f82598a..ebe26b409b 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserver.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserver.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverallocation.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverallocation.go
index 2cdf4bde90..e0f2df925f 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverallocation.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverallocation.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverset.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverset.go
index 365a05135b..e9097fd739 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverset.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/gameserverset.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/generated_expansion.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/generated_expansion.go
index dd0d563bc8..78559ce11d 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/generated_expansion.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/generated_expansion.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -28,6 +28,4 @@ type GameServerExpansion interface{}
type GameServerAllocationExpansion interface{}
-type GameServerAllocationPolicyExpansion interface{}
-
type GameServerSetExpansion interface{}
diff --git a/pkg/client/clientset/versioned/typed/stable/v1alpha1/stable_client.go b/pkg/client/clientset/versioned/typed/stable/v1alpha1/stable_client.go
index 42c878bf57..f27bd12c5c 100644
--- a/pkg/client/clientset/versioned/typed/stable/v1alpha1/stable_client.go
+++ b/pkg/client/clientset/versioned/typed/stable/v1alpha1/stable_client.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -32,7 +32,6 @@ type StableV1alpha1Interface interface {
FleetAutoscalersGetter
GameServersGetter
GameServerAllocationsGetter
- GameServerAllocationPoliciesGetter
GameServerSetsGetter
}
@@ -61,10 +60,6 @@ func (c *StableV1alpha1Client) GameServerAllocations(namespace string) GameServe
return newGameServerAllocations(c, namespace)
}
-func (c *StableV1alpha1Client) GameServerAllocationPolicies(namespace string) GameServerAllocationPolicyInterface {
- return newGameServerAllocationPolicies(c, namespace)
-}
-
func (c *StableV1alpha1Client) GameServerSets(namespace string) GameServerSetInterface {
return newGameServerSets(c, namespace)
}
diff --git a/pkg/client/informers/externalversions/factory.go b/pkg/client/informers/externalversions/factory.go
index c343788bff..f59cf55af8 100644
--- a/pkg/client/informers/externalversions/factory.go
+++ b/pkg/client/informers/externalversions/factory.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@ import (
versioned "agones.dev/agones/pkg/client/clientset/versioned"
internalinterfaces "agones.dev/agones/pkg/client/informers/externalversions/internalinterfaces"
+ multicluster "agones.dev/agones/pkg/client/informers/externalversions/multicluster"
stable "agones.dev/agones/pkg/client/informers/externalversions/stable"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
@@ -172,9 +173,14 @@ type SharedInformerFactory interface {
ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool
+ Multicluster() multicluster.Interface
Stable() stable.Interface
}
+func (f *sharedInformerFactory) Multicluster() multicluster.Interface {
+ return multicluster.New(f, f.namespace, f.tweakListOptions)
+}
+
func (f *sharedInformerFactory) Stable() stable.Interface {
return stable.New(f, f.namespace, f.tweakListOptions)
}
diff --git a/pkg/client/informers/externalversions/generic.go b/pkg/client/informers/externalversions/generic.go
index 76b4e2e66a..834135fc3f 100644
--- a/pkg/client/informers/externalversions/generic.go
+++ b/pkg/client/informers/externalversions/generic.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -21,7 +21,8 @@ package externalversions
import (
"fmt"
- v1alpha1 "agones.dev/agones/pkg/apis/stable/v1alpha1"
+ v1alpha1 "agones.dev/agones/pkg/apis/multicluster/v1alpha1"
+ stable_v1alpha1 "agones.dev/agones/pkg/apis/stable/v1alpha1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
cache "k8s.io/client-go/tools/cache"
)
@@ -52,20 +53,22 @@ func (f *genericInformer) Lister() cache.GenericLister {
// TODO extend this to unknown resources with a client pool
func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) {
switch resource {
- // Group=stable.agones.dev, Version=v1alpha1
- case v1alpha1.SchemeGroupVersion.WithResource("fleets"):
+ // Group=multicluster, Version=v1alpha1
+ case v1alpha1.SchemeGroupVersion.WithResource("gameserverallocationpolicies"):
+ return &genericInformer{resource: resource.GroupResource(), informer: f.Multicluster().V1alpha1().GameServerAllocationPolicies().Informer()}, nil
+
+ // Group=stable.agones.dev, Version=v1alpha1
+ case stable_v1alpha1.SchemeGroupVersion.WithResource("fleets"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Stable().V1alpha1().Fleets().Informer()}, nil
- case v1alpha1.SchemeGroupVersion.WithResource("fleetallocations"):
+ case stable_v1alpha1.SchemeGroupVersion.WithResource("fleetallocations"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Stable().V1alpha1().FleetAllocations().Informer()}, nil
- case v1alpha1.SchemeGroupVersion.WithResource("fleetautoscalers"):
+ case stable_v1alpha1.SchemeGroupVersion.WithResource("fleetautoscalers"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Stable().V1alpha1().FleetAutoscalers().Informer()}, nil
- case v1alpha1.SchemeGroupVersion.WithResource("gameservers"):
+ case stable_v1alpha1.SchemeGroupVersion.WithResource("gameservers"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Stable().V1alpha1().GameServers().Informer()}, nil
- case v1alpha1.SchemeGroupVersion.WithResource("gameserverallocations"):
+ case stable_v1alpha1.SchemeGroupVersion.WithResource("gameserverallocations"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Stable().V1alpha1().GameServerAllocations().Informer()}, nil
- case v1alpha1.SchemeGroupVersion.WithResource("gameserverallocationpolicies"):
- return &genericInformer{resource: resource.GroupResource(), informer: f.Stable().V1alpha1().GameServerAllocationPolicies().Informer()}, nil
- case v1alpha1.SchemeGroupVersion.WithResource("gameserversets"):
+ case stable_v1alpha1.SchemeGroupVersion.WithResource("gameserversets"):
return &genericInformer{resource: resource.GroupResource(), informer: f.Stable().V1alpha1().GameServerSets().Informer()}, nil
}
diff --git a/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
index 14311e1d91..a84ece8fba 100644
--- a/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
+++ b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/informers/externalversions/multicluster/interface.go b/pkg/client/informers/externalversions/multicluster/interface.go
new file mode 100644
index 0000000000..b95bae4006
--- /dev/null
+++ b/pkg/client/informers/externalversions/multicluster/interface.go
@@ -0,0 +1,46 @@
+// Copyright 2019 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This code was autogenerated. Do not edit directly.
+
+// Code generated by informer-gen. DO NOT EDIT.
+
+package multicluster
+
+import (
+ internalinterfaces "agones.dev/agones/pkg/client/informers/externalversions/internalinterfaces"
+ v1alpha1 "agones.dev/agones/pkg/client/informers/externalversions/multicluster/v1alpha1"
+)
+
+// Interface provides access to each of this group's versions.
+type Interface interface {
+ // V1alpha1 provides access to shared informers for resources in V1alpha1.
+ V1alpha1() v1alpha1.Interface
+}
+
+type group struct {
+ factory internalinterfaces.SharedInformerFactory
+ namespace string
+ tweakListOptions internalinterfaces.TweakListOptionsFunc
+}
+
+// New returns a new Interface.
+func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
+ return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
+}
+
+// V1alpha1 returns a new v1alpha1.Interface.
+func (g *group) V1alpha1() v1alpha1.Interface {
+ return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions)
+}
diff --git a/pkg/client/informers/externalversions/stable/v1alpha1/gameserverallocationpolicy.go b/pkg/client/informers/externalversions/multicluster/v1alpha1/gameserverallocationpolicy.go
similarity index 86%
rename from pkg/client/informers/externalversions/stable/v1alpha1/gameserverallocationpolicy.go
rename to pkg/client/informers/externalversions/multicluster/v1alpha1/gameserverallocationpolicy.go
index 9e3adf28c9..53b6b33dd0 100644
--- a/pkg/client/informers/externalversions/stable/v1alpha1/gameserverallocationpolicy.go
+++ b/pkg/client/informers/externalversions/multicluster/v1alpha1/gameserverallocationpolicy.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -21,10 +21,10 @@ package v1alpha1
import (
time "time"
- stable_v1alpha1 "agones.dev/agones/pkg/apis/stable/v1alpha1"
+ multicluster_v1alpha1 "agones.dev/agones/pkg/apis/multicluster/v1alpha1"
versioned "agones.dev/agones/pkg/client/clientset/versioned"
internalinterfaces "agones.dev/agones/pkg/client/informers/externalversions/internalinterfaces"
- v1alpha1 "agones.dev/agones/pkg/client/listers/stable/v1alpha1"
+ v1alpha1 "agones.dev/agones/pkg/client/listers/multicluster/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -61,16 +61,16 @@ func NewFilteredGameServerAllocationPolicyInformer(client versioned.Interface, n
if tweakListOptions != nil {
tweakListOptions(&options)
}
- return client.StableV1alpha1().GameServerAllocationPolicies(namespace).List(options)
+ return client.MulticlusterV1alpha1().GameServerAllocationPolicies(namespace).List(options)
},
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
- return client.StableV1alpha1().GameServerAllocationPolicies(namespace).Watch(options)
+ return client.MulticlusterV1alpha1().GameServerAllocationPolicies(namespace).Watch(options)
},
},
- &stable_v1alpha1.GameServerAllocationPolicy{},
+ &multicluster_v1alpha1.GameServerAllocationPolicy{},
resyncPeriod,
indexers,
)
@@ -81,7 +81,7 @@ func (f *gameServerAllocationPolicyInformer) defaultInformer(client versioned.In
}
func (f *gameServerAllocationPolicyInformer) Informer() cache.SharedIndexInformer {
- return f.factory.InformerFor(&stable_v1alpha1.GameServerAllocationPolicy{}, f.defaultInformer)
+ return f.factory.InformerFor(&multicluster_v1alpha1.GameServerAllocationPolicy{}, f.defaultInformer)
}
func (f *gameServerAllocationPolicyInformer) Lister() v1alpha1.GameServerAllocationPolicyLister {
diff --git a/pkg/client/informers/externalversions/multicluster/v1alpha1/interface.go b/pkg/client/informers/externalversions/multicluster/v1alpha1/interface.go
new file mode 100644
index 0000000000..aced2d02fc
--- /dev/null
+++ b/pkg/client/informers/externalversions/multicluster/v1alpha1/interface.go
@@ -0,0 +1,45 @@
+// Copyright 2019 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This code was autogenerated. Do not edit directly.
+
+// Code generated by informer-gen. DO NOT EDIT.
+
+package v1alpha1
+
+import (
+ internalinterfaces "agones.dev/agones/pkg/client/informers/externalversions/internalinterfaces"
+)
+
+// Interface provides access to all the informers in this group version.
+type Interface interface {
+ // GameServerAllocationPolicies returns a GameServerAllocationPolicyInformer.
+ GameServerAllocationPolicies() GameServerAllocationPolicyInformer
+}
+
+type version struct {
+ factory internalinterfaces.SharedInformerFactory
+ namespace string
+ tweakListOptions internalinterfaces.TweakListOptionsFunc
+}
+
+// New returns a new Interface.
+func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
+ return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
+}
+
+// GameServerAllocationPolicies returns a GameServerAllocationPolicyInformer.
+func (v *version) GameServerAllocationPolicies() GameServerAllocationPolicyInformer {
+ return &gameServerAllocationPolicyInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
+}
diff --git a/pkg/client/informers/externalversions/stable/interface.go b/pkg/client/informers/externalversions/stable/interface.go
index 9a02229a8d..f11ebb6886 100644
--- a/pkg/client/informers/externalversions/stable/interface.go
+++ b/pkg/client/informers/externalversions/stable/interface.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/informers/externalversions/stable/v1alpha1/fleet.go b/pkg/client/informers/externalversions/stable/v1alpha1/fleet.go
index d4d9bec6b2..0a87223a07 100644
--- a/pkg/client/informers/externalversions/stable/v1alpha1/fleet.go
+++ b/pkg/client/informers/externalversions/stable/v1alpha1/fleet.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/informers/externalversions/stable/v1alpha1/fleetallocation.go b/pkg/client/informers/externalversions/stable/v1alpha1/fleetallocation.go
index 3b59934b3b..9a8eb8bcbb 100644
--- a/pkg/client/informers/externalversions/stable/v1alpha1/fleetallocation.go
+++ b/pkg/client/informers/externalversions/stable/v1alpha1/fleetallocation.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/informers/externalversions/stable/v1alpha1/fleetautoscaler.go b/pkg/client/informers/externalversions/stable/v1alpha1/fleetautoscaler.go
index d8c43300bb..373a96944e 100644
--- a/pkg/client/informers/externalversions/stable/v1alpha1/fleetautoscaler.go
+++ b/pkg/client/informers/externalversions/stable/v1alpha1/fleetautoscaler.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/informers/externalversions/stable/v1alpha1/gameserver.go b/pkg/client/informers/externalversions/stable/v1alpha1/gameserver.go
index 57e766a8d4..b48ba6bb69 100644
--- a/pkg/client/informers/externalversions/stable/v1alpha1/gameserver.go
+++ b/pkg/client/informers/externalversions/stable/v1alpha1/gameserver.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/informers/externalversions/stable/v1alpha1/gameserverallocation.go b/pkg/client/informers/externalversions/stable/v1alpha1/gameserverallocation.go
index 502dfddc30..2665fb8b50 100644
--- a/pkg/client/informers/externalversions/stable/v1alpha1/gameserverallocation.go
+++ b/pkg/client/informers/externalversions/stable/v1alpha1/gameserverallocation.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/informers/externalversions/stable/v1alpha1/gameserverset.go b/pkg/client/informers/externalversions/stable/v1alpha1/gameserverset.go
index c2e4d132f7..67bbbd9cd5 100644
--- a/pkg/client/informers/externalversions/stable/v1alpha1/gameserverset.go
+++ b/pkg/client/informers/externalversions/stable/v1alpha1/gameserverset.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/informers/externalversions/stable/v1alpha1/interface.go b/pkg/client/informers/externalversions/stable/v1alpha1/interface.go
index 1f188e75cd..19fd7d2dcd 100644
--- a/pkg/client/informers/externalversions/stable/v1alpha1/interface.go
+++ b/pkg/client/informers/externalversions/stable/v1alpha1/interface.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -34,8 +34,6 @@ type Interface interface {
GameServers() GameServerInformer
// GameServerAllocations returns a GameServerAllocationInformer.
GameServerAllocations() GameServerAllocationInformer
- // GameServerAllocationPolicies returns a GameServerAllocationPolicyInformer.
- GameServerAllocationPolicies() GameServerAllocationPolicyInformer
// GameServerSets returns a GameServerSetInformer.
GameServerSets() GameServerSetInformer
}
@@ -76,11 +74,6 @@ func (v *version) GameServerAllocations() GameServerAllocationInformer {
return &gameServerAllocationInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}
-// GameServerAllocationPolicies returns a GameServerAllocationPolicyInformer.
-func (v *version) GameServerAllocationPolicies() GameServerAllocationPolicyInformer {
- return &gameServerAllocationPolicyInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
-}
-
// GameServerSets returns a GameServerSetInformer.
func (v *version) GameServerSets() GameServerSetInformer {
return &gameServerSetInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
diff --git a/pkg/client/listers/multicluster/v1alpha1/expansion_generated.go b/pkg/client/listers/multicluster/v1alpha1/expansion_generated.go
new file mode 100644
index 0000000000..041a860aa4
--- /dev/null
+++ b/pkg/client/listers/multicluster/v1alpha1/expansion_generated.go
@@ -0,0 +1,27 @@
+// Copyright 2019 Google LLC All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This code was autogenerated. Do not edit directly.
+
+// Code generated by lister-gen. DO NOT EDIT.
+
+package v1alpha1
+
+// GameServerAllocationPolicyListerExpansion allows custom methods to be added to
+// GameServerAllocationPolicyLister.
+type GameServerAllocationPolicyListerExpansion interface{}
+
+// GameServerAllocationPolicyNamespaceListerExpansion allows custom methods to be added to
+// GameServerAllocationPolicyNamespaceLister.
+type GameServerAllocationPolicyNamespaceListerExpansion interface{}
diff --git a/pkg/client/listers/stable/v1alpha1/gameserverallocationpolicy.go b/pkg/client/listers/multicluster/v1alpha1/gameserverallocationpolicy.go
similarity index 97%
rename from pkg/client/listers/stable/v1alpha1/gameserverallocationpolicy.go
rename to pkg/client/listers/multicluster/v1alpha1/gameserverallocationpolicy.go
index e208c613b7..3b9f3d0c17 100644
--- a/pkg/client/listers/stable/v1alpha1/gameserverallocationpolicy.go
+++ b/pkg/client/listers/multicluster/v1alpha1/gameserverallocationpolicy.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@
package v1alpha1
import (
- v1alpha1 "agones.dev/agones/pkg/apis/stable/v1alpha1"
+ v1alpha1 "agones.dev/agones/pkg/apis/multicluster/v1alpha1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
diff --git a/pkg/client/listers/stable/v1alpha1/expansion_generated.go b/pkg/client/listers/stable/v1alpha1/expansion_generated.go
index 999eeddb1a..7d0658e484 100644
--- a/pkg/client/listers/stable/v1alpha1/expansion_generated.go
+++ b/pkg/client/listers/stable/v1alpha1/expansion_generated.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -58,14 +58,6 @@ type GameServerAllocationListerExpansion interface{}
// GameServerAllocationNamespaceLister.
type GameServerAllocationNamespaceListerExpansion interface{}
-// GameServerAllocationPolicyListerExpansion allows custom methods to be added to
-// GameServerAllocationPolicyLister.
-type GameServerAllocationPolicyListerExpansion interface{}
-
-// GameServerAllocationPolicyNamespaceListerExpansion allows custom methods to be added to
-// GameServerAllocationPolicyNamespaceLister.
-type GameServerAllocationPolicyNamespaceListerExpansion interface{}
-
// GameServerSetListerExpansion allows custom methods to be added to
// GameServerSetLister.
type GameServerSetListerExpansion interface{}
diff --git a/pkg/client/listers/stable/v1alpha1/fleet.go b/pkg/client/listers/stable/v1alpha1/fleet.go
index 08dc339554..052e799f40 100644
--- a/pkg/client/listers/stable/v1alpha1/fleet.go
+++ b/pkg/client/listers/stable/v1alpha1/fleet.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/listers/stable/v1alpha1/fleetallocation.go b/pkg/client/listers/stable/v1alpha1/fleetallocation.go
index d15fa1a7ab..ecc4d02e63 100644
--- a/pkg/client/listers/stable/v1alpha1/fleetallocation.go
+++ b/pkg/client/listers/stable/v1alpha1/fleetallocation.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/listers/stable/v1alpha1/fleetautoscaler.go b/pkg/client/listers/stable/v1alpha1/fleetautoscaler.go
index 74c990d31e..0613f9369f 100644
--- a/pkg/client/listers/stable/v1alpha1/fleetautoscaler.go
+++ b/pkg/client/listers/stable/v1alpha1/fleetautoscaler.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/listers/stable/v1alpha1/gameserver.go b/pkg/client/listers/stable/v1alpha1/gameserver.go
index dcc705a27c..8741c2e168 100644
--- a/pkg/client/listers/stable/v1alpha1/gameserver.go
+++ b/pkg/client/listers/stable/v1alpha1/gameserver.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/listers/stable/v1alpha1/gameserverallocation.go b/pkg/client/listers/stable/v1alpha1/gameserverallocation.go
index c9216bb4d5..2e66c3fa30 100644
--- a/pkg/client/listers/stable/v1alpha1/gameserverallocation.go
+++ b/pkg/client/listers/stable/v1alpha1/gameserverallocation.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/pkg/client/listers/stable/v1alpha1/gameserverset.go b/pkg/client/listers/stable/v1alpha1/gameserverset.go
index 54e77b6e9e..dd771a4e54 100644
--- a/pkg/client/listers/stable/v1alpha1/gameserverset.go
+++ b/pkg/client/listers/stable/v1alpha1/gameserverset.go
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC All Rights Reserved.
+// Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/site/content/en/docs/Reference/agones_crd_api_reference.html b/site/content/en/docs/Reference/agones_crd_api_reference.html
index 1998468e7b..95930d064a 100644
--- a/site/content/en/docs/Reference/agones_crd_api_reference.html
+++ b/site/content/en/docs/Reference/agones_crd_api_reference.html
@@ -2221,6 +2221,7 @@ WebhookPolicy
+
{{% feature publishVersion="0.10.0" %}}
Packages:
Fleet
@@ -2837,100 +2836,6 @@ GameServerAllocation
-GameServerAllocationPolicy
-
-
-
GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API
-
-
-
-
-Field |
-Description |
-
-
-
-
-
-apiVersion
-string |
-
-
-stable.agones.dev/v1alpha1
-
- |
-
-
-
-kind
-string
- |
-GameServerAllocationPolicy |
-
-
-
-metadata
-
-
-Kubernetes meta/v1.ObjectMeta
-
-
- |
-
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
- |
-
-
-
-spec
-
-
-GameServerAllocationPolicySpec
-
-
- |
-
-
-
-
-
-
-priority
-
-int
-
- |
-
- |
-
-
-
-weight
-
-int
-
- |
-
- |
-
-
-
-connectionInfo
-
-
-ClusterConnectionInfo
-
-
- |
-
- |
-
-
- |
-
-
-
GameServerSet
@@ -3108,57 +3013,6 @@
BufferPolicy
-ClusterConnectionInfo
-
-
-(Appears on:
-GameServerAllocationPolicySpec)
-
-
-
ClusterConnectionInfo defines the connection information for a cluster
-
-
-
-
-Field |
-Description |
-
-
-
-
-
-clusterName
-
-string
-
- |
-
- |
-
-
-
-apiServerEndpoint
-
-string
-
- |
-
- |
-
-
-
-allocationServiceSecret
-
-
-Kubernetes core/v1.Secret
-
-
- |
-
- |
-
-
-
FleetAllocationSpec
@@ -3709,57 +3563,6 @@
FleetStatus
-GameServerAllocationPolicySpec
-
-
-(Appears on:
-GameServerAllocationPolicy)
-
-
-
GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
-
-
-
-
-Field |
-Description |
-
-
-
-
-
-priority
-
-int
-
- |
-
- |
-
-
-
-weight
-
-int
-
- |
-
- |
-
-
-
-connectionInfo
-
-
-ClusterConnectionInfo
-
-
- |
-
- |
-
-
-
GameServerAllocationSpec