Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SecretKeyReference #257

Merged
merged 1 commit into from
Apr 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
nstogner marked this conversation as resolved.
Show resolved Hide resolved
// 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.