You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support gcp service account key file and gcp doc (#1090)
**Description**
Added the support for GCP static service account credential file for an
easier way to show case how to access GenAI models on GCP VertexAI.
**Related Issues/PRs (if applicable)**
Fixes#1015Closes#609
---------
Signed-off-by: Dan Sun <[email protected]>
Copy file name to clipboardExpand all lines: api/v1alpha1/backendsecurity_policy.go
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,7 @@ type GCPServiceAccountImpersonationConfig struct {
180
180
}
181
181
182
182
// BackendSecurityPolicyGCPCredentials contains the supported authentication mechanisms to access GCP.
183
+
// +kubebuilder:validation:XValidation:rule="(has(self.credentialsFile) && !has(self.workloadIdentityFederationConfig)) || (has(self.workloadIdentityFederationConfig) && !has(self.credentialsFile))",message="Exactly one of GCPWorkloadIdentityFederationConfig or GCPCredentialsFile must be specified"
183
184
typeBackendSecurityPolicyGCPCredentialsstruct {
184
185
// ProjectName is the GCP project name.
185
186
//
@@ -192,10 +193,15 @@ type BackendSecurityPolicyGCPCredentials struct {
192
193
// +kubebuilder:validation:MinLength=1
193
194
Regionstring`json:"region"`
194
195
196
+
// CredentialsFile specifies the service account credentials file to use for the GCP provider.
0 commit comments