Skip to content

Commit

Permalink
Add allocation policy CRD and schema definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
pooneh-m committed Apr 9, 2019
1 parent 5ecb1a3 commit 8554070
Show file tree
Hide file tree
Showing 4 changed files with 452 additions and 99 deletions.
97 changes: 97 additions & 0 deletions install/helm/agones/templates/crds/allocationpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# 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.

{{- if .Values.agones.crds.install }}

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
controller-tools.k8s.io: "1.0"
component: crd
app: {{ template "agones.name" . }}
chart: {{ template "agones.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
name: allocationpolicies.stable.agones.dev
spec:
group: stable.agones.dev
names:
kind: AllocationPolicy
plural: allocationpolicies
scope: Namespaced
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
connectionInfo:
properties:
allocationServiceSecret:
properties:
certificateAuthorityData:
type: string
serviceAccountToken:
type: string
required:
- certificateAuthorityData
- serviceAccountToken
type: object
apiServerEndpoint:
type: string
clusterName:
type: string
namespace:
type: string
required:
- clusterName
- apiServerEndpoint
- namespace
- allocationServiceSecret
type: object
priority:
format: int64
minimum: 0
type: integer
weight:
format: int64
minimum: 0
type: integer
required:
- priority
- weight
type: object
status:
type: object
version: v1alpha1
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
{{- end }}
Loading

0 comments on commit 8554070

Please sign in to comment.