-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nikhil Thomas
committed
Sep 12, 2019
1 parent
991851f
commit 381e07b
Showing
13 changed files
with
704 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132 changes: 132 additions & 0 deletions
132
...log/icndb-app-operator/2.0.0-exp/icndb-app-operator.v2.0.0-exp.clusterserviceversion.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
66 changes: 66 additions & 0 deletions
66
deploy/olm-catalog/icndb-app-operator/2.0.0-exp/icndbfun_v1alpha1_funapp_crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 2 additions & 0 deletions
2
deploy/olm-catalog/icndb-app-operator/icndb-app-operator.package.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
manifests/version-exp/icndb-app-operator/icndb-app-operator.package.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
129 changes: 129 additions & 0 deletions
129
...ersion-exp/icndb-app-operator/icndb-app-operator.v1.0.0.clusterserviceversion-v1.0.0.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.