Skip to content
Open
436 changes: 421 additions & 15 deletions deploy/1-create-operator.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deploy/crds/contrail.juniper.net_cassandras_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
listKind: CassandraList
plural: cassandras
singular: cassandra
scope: Namespaced
scope: ""
subresources:
status: {}
validation:
Expand Down
2 changes: 1 addition & 1 deletion deploy/crds/contrail.juniper.net_commands_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
listKind: CommandList
plural: commands
singular: command
scope: Namespaced
scope: ""
subresources:
status: {}
validation:
Expand Down
2 changes: 1 addition & 1 deletion deploy/crds/contrail.juniper.net_configs_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
listKind: ConfigList
plural: configs
singular: config
scope: Namespaced
scope: ""
subresources:
status: {}
validation:
Expand Down
177 changes: 177 additions & 0 deletions deploy/crds/contrail.juniper.net_contrailmonitors_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: contrailmonitors.contrail.juniper.net
spec:
group: contrail.juniper.net
names:
kind: Contrailmonitor
listKind: ContrailmonitorList
plural: contrailmonitors
singular: contrailmonitor
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: Contrailmonitor is the Schema for the contrailmonitors 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: ContrailmonitorSpec defines the desired state of Contrailmonitor
properties:
serviceConfiguration:
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "operator-sdk generate k8s" to regenerate code after
modifying this file Add custom validation using kubebuilder tags:
https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html'
properties:
cassandraInstance:
type: string
commandInstance:
type: string
configInstance:
type: string
controlInstance:
type: string
keystoneInstance:
type: string
memcachedInstance:
type: string
postgresInstance:
type: string
provisionmanagerInstance:
type: string
rabbitmqInstance:
type: string
webuiInstance:
type: string
zookeeperInstance:
type: string
type: object
required:
- serviceConfiguration
type: object
status:
description: ContrailmonitorStatus defines the observed state of Contrailmonitor
properties:
active:
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
of cluster Important: Run "operator-sdk generate k8s" to regenerate
code after modifying this file Add custom validation using kubebuilder
tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html'
type: boolean
cassandras:
description: ModuleStatus defines the observed state of ConfigStatus
properties:
moduleName:
type: string
state:
type: string
required:
- state
type: object
config:
items:
description: ModuleStatus defines the observed state of ConfigStatus
properties:
moduleName:
type: string
state:
type: string
required:
- state
type: object
type: array
keystone:
description: ModuleStatus defines the observed state of ConfigStatus
properties:
moduleName:
type: string
state:
type: string
required:
- state
type: object
memcached:
description: ModuleStatus defines the observed state of ConfigStatus
properties:
moduleName:
type: string
state:
type: string
required:
- state
type: object
postgres:
description: ModuleStatus defines the observed state of ConfigStatus
properties:
moduleName:
type: string
state:
type: string
required:
- state
type: object
provisionManager:
description: ModuleStatus defines the observed state of ConfigStatus
properties:
moduleName:
type: string
state:
type: string
required:
- state
type: object
rabbitmq:
description: ModuleStatus defines the observed state of ConfigStatus
properties:
moduleName:
type: string
state:
type: string
required:
- state
type: object
statusname:
type: string
webui:
items:
description: ModuleStatus defines the observed state of ConfigStatus
properties:
moduleName:
type: string
state:
type: string
required:
- state
type: object
type: array
zookeepers:
description: ModuleStatus defines the observed state of ConfigStatus
properties:
moduleName:
type: string
state:
type: string
required:
- state
type: object
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
43 changes: 43 additions & 0 deletions deploy/crds/contrail.juniper.net_contrailstatusmonitors_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: contrailstatusmonitors.contrail.juniper.net
spec:
additionalPrinterColumns:
- JSONPath: .status
description: Number of instances in group
name: Status
type: string
group: contrail.juniper.net
names:
kind: Contrailstatusmonitor
listKind: ContrailstatusmonitorList
plural: contrailstatusmonitors
singular: contrailstatusmonitor
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
description: Contrailstatusmonitor is the Schema for the contrailstatusmonitors
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
status:
type: string
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
2 changes: 1 addition & 1 deletion deploy/crds/contrail.juniper.net_controls_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
listKind: ControlList
plural: controls
singular: control
scope: Namespaced
scope: ""
subresources:
status: {}
validation:
Expand Down
2 changes: 1 addition & 1 deletion deploy/crds/contrail.juniper.net_keystones_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
listKind: KeystoneList
plural: keystones
singular: keystone
scope: Namespaced
scope: ""
subresources:
status: {}
validation:
Expand Down
2 changes: 1 addition & 1 deletion deploy/crds/contrail.juniper.net_kubemanagers_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
listKind: KubemanagerList
plural: kubemanagers
singular: kubemanager
scope: Namespaced
scope: ""
subresources:
status: {}
validation:
Expand Down
Loading