Skip to content

Commit

Permalink
Add exp multi name CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil Thomas committed Sep 12, 2019
1 parent 991851f commit 381e07b
Show file tree
Hide file tree
Showing 13 changed files with 704 additions and 8 deletions.
8 changes: 6 additions & 2 deletions deploy/crds/icndbfun_v1alpha1_funapp_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ metadata:
spec:
funpods: 4
params:
- key: Name
value: Superstar Rajnikanth
- key: Name
value: Superstar Rajnikanth
- key: Name
value: Chuck Norris
- key: Name
value: John Abraham
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: '[{"apiVersion":"icndbfun.dev/v1alpha1","kind":"FunApp","metadata":{"name":"devopsday-funapp"},"spec":{"funpods":4,"params":[{"key":"Name","value":"Superstar
Rajnikanth"},{"key":"Name","value":"Chuck Norris"},{"key":"Name","value":"John
Abraham"}]}}]'
capabilities: Basic Install
name: icndb-app-operator.v2.0.0-exp
namespace: placeholder
spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- description: Create an instance of FUnApp CRD to launch FunApp in this namespace
displayName: FunApp CRD
kind: FunApp
name: funapps.icndbfun.dev
version: v1alpha1
description: Icndb App Operator manages the lifecycle of ICNDB App https://github.com/nikhil-thomas/icndp-app
displayName: Icndb App Operator
install:
spec:
clusterPermissions:
- rules:
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
verbs:
- '*'
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- get
- create
- apiGroups:
- apps
resourceNames:
- icndb-app-operator
resources:
- deployments/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- apiGroups:
- apps
resources:
- replicasets
verbs:
- get
- apiGroups:
- icndbfun.dev
resources:
- '*'
verbs:
- '*'
serviceAccountName: icndb-app-operator
deployments:
- name: icndb-app-operator
spec:
replicas: 1
selector:
matchLabels:
name: icndb-app-operator
strategy: {}
template:
metadata:
labels:
name: icndb-app-operator
spec:
containers:
- command:
- icndb-app-operator
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: icndb-app-operator
image: nikhilvep/icndb-app-operator:version-exp
imagePullPolicy: Always
name: icndb-app-operator
resources: {}
serviceAccountName: icndb-app-operator
strategy: deployment
installModes:
- supported: true
type: OwnNamespace
- supported: false
type: SingleNamespace
- supported: true
type: MultiNamespace
- supported: true
type: AllNamespaces
keywords:
- olm-example
maintainers:
- email: [email protected]
name: Nikhil Thomas
maturity: alpha
provider:
name: Nikhil Thomas
replaces: icndb-app-operator.v2.0.0
version: 2.0.0-exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: funapps.icndbfun.dev
spec:
group: icndbfun.dev
names:
kind: FunApp
listKind: FunAppList
plural: funapps
singular: funapp
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
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/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/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
funpods:
description: Funpods specify number of replicas in the deployment created
format: int32
type: integer
params:
description: Params specify additional configuration if required
items:
properties:
key:
type: string
value:
type: string
required:
- key
- value
type: object
type: array
required:
- funpods
type: object
status:
properties:
podnames:
description: Podnames list all the pods created for FunApp
items:
type: string
type: array
required:
- podnames
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
channels:
- currentCSV: icndb-app-operator.v2.0.0
name: alpha
- currentCSV: icndb-app-operator.v2.0.0-exp
name: experimental
defaultChannel: alpha
packageName: icndb-app-operator
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
containers:
- name: icndb-app-operator
# Replace this with the built image name
image: nikhilvep/icndb-app-operator:version-2.0
image: nikhilvep/icndb-app-operator:version-exp
command:
- icndb-app-operator
imagePullPolicy: Always
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
channels:
- currentCSV: icndb-app-operator.v2.0.0
name: alpha
- currentCSV: icndb-app-operator.v2.0.0-exp
name: experimental
defaultChannel: alpha
packageName: icndb-app-operator
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: '[{"apiVersion":"icndbfun.dev/v1alpha1","kind":"FunApp","metadata":{"name":"devopsday-funapp"},"spec":{"funpods":4}}]'
capabilities: Basic Install
name: icndb-app-operator.v1.0.0
namespace: placeholder
spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- kind: FunApp
name: funapps.icndbfun.dev
version: v1alpha1
displayName: FunApp CRD
description: Create an instance of FUnApp CRD to launch FunApp in this namespace
description: Icndb App Operator manages the lifecycle of ICNDB App https://github.com/nikhil-thomas/icndp-app
displayName: Icndb App Operator
install:
spec:
clusterPermissions:
- rules:
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
verbs:
- '*'
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- get
- create
- apiGroups:
- apps
resourceNames:
- icndb-app-operator
resources:
- deployments/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- apiGroups:
- apps
resources:
- replicasets
verbs:
- get
- apiGroups:
- icndbfun.dev
resources:
- '*'
verbs:
- '*'
serviceAccountName: icndb-app-operator
deployments:
- name: icndb-app-operator
spec:
replicas: 1
selector:
matchLabels:
name: icndb-app-operator
strategy: {}
template:
metadata:
labels:
name: icndb-app-operator
spec:
containers:
- command:
- icndb-app-operator
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: icndb-app-operator
image: nikhilvep/icndb-app-operator:version-1.0
imagePullPolicy: Always
name: icndb-app-operator
resources: {}
serviceAccountName: icndb-app-operator
strategy: deployment
installModes:
- supported: true
type: OwnNamespace
- supported: false
type: SingleNamespace
- supported: true
type: MultiNamespace
- supported: true
type: AllNamespaces
maturity: alpha
provider:
name: Nikhil Thomas
maintainers:
- email: [email protected]
name: Nikhil Thomas
keywords:
- olm-example
version: 1.0.0
Loading

0 comments on commit 381e07b

Please sign in to comment.