Skip to content

Commit 01da74d

Browse files
authored
add user-gcp-sa annotation to 'train' steps (amygdala#31)
1 parent db4f6a1 commit 01da74d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

ml/kubeflow-pipelines/samples/kubeflow-tf/gh_summ.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515

1616
import kfp.dsl as dsl
17+
import kfp.gcp as gcp
18+
1719

1820
@dsl.pipeline(
1921
name='Github issue summarization',
@@ -38,7 +40,7 @@ def gh_summ(
3840
"--train-steps", train_steps, "--deploy-webapp" , deploy_webapp],
3941
file_outputs={'output': '/tmp/output'}
4042

41-
)
43+
).apply(gcp.use_gcp_secret('user-gcp-sa'))
4244

4345
serve = dsl.ContainerOp(
4446
name = 'serve',
135 Bytes
Binary file not shown.

ml/kubeflow-pipelines/samples/kubeflow-tf/pipelines-kubecon.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
" \"--train-steps\", train_steps, \"--deploy-webapp\" , deploy_webapp],\n",
137137
" file_outputs={'output': '/tmp/output'}\n",
138138
"\n",
139-
" )\n",
139+
" ).apply(gcp.use_gcp_secret('user-gcp-sa'))\n",
140140
"\n",
141141
" serve = dsl.ContainerOp(\n",
142142
" name = 'serve',\n",
@@ -275,7 +275,7 @@
275275
" \"--train-steps\", train_steps, \"--deploy-webapp\" , deploy_webapp],\n",
276276
" file_outputs={'output': '/tmp/output'}\n",
277277
"\n",
278-
" )\n",
278+
" ).apply(gcp.use_gcp_secret('user-gcp-sa'))\n",
279279
" train.after(preproc)\n",
280280
"\n",
281281
" serve = dsl.ContainerOp(\n",

0 commit comments

Comments
 (0)