Skip to content

Commit

Permalink
feat: add gcp_credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan Arya committed Nov 7, 2024
1 parent da4741e commit 54c94d8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modules/dagger/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ type driverConf struct {

// timeout value for a kube deployment run
KubeDeployTimeout int `json:"kube_deploy_timeout_seconds"`

GCPCredential string `json:"gcp_credential,omitempty"`
}

type Output struct {
Expand Down Expand Up @@ -212,10 +214,11 @@ func (dd *daggerDriver) getHelmRelease(res resource.Resource, conf Config,
"memory": conf.Resources.JobManager.Memory,
},
},
"jarURI": conf.JarURI,
"programArgs": append([]string{"--encodedArgs"}, encodedProgramArgs),
"state": conf.JobState,
"namespace": conf.Namespace,
"jarURI": conf.JarURI,
"programArgs": append([]string{"--encodedArgs"}, encodedProgramArgs),
"state": conf.JobState,
"namespace": conf.Namespace,
"gcp_credentials": dd.conf.GCPCredential,
}

return rc, nil
Expand Down

0 comments on commit 54c94d8

Please sign in to comment.