Skip to content

Commit

Permalink
Misc fixes, subresource, samples, iam controller (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
vazirim authored and GitHub Enterprise committed Jun 10, 2019
1 parent 8bdecb0 commit df4f3cd
Show file tree
Hide file tree
Showing 34 changed files with 434 additions and 114 deletions.
3 changes: 2 additions & 1 deletion config/crds/ibmcloud_v1alpha1_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
kind: Binding
plural: bindings
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
Expand All @@ -41,7 +43,6 @@ spec:
type: string
required:
- serviceName
- role
type: object
status:
properties:
Expand Down
4 changes: 4 additions & 0 deletions config/crds/ibmcloud_v1alpha1_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
kind: Service
plural: services
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
Expand Down Expand Up @@ -69,6 +71,8 @@ spec:
type: object
status:
properties:
binding:
type: string
context:
properties:
org:
Expand Down
36 changes: 36 additions & 0 deletions config/rbac/rbac_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ rules:
- update
- patch
- delete
- apiGroups:
- ibmcloud.ibm.com
resources:
- services
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
Expand All @@ -52,6 +64,18 @@ rules:
- update
- patch
- delete
- apiGroups:
- ibmcloud.ibm.com
resources:
- bindings/status
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -244,6 +268,18 @@ rules:
- update
- patch
- delete
- apiGroups:
- ibmcloud.ibm.com
resources:
- services/status
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
Expand Down
15 changes: 15 additions & 0 deletions config/samples/apiconnect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: myapiconnect
spec:
plan: Lite
serviceClass: APIConnect
serviceClassType: CF
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-apiconnect
spec:
serviceName: myapiconnect
15 changes: 15 additions & 0 deletions config/samples/appconnect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: myappconnect
spec:
plan: Lite
serviceClass: AppConnect
serviceClassType: CF
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-appconnect
spec:
serviceName: myappconnect
7 changes: 0 additions & 7 deletions config/samples/cloudant.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mytranslator
name: myappid
spec:
plan: lite
serviceClass: language-translator
serviceClass: appid
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-translator
name: binding-appid
spec:
serviceName: mytranslator
role: Manager
serviceName: myappid
14 changes: 14 additions & 0 deletions config/samples/group/applaunch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: myapplaunch
spec:
plan: beta
serviceClass: applaunch
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-applaunch
spec:
serviceName: myapplaunch
14 changes: 14 additions & 0 deletions config/samples/group/cloudant.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mycloudant
spec:
plan: lite
serviceClass: cloudantnosqldb
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-cloudant
spec:
serviceName: mycloudant
14 changes: 14 additions & 0 deletions config/samples/group/contdelivery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mydelivery
spec:
plan: lite
serviceClass: continuous-delivery
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-delivery
spec:
serviceName: mydelivery
20 changes: 20 additions & 0 deletions config/samples/group/cos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mycos
spec:
plan: lite
serviceClass: cloud-object-storage
context:
org: [email protected]
region: global
space: dev
resourcegroup: default
resourcelocation: global
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-mycos
spec:
serviceName: mycos
15 changes: 15 additions & 0 deletions config/samples/group/db2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mydb2
spec:
plan: Entry
serviceClass: dashDB
serviceClassType: CF
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-db2
spec:
serviceName: mydb2
File renamed without changes.
14 changes: 14 additions & 0 deletions config/samples/group/etcd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: myetcd
spec:
plan: standard
serviceClass: databases-for-etcd
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-etcd
spec:
serviceName: myetcd
7 changes: 7 additions & 0 deletions config/samples/geo.yaml → config/samples/group/geo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ spec:
plan: Standard
serviceClass: Geospatial Analytics
serviceClassType: CF
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-geo
spec:
serviceName: mygeo
15 changes: 15 additions & 0 deletions config/samples/group/iot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: myiot
spec:
plan: iotf-service-free
serviceClass: iotf-service
serviceClassType: CF
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-iot
spec:
serviceName: myiot
14 changes: 14 additions & 0 deletions config/samples/group/keyprotect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mykeyprotect
spec:
plan: tiered-pricing
serviceClass: kms
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-keyprotect
spec:
serviceName: mykeyprotect
14 changes: 14 additions & 0 deletions config/samples/group/knowledge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: myknowledgestudio
spec:
plan: free
serviceClass: knowledge-studio
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-knowledge
spec:
serviceName: myknowledgestudio
File renamed without changes.
15 changes: 15 additions & 0 deletions config/samples/group/messagehubCF.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mymessagehubcf
spec:
plan: standard
serviceClass: messagehub
serviceClassType: CF
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-messagehubcf
spec:
serviceName: mymessagehubcf
14 changes: 14 additions & 0 deletions config/samples/group/mq.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mymq
spec:
plan: lite
serviceClass: mqcloud
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-mq
spec:
serviceName: mymq
14 changes: 14 additions & 0 deletions config/samples/group/personality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mypersonality
spec:
plan: lite
serviceClass: personality-insights
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-personality
spec:
serviceName: mypersonality
14 changes: 14 additions & 0 deletions config/samples/group/postgresql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Service
metadata:
name: mypostgresql
spec:
plan: standard
serviceClass: databases-for-postgresql
---
apiVersion: ibmcloud.ibm.com/v1alpha1
kind: Binding
metadata:
name: binding-postgresql
spec:
serviceName: mypostgresql
Loading

0 comments on commit df4f3cd

Please sign in to comment.