Skip to content

Commit

Permalink
Merge pull request #22 from thestormforge/jsontags
Browse files Browse the repository at this point in the history
fix: Add additional json tags
  • Loading branch information
jgustie authored Feb 15, 2022
2 parents 8fbb735 + dc901ef commit 3252417
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/api/core/v1beta2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ type Secret struct {
PasswordSources []PasswordRecipe `json:"passwords,omitempty" yaml:"passwords,omitempty"`

// Additional configuration for generating passwords.
PasswordOptions *password.GeneratorInput `json:"passwordOptions,omitempty" yaml:"passwordOptions,omitempty"`
PasswordOptions *password.GeneratorInput `json:"-" yaml:"-"`
}

// Git is used to expand full or partial Git repositories.
Expand Down
4 changes: 2 additions & 2 deletions pkg/konjure/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ type Resource struct {
File *konjurev1beta2.File `json:"file,omitempty" yaml:"file,omitempty"`

// Some specs (default reader, `data:` URLs, inline resources) resolve to a stream.
raw kio.Reader // NOTE: when this is non-nil there MUST be a value for `str`!
raw kio.Reader `json:"-"` // NOTE: when this is non-nil there MUST be a value for `str`!

// Original string representation this resource was parsed from.
str string
str string `json:"-"`
}

// NewResource returns a resource for parsing the supplied resource specifications. This
Expand Down

0 comments on commit 3252417

Please sign in to comment.