Remove apiVersion attribute from substitutions.src attributes

The src apiVersion attribute will be dynamically validated based
on the loaded schemas.
This commit is contained in:
Felipe Monteiro 2017-07-12 16:56:00 +01:00
parent ac557f70f4
commit a1956b40bb
2 changed files with 1 additions and 7 deletions

View File

@ -28,16 +28,12 @@ substitution_schema = {
'src': {
'type': 'object',
'properties': {
'apiVersion': {
'type': 'string',
'pattern': '^([A-Za-z]+\/v[0-9]{1})$'
},
'kind': {'type': 'string'},
'name': {'type': 'string'},
'path': {'type': 'string'}
},
'additionalProperties': False,
'required': ['apiVersion', 'kind', 'name', 'path']
'required': ['kind', 'name', 'path']
}
},
'additionalProperties': False,

View File

@ -18,14 +18,12 @@ metadata:
path: .tls_endpoint.certificate
replacePattern: 'test.pattern'
src:
apiVersion: deckhand/v1
kind: Certificate
name: some-certificate-asdf-1234
path: .cert
- dest:
path: .tls_endpoint.key
src:
apiVersion: deckhand/v1
kind: CertificateKey
name: some-certificate-asdf-1234
path: .key