Skip to content

Commit

Permalink
Merge pull request #9 from weaveworks/template-comments
Browse files Browse the repository at this point in the history
Add a new field `raw` to ResourceTemple
  • Loading branch information
sarataha authored Feb 24, 2023
2 parents 4d021bc + ef0bd4a commit 0526fac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis/core/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ type HelmReleaseTemplateSpec struct {
type ResourceTemplate struct {
Path string `json:"path,omitempty"`
Content []ResourceTemplateContent `json:"content,omitempty"`
// Raw is the content of the resource template in a string format.
// It supports comments in the template file.
Raw string `json:"raw,omitempty"`
}

// HelmReleaseTemplate is the HelmRelease.spec that can be overridden
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/capi.weave.works_capitemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ spec:
type: array
path:
type: string
raw:
description: Raw is the content of the resource template in
a string format. It supports comments in the template file.
type: string
type: object
type: array
type: object
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/templates.weave.works_gitopstemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ spec:
type: array
path:
type: string
raw:
description: Raw is the content of the resource template in
a string format. It supports comments in the template file.
type: string
type: object
type: array
type: object
Expand Down

0 comments on commit 0526fac

Please sign in to comment.