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

Fix resource samples in CSV #1294

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
sadlerap marked this conversation as resolved.
Show resolved Hide resolved
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