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:
parent
ac557f70f4
commit
a1956b40bb
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue