Skip to content

Commit 0526fac

Browse files
authored
Merge pull request #9 from weaveworks/template-comments
Add a new field `raw` to ResourceTemple
2 parents 4d021bc + ef0bd4a commit 0526fac

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

apis/core/templates.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ type HelmReleaseTemplateSpec struct {
125125
type ResourceTemplate struct {
126126
Path string `json:"path,omitempty"`
127127
Content []ResourceTemplateContent `json:"content,omitempty"`
128+
// Raw is the content of the resource template in a string format.
129+
// It supports comments in the template file.
130+
Raw string `json:"raw,omitempty"`
128131
}
129132

130133
// HelmReleaseTemplate is the HelmRelease.spec that can be overridden

config/crd/bases/capi.weave.works_capitemplates.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ spec:
277277
type: array
278278
path:
279279
type: string
280+
raw:
281+
description: Raw is the content of the resource template in
282+
a string format. It supports comments in the template file.
283+
type: string
280284
type: object
281285
type: array
282286
type: object

config/crd/bases/templates.weave.works_gitopstemplates.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ spec:
279279
type: array
280280
path:
281281
type: string
282+
raw:
283+
description: Raw is the content of the resource template in
284+
a string format. It supports comments in the template file.
285+
type: string
282286
type: object
283287
type: array
284288
type: object

0 commit comments

Comments
 (0)