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

Consolidate GKE deployment script #985

Merged
merged 5 commits into from Jun 13, 2018
Merged

Consolidate GKE deployment script #985

merged 5 commits into from Jun 13, 2018

Conversation

activatedgeek
Copy link
Contributor

@activatedgeek activatedgeek commented Jun 13, 2018

/cc @jlewi @kunmingg @ankushagarwal


This change is Reviewable

@@ -0,0 +1,62 @@
#!/usr/bin/env bash

set -e
Copy link
Contributor

Choose a reason for hiding this comment

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

set -e might be an issue because kubectl create namespace can fail if namespace is already created by bootstrapper.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did see that comment in the other script but it appears to be working even with setting this flag. I can add an OR flag after this command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I add an unset -e just before the namespace and secrets creation towards the end of the script.

@@ -0,0 +1,62 @@
#!/usr/bin/env bash
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 add a comment explaining what this script does

# Get the project number
export PROJECT_NUMBER=`gcloud projects describe ${PROJECT} --format='value(project_number)'`
# Set OAuth2 Credentials
export CLIENT_ID=
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know that this is a good idea.
env-kubeflow.sh is something we want to be able to check into source control; but CLIENT_ID and CLIENT_SECRET are not something that should be checked in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was actually considering this file as a reference for the variables needed rather than something to be checked into source control. Perhaps, we should put a warning in the documentation regarding the sensitivity of these credentials?

@activatedgeek
Copy link
Contributor Author

/retest

@ankushagarwal
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ankushagarwal

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

@k8s-ci-robot k8s-ci-robot merged commit aa2c64b into kubeflow:master Jun 13, 2018
@activatedgeek activatedgeek deleted the consolidate-gke-deploy branch June 13, 2018 20:13
saffaalvi pushed a commit to StatCan/kubeflow that referenced this pull request Feb 11, 2021
* Consolidate GKE deployment script, update required variables with OAuth2 credentials

* Restore comments from create_k8s_secrets.sh

* Ignore namespace/secret creation errors

* Add script title comments

* Remove OAuth2 credentials, must be separately injected into environment
yanniszark pushed a commit to arrikto/kubeflow that referenced this pull request Feb 15, 2021
* Get dbUser from Env or default('root')

* Get dbUser from Env or default('root')
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.

None yet

4 participants