Skip to content

Instantly share code, notes, and snippets.

@fabianvf
Created November 8, 2018 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabianvf/4faabb24b469879ba34709b2f697c854 to your computer and use it in GitHub Desktop.
Save fabianvf/4faabb24b469879ba34709b2f697c854 to your computer and use it in GitHub Desktop.
$id: http://example.com/root.json
$schema: http://json-schema.org/draft-07/schema#
properties:
brokerClusterRole:
$id: '#/properties/brokerClusterRole'
default: admin
title: The Broker ClusterRole Schema
type: string
brokerConfig:
$id: '#/properties/brokerConfig'
properties:
broker:
$id: '#/properties/brokerConfig/properties/broker'
properties:
auth:
$id: '#/properties/brokerConfig/properties/broker/properties/auth'
items:
$id: '#/properties/brokerConfig/properties/broker/properties/auth/items'
properties:
enabled:
$id: '#/properties/brokerConfig/properties/broker/properties/auth/items/properties/enabled'
default: false
examples: [false]
title: The Enabled Schema
type: boolean
type:
$id: '#/properties/brokerConfig/properties/broker/properties/auth/items/properties/type'
default: ''
examples: [basic]
pattern: ^(.*)$
title: The Type Schema
type: string
required: [type, enabled]
title: The Items Schema
type: object
title: The Auth Schema
type: array
autoEscalate:
$id: '#/properties/brokerConfig/properties/broker/properties/autoEscalate'
default: false
examples: [true]
title: The Autoescalate Schema
type: boolean
bootstrapOnStartup:
$id: '#/properties/brokerConfig/properties/broker/properties/bootstrapOnStartup'
default: false
examples: [true]
title: The Bootstraponstartup Schema
type: boolean
devBroker:
$id: '#/properties/brokerConfig/properties/broker/properties/devBroker'
default: false
examples: [false]
title: The Devbroker Schema
type: boolean
launchApbOnBind:
$id: '#/properties/brokerConfig/properties/broker/properties/launchApbOnBind'
default: false
examples: [false]
title: The Launchapbonbind Schema
type: boolean
outputRequest:
$id: '#/properties/brokerConfig/properties/broker/properties/outputRequest'
default: false
examples: [false]
title: The Outputrequest Schema
type: boolean
recovery:
$id: '#/properties/brokerConfig/properties/broker/properties/recovery'
default: false
examples: [true]
title: The Recovery Schema
type: boolean
refreshInterval:
$id: '#/properties/brokerConfig/properties/broker/properties/refreshInterval'
default: ''
examples: [60s]
pattern: ^(.*)$
title: The Refreshinterval Schema
type: string
sslCert:
$id: '#/properties/brokerConfig/properties/broker/properties/sslCert'
default: ''
examples: [/etc/tls/private/tls.crt]
pattern: ^(.*)$
title: The Sslcert Schema
type: string
sslCertKey:
$id: '#/properties/brokerConfig/properties/broker/properties/sslCertKey'
default: ''
examples: [/etc/tls/private/tls.key]
pattern: ^(.*)$
title: The Sslcertkey Schema
type: string
required: [outputRequest, recovery, sslCert, launchApbOnBind, auth, bootstrapOnStartup,
refreshInterval, devBroker, autoEscalate, sslCertKey]
title: The Broker Schema
type: object
dao:
$id: '#/properties/brokerConfig/properties/dao'
properties:
type:
$id: '#/properties/brokerConfig/properties/dao/properties/type'
default: ''
examples: [crd]
pattern: ^(.*)$
title: The Type Schema
type: string
required: [type]
title: The Dao Schema
type: object
log:
$id: '#/properties/brokerConfig/properties/log'
properties:
color:
$id: '#/properties/brokerConfig/properties/log/properties/color'
default: false
examples: [true]
title: The Color Schema
type: boolean
level:
$id: '#/properties/brokerConfig/properties/log/properties/level'
default: ''
examples: [debug]
pattern: ^(.*)$
title: The Level Schema
type: string
logfile:
$id: '#/properties/brokerConfig/properties/log/properties/logfile'
default: ''
examples: [/var/log/ansible-service-broker/asb.log]
pattern: ^(.*)$
title: The Logfile Schema
type: string
stdout:
$id: '#/properties/brokerConfig/properties/log/properties/stdout'
default: false
examples: [true]
title: The Stdout Schema
type: boolean
required: [color, logfile, stdout, level]
title: The Log Schema
type: object
openshift:
$id: '#/properties/brokerConfig/properties/openshift'
properties:
imagePullPolicy:
$id: '#/properties/brokerConfig/properties/openshift/properties/imagePullPolicy'
default: ''
examples: [Always]
pattern: ^(.*)$
title: The Imagepullpolicy Schema
type: string
keepNamespace:
$id: '#/properties/brokerConfig/properties/openshift/properties/keepNamespace'
default: false
examples: [false]
title: The Keepnamespace Schema
type: boolean
keepNamespaceOnError:
$id: '#/properties/brokerConfig/properties/openshift/properties/keepNamespaceOnError'
default: false
examples: [true]
title: The Keepnamespaceonerror Schema
type: boolean
namespace:
$id: '#/properties/brokerConfig/properties/openshift/properties/namespace'
default: ''
examples: [automation-broker]
pattern: ^(.*)$
title: The Namespace Schema
type: string
sandboxRole:
$id: '#/properties/brokerConfig/properties/openshift/properties/sandboxRole'
default: ''
examples: [edit]
pattern: ^(.*)$
title: The Sandboxrole Schema
type: string
required: [keepNamespace, sandboxRole, imagePullPolicy, namespace, keepNamespaceOnError]
title: The Openshift Schema
type: object
registry:
$id: '#/properties/brokerConfig/properties/registry'
items:
$id: '#/properties/brokerConfig/properties/registry/items'
properties:
name:
$id: '#/properties/brokerConfig/properties/registry/items/properties/name'
default: ''
examples: [hc]
pattern: ^(.*)$
title: The Name Schema
type: string
org:
$id: '#/properties/brokerConfig/properties/registry/items/properties/org'
default: ''
examples: [homecluster]
pattern: ^(.*)$
title: The Org Schema
type: string
tag:
$id: '#/properties/brokerConfig/properties/registry/items/properties/tag'
default: ''
examples: [latest]
pattern: ^(.*)$
title: The Tag Schema
type: string
type:
$id: '#/properties/brokerConfig/properties/registry/items/properties/type'
default: ''
examples: [dockerhub]
pattern: ^(.*)$
title: The Type Schema
type: string
url:
$id: '#/properties/brokerConfig/properties/registry/items/properties/url'
default: ''
examples: ['https://registry.hub.docker.com']
pattern: ^(.*)$
title: The Url Schema
type: string
whiteList:
$id: '#/properties/brokerConfig/properties/registry/items/properties/whiteList'
items:
$id: '#/properties/brokerConfig/properties/registry/items/properties/whiteList/items'
default: ''
examples: [.*]
pattern: ^(.*)$
title: The Items Schema
type: string
title: The Whitelist Schema
type: array
required: [tag, name, url, org, whiteList, type]
title: The Items Schema
type: object
title: The Registry Schema
type: array
required: [openshift, registry, dao, broker, log]
title: The Brokerconfig Schema
type: object
brokerImage:
$id: '#/properties/brokerImage'
default: ''
examples: [ansibleplaybookbundle/origin-ansible-service-broker]
pattern: ^(.*)$
title: The Brokerimage Schema
type: string
brokerImagePullPolicy:
$id: '#/properties/brokerImagePullPolicy'
default: IfNotPresent
description: ''
examples: [IfNotPresent, Always, Never]
title: The Brokerimagepullpolicy Schema
type: string
brokerLocalOpenshiftEnabled:
$id: '#/properties/brokerLocalOpenshiftEnabled'
default: false
examples: [true]
title: The Brokerlocalopenshiftenabled Schema
type: boolean
brokerName:
$id: '#/properties/brokerName'
default: ''
examples: [automation-broker]
pattern: ^(.*)$
title: The Brokername Schema
type: string
brokerNamespace:
$id: '#/properties/brokerNamespace'
default: ''
examples: [automation-broker]
pattern: ^(.*)$
title: The Brokernamespace Schema
type: string
brokerNodeSelector:
$id: '#/properties/brokerNodeSelector'
default: ''
examples: ['']
pattern: ^(.*)$
title: The Brokernodeselector Schema
type: string
createBrokerNamespace:
$id: '#/properties/createBrokerNamespace'
default: false
examples: [false]
title: The Createbrokernamespace Schema
type: boolean
waitForBroker:
$id: '#/properties/waitForBroker'
default: false
examples: [false]
title: The Waitforbroker Schema
type: boolean
required: [brokerImagePullPolicy, brokerNamespace, createBrokerNamespace, brokerConfig,
brokerClusterRole, brokerLocalOpenshiftEnabled, brokerName, brokerImage, waitForBroker,
brokerNodeSelector]
title: The Root Schema
type: object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment