Skip to content

Instantly share code, notes, and snippets.

@david-martin
Last active April 30, 2018 22:35
Show Gist options
  • Save david-martin/594464b8193fb3f81c9bd878709731b5 to your computer and use it in GitHub Desktop.
Save david-martin/594464b8193fb3f81c9bd878709731b5 to your computer and use it in GitHub Desktop.
cluster service plan with dependencies
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ClusterServicePlan
metadata:
name: dependenciestest
spec:
clusterServiceBrokerName: ansible-service-broker
clusterServiceClassRef:
name: dependenciestest
description: Dependencies Test
externalID: 5f04a3f508d7615a422863814f58ad98
externalMetadata:
schemas:
service_instance:
create:
openshift_form_definition:
- pets
- amount
- future
update: {}
externalName: default
free: true
instanceCreateParameterSchema:
$schema: http://json-schema.org/draft-04/schema
additionalProperties: false
properties:
pets:
default: "Yes"
enum:
- "Yes"
- "No"
title: Do you have pets?
type: string
amount:
type: string
title: How many Pets? (Only show if 'Yes' is selected)
future:
type: string
title: Would you consider in the future? (Only show if 'No' is selected)
dependencies:
pets:
oneOf:
- properties:
pets:
enum:
- "Yes"
amount:
type: string
title: How many Pets? (Only show if 'Yes' is selected)
required:
- amount
- properties:
pets:
enum:
- "No"
future:
type: string
title: Would you consider in the future? (Only show if 'No' is selected)
required:
- future
required:
- pets
type: object
instanceUpdateParameterSchema:
$schema: http://json-schema.org/draft-04/schema
additionalProperties: false
type: object
serviceBindingCreateParameterSchema:
$schema: http://json-schema.org/draft-04/schema
additionalProperties: false
type: object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment