Fix image handling.
This commit is contained in:
parent
db3b533c5d
commit
9745e854f7
2 changed files with 19 additions and 17 deletions
|
|
@ -29,10 +29,10 @@ spec:
|
|||
containers:
|
||||
- name: ${ cr.metadata.name.asString }
|
||||
<#assign image = cr.spec.image>
|
||||
<#if image.repository?? && image.path??>
|
||||
image: ${ image.repository.asString }/${ image.path.asString }<#if image.version??>:${ image.version.asString }</#if>
|
||||
<#else>
|
||||
<#if image.source??>
|
||||
image: ${ source.asString }
|
||||
<#else>
|
||||
image: ${ image.repository.asString }/${ image.path.asString }<#if image.version??>:${ image.version.asString }</#if>
|
||||
</#if>
|
||||
resources: {}
|
||||
<#if image.pullPolicy??>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue