Skip to content

Commit 6532b2f

Browse files
committed
add ApplicationTargetGroup API
1 parent 217663c commit 6532b2f

13 files changed

+813
-24
lines changed
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
creationTimestamp: null
5+
labels:
6+
controller-tools.k8s.io: "1.0"
7+
name: applicationtargetgroups.ingress.k8s.aws
8+
spec:
9+
group: ingress.k8s.aws
10+
names:
11+
kind: ApplicationTargetGroup
12+
plural: applicationtargetgroups
13+
scope: Namespaced
14+
validation:
15+
openAPIV3Schema:
16+
properties:
17+
apiVersion:
18+
description: 'APIVersion defines the versioned schema of this representation
19+
of an object. Servers should convert recognized schemas to the latest
20+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
21+
type: string
22+
kind:
23+
description: 'Kind is a string value representing the REST resource this
24+
object represents. Servers may infer this from the endpoint the client
25+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
26+
type: string
27+
metadata:
28+
type: object
29+
spec:
30+
properties:
31+
attributes:
32+
properties:
33+
deregistrationDelay:
34+
properties:
35+
timeoutSeconds:
36+
format: int64
37+
maximum: 3600
38+
minimum: 0
39+
type: integer
40+
required:
41+
- timeoutSeconds
42+
type: object
43+
slowStart:
44+
properties:
45+
durationSeconds:
46+
format: int64
47+
maximum: 900
48+
minimum: 30
49+
type: integer
50+
required:
51+
- durationSeconds
52+
type: object
53+
stickiness:
54+
properties:
55+
enabled:
56+
type: boolean
57+
lbCookie:
58+
properties:
59+
durationSeconds:
60+
format: int64
61+
maximum: 604800
62+
minimum: 1
63+
type: integer
64+
required:
65+
- durationSeconds
66+
type: object
67+
type:
68+
enum:
69+
- lb_cookie
70+
type: string
71+
required:
72+
- enabled
73+
- type
74+
type: object
75+
type: object
76+
healthCheckConfig:
77+
properties:
78+
healthyThresholdCount:
79+
format: int64
80+
maximum: 10
81+
minimum: 2
82+
type: integer
83+
intervalSeconds:
84+
format: int64
85+
maximum: 300
86+
minimum: 5
87+
type: integer
88+
matcher:
89+
properties:
90+
intervalSeconds:
91+
type: string
92+
required:
93+
- intervalSeconds
94+
type: object
95+
path:
96+
maxLength: 1024
97+
minLength: 1
98+
type: string
99+
port:
100+
oneOf:
101+
- type: string
102+
- type: integer
103+
protocol:
104+
enum:
105+
- HTTP
106+
- HTTPS
107+
- TCP
108+
- TLS
109+
type: string
110+
timeoutSeconds:
111+
format: int64
112+
maximum: 120
113+
minimum: 2
114+
type: integer
115+
unhealthyThresholdCount:
116+
format: int64
117+
maximum: 10
118+
minimum: 2
119+
type: integer
120+
type: object
121+
port:
122+
format: int64
123+
maximum: 65535
124+
minimum: 1
125+
type: integer
126+
protocol:
127+
enum:
128+
- HTTP
129+
- HTTPS
130+
type: string
131+
tags:
132+
type: object
133+
targetType:
134+
enum:
135+
- instance
136+
- ip
137+
type: string
138+
required:
139+
- targetType
140+
- port
141+
- protocol
142+
type: object
143+
status:
144+
type: object
145+
version: v1alpha1
146+
status:
147+
acceptedNames:
148+
kind: ""
149+
plural: ""
150+
conditions: []
151+
storedVersions: []

config/crds/ingress_v1alpha1_clusterapplicationloadbalancer.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ spec:
4141
prefix:
4242
type: string
4343
type: object
44+
required:
45+
- s3
4446
type: object
4547
deletionProtection:
4648
properties:
4749
enabled:
4850
type: boolean
51+
required:
52+
- enabled
4953
type: object
5054
idleTimeout:
5155
properties:
@@ -54,6 +58,8 @@ spec:
5458
maximum: 4000
5559
minimum: 1
5660
type: integer
61+
required:
62+
- timeoutSeconds
5763
type: object
5864
routing:
5965
properties:

config/rbac/rbac_role.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,46 @@ metadata:
44
creationTimestamp: null
55
name: manager-role
66
rules:
7+
- apiGroups:
8+
- apps
9+
resources:
10+
- deployments
11+
verbs:
12+
- get
13+
- list
14+
- watch
15+
- create
16+
- update
17+
- patch
18+
- delete
19+
- apiGroups:
20+
- apps
21+
resources:
22+
- deployments/status
23+
verbs:
24+
- get
25+
- update
26+
- patch
27+
- apiGroups:
28+
- ingress.k8s.aws
29+
resources:
30+
- applicationtargetgroups
31+
verbs:
32+
- get
33+
- list
34+
- watch
35+
- create
36+
- update
37+
- patch
38+
- delete
39+
- apiGroups:
40+
- ingress.k8s.aws
41+
resources:
42+
- applicationtargetgroups/status
43+
verbs:
44+
- get
45+
- update
46+
- patch
747
- apiGroups:
848
- apps
949
resources:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: ingress.k8s.aws/v1alpha1
2+
kind: ApplicationTargetGroup
3+
metadata:
4+
labels:
5+
controller-tools.k8s.io: "1.0"
6+
name: applicationtargetgroup-sample
7+
spec:
8+
# Add fields here
9+
foo: bar

0 commit comments

Comments
 (0)