Skip to content

Commit

Permalink
Update-2021-01-29_08:38:53
Browse files Browse the repository at this point in the history
  • Loading branch information
pogossian committed Jan 29, 2021
1 parent c21cde0 commit 335e0a1
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 22 deletions.
4 changes: 2 additions & 2 deletions charts/netris-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: v0.0.2
appVersion: v0.2.0
home: https://github.com/netrisai/netris-operator
icon: https://www.netris.ai/wp-content/uploads/2020/05/logo-600.png # [todo] Change url to permalink
keywords:
Expand Down
162 changes: 162 additions & 0 deletions charts/netris-operator/crds/k8s.netris.ai_vnetmeta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@

---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.3.0
creationTimestamp: null
name: vnetmeta.k8s.netris.ai
spec:
group: k8s.netris.ai
names:
kind: VNetMeta
listKind: VNetMetaList
plural: vnetmeta
singular: vnetmeta
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: VNetMeta is the Schema for the vnetmeta API
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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: VNetMetaSpec defines the desired state of VNetMeta
properties:
gateways:
items:
description: VNetMetaGateway .
properties:
gateway:
type: string
gwLength:
type: integer
id:
type: integer
nos:
type: string
vaVlanId:
type: integer
version:
type: string
required:
- gateway
- gwLength
type: object
type: array
id:
type: integer
members:
items:
description: VNetMetaMember .
properties:
childPort:
type: integer
lacp:
type: string
member_state:
type: string
parentPort:
type: integer
port_id:
type: integer
port_name:
type: string
portIsUntagged:
type: boolean
tenant_id:
type: integer
vlan_id:
type: integer
required:
- childPort
- lacp
- member_state
- parentPort
- portIsUntagged
- port_id
- port_name
- tenant_id
- vlan_id
type: object
type: array
name:
type: string
owner:
type: string
ownerid:
type: integer
provisioning:
type: integer
sites:
items:
description: VNetMetaSite .
properties:
id:
type: integer
name:
type: string
type: object
type: array
state:
type: string
tenants:
items:
type: integer
type: array
vaMode:
type: boolean
vaNativeVlan:
type: integer
vaVlans:
type: string
vnetGeneration:
format: int64
type: integer
vnetName:
type: string
required:
- gateways
- id
- members
- name
- owner
- ownerid
- provisioning
- sites
- state
- tenants
- vaMode
- vaNativeVlan
- vaVlans
- vnetGeneration
- vnetName
type: object
status:
description: VNetMetaStatus defines the observed state of VNetMeta
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
20 changes: 0 additions & 20 deletions charts/netris-operator/crds/k8s.netris.ai_vnets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,8 @@ spec:
items:
type: integer
type: array
id:
type: integer
ownerId:
type: integer
ownerTenant:
type: string
provisioning:
type: integer
sites:
items:
description: VNetSite .
Expand All @@ -62,28 +56,14 @@ spec:
type: string
type: object
type: array
id:
type: integer
name:
type: string
switchPorts:
items:
description: VNetSwitchPort .
properties:
childPort:
type: integer
memberState:
type: string
name:
type: string
parentPort:
type: integer
portId:
type: integer
portIsUntagged:
type: boolean
tenantId:
type: integer
vlanId:
type: integer
required:
Expand Down
20 changes: 20 additions & 0 deletions charts/netris-operator/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ kind: ClusterRole
metadata:
name: '{{ include "netris-operator.fullname" . }}-manager-role'
rules:
- apiGroups:
- k8s.netris.ai
resources:
- vnetmeta
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- k8s.netris.ai
resources:
- vnetmeta/status
verbs:
- get
- patch
- update
- apiGroups:
- k8s.netris.ai
resources:
Expand Down

0 comments on commit 335e0a1

Please sign in to comment.