Skip to content

Commit

Permalink
Add SecretKeyReference
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Stogner <nicholas.stogner@gmail.com>
  • Loading branch information
nstogner committed Apr 15, 2022
1 parent 4046043 commit eddf24f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apis/meta/reference_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,17 @@ type NamespacedObjectKindReference struct {
// +optional
Namespace string `json:"namespace,omitempty"`
}

// SecretKeyReference contains enough information to locate the referenced Kubernetes Secret object in the same
// namespace. Optionally a key can be specified.
// Use this type instead of core/v1 SecretKeySelector when the Key is optional and the Optional field is not
// applicable.
type SecretKeyReference struct {
// Name of the Secret.
// +required
Name string `json:"name"`

// Key in the Secret, when not specified an implementation-specific default key is used.
// +optional
Key string `json:"key,omitempty"`
}
15 changes: 15 additions & 0 deletions apis/meta/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eddf24f

Please sign in to comment.