Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename gameserver-allocator resources to agones-allocator #994

Merged
merged 3 commits into from
Aug 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions install/helm/agones/templates/service/allocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
# limitations under the License.

{{- if .Values.agones.allocator.install }}
# Define a Service for the gameserver-allocator
# Define a Service for the agones-allocator
apiVersion: v1
kind: Service
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: {{ .Release.Namespace }}
labels:
component: allocator
Expand All @@ -36,11 +36,11 @@ spec:
type: {{ .Values.agones.allocator.http.serviceType }}

---
# Deploy a pod to run the gameserver-allocator code
# Deploy a pod to run the agones-allocator code
apiVersion: apps/v1
kind: Deployment
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: {{ .Release.Namespace }}
labels:
multicluster.agones.dev/role: allocator
Expand Down Expand Up @@ -75,7 +75,7 @@ spec:
tolerations:
{{ toYaml .Values.agones.allocator.tolerations | indent 8 }}
{{- end }}
serviceAccountName: gameserver-allocator
serviceAccountName: agones-allocator
volumes:
- name: tls
secret:
Expand Down Expand Up @@ -103,7 +103,7 @@ spec:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "agones.name" $ }}
Expand All @@ -120,7 +120,7 @@ rules:
apiVersion: v1
kind: ServiceAccount
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "agones.name" $ }}
Expand All @@ -129,11 +129,11 @@ metadata:
heritage: {{ $.Release.Service }}

---
# Bind the gameserver-allocator ServiceAccount to the gameserver-allocator ClusterRole
# Bind the agones-allocator ServiceAccount to the agones-allocator ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "agones.name" $ }}
Expand All @@ -142,12 +142,12 @@ metadata:
heritage: {{ $.Release.Service }}
subjects:
- kind: ServiceAccount
name: gameserver-allocator
name: agones-allocator
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: gameserver-allocator
name: agones-allocator

{{- end }}

Expand Down
22 changes: 11 additions & 11 deletions install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -950,11 +950,11 @@ spec:
# 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.
# Define a Service for the gameserver-allocator
# Define a Service for the agones-allocator
apiVersion: v1
kind: Service
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: agones-system
labels:
component: allocator
Expand All @@ -973,11 +973,11 @@ spec:
type: LoadBalancer

---
# Deploy a pod to run the gameserver-allocator code
# Deploy a pod to run the agones-allocator code
apiVersion: apps/v1
kind: Deployment
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: agones-system
labels:
multicluster.agones.dev/role: allocator
Expand Down Expand Up @@ -1016,7 +1016,7 @@ spec:
operator: Equal
value: "true"

serviceAccountName: gameserver-allocator
serviceAccountName: agones-allocator
volumes:
- name: tls
secret:
Expand Down Expand Up @@ -1044,7 +1044,7 @@ spec:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: agones-system
labels:
app: agones
Expand All @@ -1061,7 +1061,7 @@ rules:
apiVersion: v1
kind: ServiceAccount
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: agones-system
labels:
app: agones
Expand All @@ -1070,11 +1070,11 @@ metadata:
heritage: Tiller

---
# Bind the gameserver-allocator ServiceAccount to the gameserver-allocator ClusterRole
# Bind the agones-allocator ServiceAccount to the agones-allocator ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: gameserver-allocator
name: agones-allocator
namespace: agones-system
labels:
app: agones
Expand All @@ -1083,12 +1083,12 @@ metadata:
heritage: Tiller
subjects:
- kind: ServiceAccount
name: gameserver-allocator
name: agones-allocator
namespace: agones-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: gameserver-allocator
name: agones-allocator

---
# Allocation CA
Expand Down
17 changes: 17 additions & 0 deletions site/content/en/docs/Installation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ Conditions:
```

All this pods should be in a `RUNNING` state:

{{% feature expiryVersion="1.0.0" %}}
```bash
kubectl get pods --namespace agones-system

Expand All @@ -344,6 +346,21 @@ gameserver-allocator-6bd4d456f9-bbj76 1/1 Running 0 2m48s
gameserver-allocator-6bd4d456f9-vlkhk 1/1 Running 0 2m48s
gameserver-allocator-6bd4d456f9-x7t9h 1/1 Running 0 2m48s
```
{{% /feature %}}
{{% feature publishVersion="1.0.0" %}}

```bash
kubectl get pods --namespace agones-system

NAME READY STATUS RESTARTS AGE
agones-allocator-5c988b7b8d-cgtbs 1/1 Running 0 8m47s
agones-allocator-5c988b7b8d-hhhr5 1/1 Running 0 8m47s
agones-allocator-5c988b7b8d-pv577 1/1 Running 0 8m47s
agones-controller-7db45966db-56l66 1/1 Running 0 8m44s
agones-ping-84c64f6c9d-bdlzh 1/1 Running 0 8m37s
agones-ping-84c64f6c9d-sjgzz 1/1 Running 0 8m47s
```
{{% /feature %}}

That's it! This creates the [Custom Resource Definitions][crds] that power Agones and allows us to define resources of type `GameServer`.

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/allocator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestAllocator(t *testing.T) {
t.Parallel()

kubeCore := framework.KubeClient.CoreV1()
svc, err := kubeCore.Services("agones-system").Get("gameserver-allocator", metav1.GetOptions{})
svc, err := kubeCore.Services("agones-system").Get("agones-allocator", metav1.GetOptions{})
if !assert.Nil(t, err) {
return
}
Expand Down