Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default_gcp_op #314

Merged
merged 8 commits into from
Nov 20, 2018
Merged

Add default_gcp_op #314

merged 8 commits into from
Nov 20, 2018

Conversation

IronPan
Copy link
Member

@IronPan IronPan commented Nov 19, 2018

This operator mount the default service account secret to the container. The default service account is created by kubeflow deployment.


This change is Reviewable

@IronPan IronPan changed the base branch from master to yangpa/chaim November 19, 2018 21:33
@IronPan IronPan changed the base branch from yangpa/chaim to master November 19, 2018 21:33
# See the License for the specific language governing permissions and
# limitations under the License.

from .kubeflow_tfjob_launcher_op import kubeflow_tfjob_launcher_op
Copy link
Contributor

@Ark-kun Ark-kun Nov 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong import?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. thx


from kfp import dsl
from typing import Dict
from kubernetes import client as k8s_client
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please move the kubernetes import inside the function?
Although we state that we require the kubernetes package, it's nice to be able to use most of our library without it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

service account access permission.
"""
return dsl.ContainerOp(name, image, command, arguments, file_inputs,
file_outputs, is_exit_handler). \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please move the dot to the next line?
You can use parentheses to allow line breaking without slashes: https://stackoverflow.com/questions/4768941/how-to-break-a-line-of-chained-methods-in-python

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and thanks for the suggestion of parentheses. I think slash is not uncommon to see so maybe just use it for now? we can switch when we see it pain to read

@IronPan
Copy link
Member Author

IronPan commented Nov 20, 2018

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Ark-kun
Copy link
Contributor

Ark-kun commented Nov 20, 2018

/lgtm

@IronPan IronPan deleted the yangpa/gcp branch December 10, 2018 22:26
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
* improve dev manfests and docs

* Address comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants