Skip to content

Commit 7557969

Browse files
Update local crds (#50)
* Update local CRDs * Add capacity to local crds
1 parent c370bab commit 7557969

File tree

2 files changed

+124
-11
lines changed

2 files changed

+124
-11
lines changed

local/client/dummy-crd.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
apiVersion: registry.ethos.adobe.com/v1
2+
kind: Cluster
3+
metadata:
4+
name: cluster01-local-useast1
5+
namespace: cluster-registry
6+
spec:
7+
name: cluster01-local-useast1
8+
shortName: cluster01localuseast1
9+
apiServer:
10+
endpoint: https://cluster01-local-useast1.example.com
11+
certificateAuthorityData: LS0tLS1CRUdJTiBDRVJUSUZJ==
12+
region: useast1
13+
cloudType: azure
14+
cloudProviderRegion: useast1
15+
environment: local
16+
type: Shared
17+
businessUnit: BU1
18+
offering:
19+
- CaaS
20+
- PaaS
21+
allowedOnboardingTeams:
22+
- name: my-team
23+
ldapGroups:
24+
- LDAP_GROUP_EXAMPLE_1:GROUP_ID1
25+
- LDAP_GROUP_EXAMPLE_2:GROUP_ID2
26+
capabilities:
27+
- vpc-peering
28+
- gpu-compute
29+
extra:
30+
loggingEndpoints:
31+
- region: useast1
32+
endpoint: splunk-us-east1.example.com
33+
isDefault: "true"
34+
- region: useast2
35+
endpoint: splunk-us-east2.example.com
36+
isDefault: "false"
37+
domainName: example.com
38+
ecrIamArns:
39+
iamRoles:
40+
- "arn:aws:iam::account-id:role/xxx"
41+
- "arn:aws:iam::account-id:role/yyy"
42+
iamUser:
43+
- "arn:aws:iam::111222333:user/ecr-login"
44+
lbEndpoints:
45+
public: cluster01-local-useast1.example.com
46+
egressPorts: "1024-65535"
47+
nfsInfo:
48+
- name: xxxss5
49+
basePath: xyz
50+
endpoint: xyz
51+
tiers:
52+
- name: worker
53+
containerRuntime: cri-o
54+
instanceType: c5.9xlarge
55+
maxCapacity: 1000
56+
minCapacity: 3
57+
- name: workerMemoryOptimized
58+
containerRuntime: docker
59+
instanceType: r5.8xlarge
60+
labels:
61+
node.kubernetes.io/workload.memory-optimized: "true"
62+
maxCapacity: 100
63+
minCapacity: 0
64+
taints:
65+
- workload=memory-optimized:NoSchedule
66+
accountId: "11111-2222-3333-4444-555555555"
67+
virtualNetworks:
68+
- id: "/subscriptions/11111-2222-3333-4444-555555555/resourceGroups/cluster01_local_network/providers/Microsoft.Network/virtualNetworks/cluster01_local_useast1-vnet/subnets/cluster01_local_useast1_master_network_10_0_0_0_24"
69+
cidrs:
70+
- 10.0.0.0/24
71+
- id: "/subscriptions/11111-2222-3333-4444-555555555/resourceGroups/cluster01_local_network/providers/Microsoft.Network/virtualNetworks/cluster01_local_useast1-vnet/subnets/cluster01_local_useast1_worker_network_10_1_0_0_24"
72+
cidrs:
73+
- 10.1.0.0/24
74+
peerVirtualNetworks:
75+
- id: 123r
76+
cidrs:
77+
- 10.2.0.1/23
78+
- 10.3.0.1/24
79+
ownerID: ownerxxx
80+
registeredAt: "2021-12-13T05:50:07.492Z"
81+
lastUpdated: "2021-12-13T05:50:07.492Z"
82+
managingOrg: Ethos
83+
k8sInfraRelease:
84+
gitSha: 1e8cbd109d7a77909f627ec5247520b70cc209e9
85+
lastUpdated: "2021-03-22T11:55:41Z"
86+
release: 2021-W06-0-116-gd0c7e403
87+
capacity:
88+
clusterCapacity: 50
89+
clusterProvisioning: 30
90+
lastUpdated: "2023-03-22T11:55:41Z"
91+
status: Active
92+
phase: Running
93+
tags:
94+
onboarding: "off"
95+
scaling: "off"

local/database/dummy-data.yaml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
certificateAuthorityData: LS0tLS1CRUdJTiBDRVJUSUZJ==
1212
region: useast1
1313
cloudType: azure
14+
cloudProviderRegion: useast1
1415
environment: Prod
1516
type: Shared
1617
businessUnit: BU1
1718
offering:
18-
- caas
19-
- paas
19+
- CaaS
20+
- PaaS
2021
allowedTeams:
2122
- name: my-team
2223
gitTeams:
@@ -52,17 +53,17 @@
5253
endpoint: xyz
5354
tiers:
5455
- name: worker
56+
containerRuntime: cri-o
5557
instanceType: c5.9xlarge
5658
maxCapacity: 1000
5759
minCapacity: 3
58-
rootDeviceSize: 200
5960
- name: workerMemoryOptimized
61+
containerRuntime: cri-o
6062
instanceType: r5.8xlarge
6163
labels:
6264
node.kubernetes.io/workload.memory-optimized: "true"
6365
maxCapacity: 100
6466
minCapacity: 0
65-
rootDeviceSize: 200
6667
taints:
6768
- workload=memory-optimized:NoSchedule
6869
accountId: "11111-2222-3333-4444-555555555"
@@ -81,10 +82,15 @@
8182
ownerID: ownerxxx
8283
registeredAt: "2021-12-13T05:50:07.492Z"
8384
lastUpdated: "2021-12-13T05:50:07.492Z"
85+
managingOrg: Ethos
8486
k8sInfraRelease:
8587
gitSha: 1e8cbd109d7a77909f627ec5247520b70cc209e9
8688
lastUpdated: "2021-03-22T11:55:41Z"
8789
release: 2021-W06-0-116-gd0c7e403
90+
capacity:
91+
clusterCapacity: 50
92+
clusterProvisioning: 30
93+
lastUpdated: "2023-03-22T11:55:41Z"
8894
status: Active
8995
phase: Running
9096
tags:
@@ -103,12 +109,13 @@
103109
certificateAuthorityData: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0==
104110
region: euwest1
105111
cloudType: azure
112+
cloudProviderRegion: euwest1
106113
environment: Prod
107114
type: Dedicated
108115
businessUnit: BU2
109116
offering:
110-
- caas
111-
- paas
117+
- CaaS
118+
- PaaS
112119
allowedTeams:
113120
- name: my-team
114121
gitTeams:
@@ -130,17 +137,17 @@
130137
public: cluster02-prod-euwest1.example.com
131138
tiers:
132139
- name: worker
140+
containerRuntime: cri-o
133141
instanceType: c5.9xlarge
134142
maxCapacity: 1000
135143
minCapacity: 3
136-
rootDeviceSize: 200
137144
- name: workerMemoryOptimized
145+
containerRuntime: cri-o
138146
instanceType: r5.8xlarge
139147
labels:
140148
node.kubernetes.io/workload.memory-optimized: "true"
141149
maxCapacity: 100
142150
minCapacity: 0
143-
rootDeviceSize: 200
144151
taints:
145152
- workload=memory-optimized:NoSchedule
146153
accountId: "11111-2222-3333-4444-55555555"
@@ -150,10 +157,15 @@
150157
- 10.3.0.0/24
151158
registeredAt: "2019-02-10T06:15:32Z"
152159
lastUpdated: "2020-02-10T06:15:32Z"
160+
managingOrg: Ethos
153161
k8sInfraRelease:
154162
gitSha: 1e8cbd109d7a77909f627ec5247520b70cc209e9
155163
lastUpdated: "2021-03-22T11:55:41Z"
156164
release: 2021-W06-0-116-gd0c7e403
165+
capacity:
166+
clusterCapacity: 50
167+
clusterProvisioning: 20
168+
lastUpdated: "2023-03-22T11:55:41Z"
157169
status: Active
158170
phase: Upgrading
159171
tags:
@@ -172,11 +184,12 @@
172184
certificateAuthorityData: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS==
173185
region: uswest1
174186
cloudType: aws
187+
cloudProviderRegion: uswest1
175188
environment: Prod
176189
type: Dedicated
177190
businessUnit: BU1
178191
offering:
179-
- paas
192+
- PaaS
180193
allowedTeams:
181194
- name: my-team
182195
gitTeams:
@@ -210,28 +223,33 @@
210223
isDefault: true
211224
tiers:
212225
- name: proxy
226+
containerRuntime: cri-o
213227
instanceType: r5a.4xlarge
214228
maxCapacity: 200
215229
minCapacity: 3
216-
rootDeviceSize: 200
217230
- name: worker
231+
containerRuntime: cri-o
218232
instanceType: c5.9xlarge
219233
labels:
220234
node.kubernetes.io/workload.memory-optimized: "true"
221235
maxCapacity: 1000
222236
minCapacity: 3
223-
rootDeviceSize: 200
224237
accountId: "12345678"
225238
virtualNetworks:
226239
- id: vpc-123456
227240
cidrs:
228241
- 10.0.22.0/8
229242
registeredAt: "2020-03-19T07:55:46.132Z"
230243
lastUpdated: "2020-03-20T07:55:46.132Z"
244+
managingOrg: Ethos
231245
k8sInfraRelease:
232246
gitSha: 110bb4f33b2142dde01e74a9bae7148534c2685b
233247
lastUpdated: "2021-03-22T11:55:41Z"
234248
release: 2021-W06-0-116-gd0c7e403
249+
capacity:
250+
clusterCapacity: 30
251+
clusterProvisioning: 30
252+
lastUpdated: "2023-03-22T11:55:41Z"
235253
status: Active
236254
phase: Running
237255
tags:

0 commit comments

Comments
 (0)