Add docstring and enum validation for credentials secret source
Signed-off-by: Nic Cope <negz@rk0n.org>
This commit is contained in:
		
							parent
							
								
									a0ec116066
								
							
						
					
					
						commit
						ab7ab7c7c2
					
				| 
						 | 
					@ -202,6 +202,8 @@ const (
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ProviderCredentials required to authenticate.
 | 
					// ProviderCredentials required to authenticate.
 | 
				
			||||||
type ProviderCredentials struct {
 | 
					type ProviderCredentials struct {
 | 
				
			||||||
 | 
						// Source of the provider credentials.
 | 
				
			||||||
 | 
						// +kubebuilder:validation:Enum=None;Secret;InjectedIdentity
 | 
				
			||||||
	Source CredentialsSource `json:"source"`
 | 
						Source CredentialsSource `json:"source"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// A CredentialsSecretRef is a reference to a secret key that contains the
 | 
						// A CredentialsSecretRef is a reference to a secret key that contains the
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue