Skip to content

Commit

Permalink
Make GoogleCloudCredentials optional to support WorkloadIdentity
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
fjogeleit committed May 8, 2024
1 parent 842e372 commit f63cafb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/config/target_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,11 +752,6 @@ func (f *TargetFactory) createGCSClient(config, parent *GCS) target.Client {
sugar := zap.S()

setFallback(&config.Credentials, parent.Credentials)
if config.Credentials == "" {
sugar.Errorf("%s.Credentials has not been declared", config.Name)
return nil
}

setFallback(&config.Prefix, parent.Prefix, "policy-reporter")

config.MapBaseParent(parent.TargetBaseOptions)
Expand Down

0 comments on commit f63cafb

Please sign in to comment.