-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefinition.yaml
96 lines (95 loc) · 3.36 KB
/
definition.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Copyright dmaganto.infra, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: xecstaskdefs.microservices.dmaganto.infra # must be spec.names.plural+"."+spec.group
spec:
group: microservices.dmaganto.infra
names:
kind: XECSTaskdef # cluster scope type
plural: xecstaskdefs
claimNames: # namespace scope type
kind: ECSTaskdef
plural: ecstaskdefs # lowercase only
versions:
- name: v1alpha1
additionalPrinterColumns:
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: READY
type: string
- jsonPath: .status.conditions[?(@.type=='Synced')].status
name: SYNCED
type: string
- jsonPath: .metadata.creationTimestamp
name: AGE
type: date
served: true
referenceable: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
parameters:
description: Application Inputs
type: object
properties:
# TASK INPUTS
containerDefinitions:
description: Definition to run the container
type: string
family:
description: The name of a family that this task definition is registered to.
type: string
task_id:
description: Task definition ID as unique identificator
type: string
memory:
description: Memory for task
type: string
default: "512"
cpu:
description: CPU for task
type: string
default: "256"
required:
- containerDefinitions
- family
- task_id
resourceConfig:
description: ResourceConfig defines general properties of this AWS resource.
type: object
properties:
deletionPolicy:
description: Defaults to Delete
enum:
- Delete
- Orphan
type: string
name:
description: Set the name of this resource in AWS to the value provided by this field.
type: string
providerConfigName:
type: string
region:
description: Region where the cluster is going to be created
type: string
default: eu-central-1
tenant:
description: Name of tenant
type: string
env:
description: environment
type: string
required:
- providerConfigName
- name
- region
- tenant
required:
- parameters
required:
- spec