Skip to content

Commit

Permalink
Add a secret union field for credentials (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakan Memisoglu committed Sep 18, 2019
1 parent 2844431 commit 85f08dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/apis/cr/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,14 @@ type CredentialType string

const (
CredentialTypeKeyPair CredentialType = "keyPair"
CredentialTypeSecret CredentialType = "secret"
)

// Credential
type Credential struct {
Type CredentialType `json:"type"`
KeyPair *KeyPair `json:"keyPair"`
Type CredentialType `json:"type"`
KeyPair *KeyPair `json:"keyPair"`
Secret *ObjectReference `json:"secret"`
}

// KeyPair
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/cr/v1alpha1/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 85f08dd

Please sign in to comment.