Skip to content

Commit 38c23c1

Browse files
committed
updateted Helm
1 parent 41af55f commit 38c23c1

File tree

4 files changed

+184
-22
lines changed

4 files changed

+184
-22
lines changed

deploy/charts/netris-operator/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.1
18+
version: 0.2.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: v0.0.2
23+
appVersion: v0.2.0
2424
home: https://github.com/netrisai/netris-operator
2525
icon: https://www.netris.ai/wp-content/uploads/2020/05/logo-600.png # [todo] Change url to permalink
2626
keywords:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
2+
---
3+
apiVersion: apiextensions.k8s.io/v1beta1
4+
kind: CustomResourceDefinition
5+
metadata:
6+
annotations:
7+
controller-gen.kubebuilder.io/version: v0.3.0
8+
creationTimestamp: null
9+
name: vnetmeta.k8s.netris.ai
10+
spec:
11+
group: k8s.netris.ai
12+
names:
13+
kind: VNetMeta
14+
listKind: VNetMetaList
15+
plural: vnetmeta
16+
singular: vnetmeta
17+
scope: Namespaced
18+
subresources:
19+
status: {}
20+
validation:
21+
openAPIV3Schema:
22+
description: VNetMeta is the Schema for the vnetmeta API
23+
properties:
24+
apiVersion:
25+
description: 'APIVersion defines the versioned schema of this representation
26+
of an object. Servers should convert recognized schemas to the latest
27+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
28+
type: string
29+
kind:
30+
description: 'Kind is a string value representing the REST resource this
31+
object represents. Servers may infer this from the endpoint the client
32+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
33+
type: string
34+
metadata:
35+
type: object
36+
spec:
37+
description: VNetMetaSpec defines the desired state of VNetMeta
38+
properties:
39+
gateways:
40+
items:
41+
description: VNetMetaGateway .
42+
properties:
43+
gateway:
44+
type: string
45+
gwLength:
46+
type: integer
47+
id:
48+
type: integer
49+
nos:
50+
type: string
51+
vaVlanId:
52+
type: integer
53+
version:
54+
type: string
55+
required:
56+
- gateway
57+
- gwLength
58+
type: object
59+
type: array
60+
id:
61+
type: integer
62+
members:
63+
items:
64+
description: VNetMetaMember .
65+
properties:
66+
childPort:
67+
type: integer
68+
lacp:
69+
type: string
70+
member_state:
71+
type: string
72+
parentPort:
73+
type: integer
74+
port_id:
75+
type: integer
76+
port_name:
77+
type: string
78+
portIsUntagged:
79+
type: boolean
80+
tenant_id:
81+
type: integer
82+
vlan_id:
83+
type: integer
84+
required:
85+
- childPort
86+
- lacp
87+
- member_state
88+
- parentPort
89+
- portIsUntagged
90+
- port_id
91+
- port_name
92+
- tenant_id
93+
- vlan_id
94+
type: object
95+
type: array
96+
name:
97+
type: string
98+
owner:
99+
type: string
100+
ownerid:
101+
type: integer
102+
provisioning:
103+
type: integer
104+
sites:
105+
items:
106+
description: VNetMetaSite .
107+
properties:
108+
id:
109+
type: integer
110+
name:
111+
type: string
112+
type: object
113+
type: array
114+
state:
115+
type: string
116+
tenants:
117+
items:
118+
type: integer
119+
type: array
120+
vaMode:
121+
type: boolean
122+
vaNativeVlan:
123+
type: integer
124+
vaVlans:
125+
type: string
126+
vnetGeneration:
127+
format: int64
128+
type: integer
129+
vnetName:
130+
type: string
131+
required:
132+
- gateways
133+
- id
134+
- members
135+
- name
136+
- owner
137+
- ownerid
138+
- provisioning
139+
- sites
140+
- state
141+
- tenants
142+
- vaMode
143+
- vaNativeVlan
144+
- vaVlans
145+
- vnetGeneration
146+
- vnetName
147+
type: object
148+
status:
149+
description: VNetMetaStatus defines the observed state of VNetMeta
150+
type: object
151+
type: object
152+
version: v1alpha1
153+
versions:
154+
- name: v1alpha1
155+
served: true
156+
storage: true
157+
status:
158+
acceptedNames:
159+
kind: ""
160+
plural: ""
161+
conditions: []
162+
storedVersions: []

deploy/charts/netris-operator/crds/k8s.netris.ai_vnets.yaml

-20
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,8 @@ spec:
4040
items:
4141
type: integer
4242
type: array
43-
id:
44-
type: integer
45-
ownerId:
46-
type: integer
4743
ownerTenant:
4844
type: string
49-
provisioning:
50-
type: integer
5145
sites:
5246
items:
5347
description: VNetSite .
@@ -62,28 +56,14 @@ spec:
6256
type: string
6357
type: object
6458
type: array
65-
id:
66-
type: integer
6759
name:
6860
type: string
6961
switchPorts:
7062
items:
7163
description: VNetSwitchPort .
7264
properties:
73-
childPort:
74-
type: integer
75-
memberState:
76-
type: string
7765
name:
7866
type: string
79-
parentPort:
80-
type: integer
81-
portId:
82-
type: integer
83-
portIsUntagged:
84-
type: boolean
85-
tenantId:
86-
type: integer
8767
vlanId:
8868
type: integer
8969
required:

deploy/charts/netris-operator/templates/rbac.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ kind: ClusterRole
55
metadata:
66
name: '{{ include "netris-operator.fullname" . }}-manager-role'
77
rules:
8+
- apiGroups:
9+
- k8s.netris.ai
10+
resources:
11+
- vnetmeta
12+
verbs:
13+
- create
14+
- delete
15+
- get
16+
- list
17+
- patch
18+
- update
19+
- watch
20+
- apiGroups:
21+
- k8s.netris.ai
22+
resources:
23+
- vnetmeta/status
24+
verbs:
25+
- get
26+
- patch
27+
- update
828
- apiGroups:
929
- k8s.netris.ai
1030
resources:

0 commit comments

Comments
 (0)