Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Fix resource samples in CSV
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Macík <[email protected]>
  • Loading branch information
pmacik committed Oct 31, 2022
1 parent 120dad9 commit 07cbbd5
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 6 deletions.
6 changes: 4 additions & 2 deletions config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## Append samples you want in your CSV to this file as resources ##
resources:
- operators_v1alpha1_bindablekinds.yaml
- operators_v1alpha1_servicebinding.yaml
- servicebinding.io_v1alpha3_servicebinding.yaml
- spec_v1beta1_servicebinding.yaml
- spec_v1alpha3_clusterworkloadresourcemapping.yaml
- spec_v1alpha3_servicebinding.yaml
- spec_v1beta1_clusterworkloadresourcemapping.yaml
- spec_v1beta1_servicebinding.yaml
# +kubebuilder:scaffold:manifestskustomizesamples
5 changes: 5 additions & 0 deletions config/samples/operators_v1alpha1_bindablekinds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: binding.operators.coreos.com/v1alpha1
kind: BindableKinds
metadata:
name: bindable-kinds
spec: {}
11 changes: 11 additions & 0 deletions config/samples/spec_v1alpha3_clusterworkloadresourcemapping.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: servicebinding.io/v1alpha3
kind: ClusterWorkloadResourceMapping
metadata:
name: cronjobs.batch
spec:
versions:
- version: "*"
volumes: .spec.jobTemplate.spec.template.spec.volumes
containers:
- path: .spec.jobTemplate.spec.template.spec.containers[*]
- path: .spec.jobTemplate.spec.template.spec.initContainers[*]
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ spec:
application:
name: nodejs-rest-http-crud
apiVersion: apps/v1
Kind: Ddeployment
Kind: Deployment
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
apiVersion: servicebinding.io/v1beta1
kind: ClusterWorkloadResourceMapping
metadata:
name: clusterworkloadresourcemapping-sample
name: cronjobs.batch
spec:
# TODO(user): Add fields here
versions:
- version: "*"
volumes: .spec.jobTemplate.spec.template.spec.volumes
containers:
- path: .spec.jobTemplate.spec.template.spec.containers[*]
- path: .spec.jobTemplate.spec.template.spec.initContainers[*]
10 changes: 9 additions & 1 deletion config/samples/spec_v1beta1_servicebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@ kind: ServiceBinding
metadata:
name: servicebinding-sample
spec:
# TODO(user): Add fields here
type: postgres
service:
name: pg-instance
apiVersion: postgresql.example.dev/v1alpha1
kind: Database
workload:
name: nodejs-rest-http-crud
apiVersion: apps/v1
Kind: Deployment

0 comments on commit 07cbbd5

Please sign in to comment.