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

Ensure namespace exists #1747

Merged
merged 4 commits into from Oct 11, 2018
Merged

Ensure namespace exists #1747

merged 4 commits into from Oct 11, 2018

Conversation

jlewi
Copy link
Contributor

@jlewi jlewi commented Oct 11, 2018

  • We need to call createNamespace during the apply phase for k8s
    otherwise the namespace might not exist.

Need to patch into 0.3

Related to #1675


This change is Reviewable

* We need to call createNamespace during the apply phase for k8s
  otherwise the namespace might not exist.

Need to patch into 0.3
@jlewi
Copy link
Contributor Author

jlewi commented Oct 11, 2018

/assign @richardsliu

@jlewi
Copy link
Contributor Author

jlewi commented Oct 11, 2018

Test failed

ERROR: (gcloud.deployment-manager.deployments.update) Error in Operation [operation-1539230900570-577ec1f0e4790-4460b8ea-44229cab]: errors:
- code: RESOURCE_ERROR
 location: /deployments/kfctl-37b9/resources/kfctl-37b9
 message: '{"ResourceType":"container.v1.cluster","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Master
   version \"1.10.7-gke.2\" is unsupported.","status":"INVALID_ARGUMENT","statusMessage":"Bad
   Request","requestPath":"https://container.googleapis.com/v1/projects/kubeflow-ci/zones/us-east1-d/clusters","httpMethod":"POST"}}'
+ result=1

I thought kfctl was changed to call get-server-config?

@jlewi
Copy link
Contributor Author

jlewi commented Oct 11, 2018

Looks like we should be doing it here

CLUSTER_VERSION=$(\

@jlewi
Copy link
Contributor Author

jlewi commented Oct 11, 2018

Looks like it failed during the init step

gcloud --project=kubeflow-ci container get-server-config --zone=
ERROR: (gcloud.container.get-server-config) One of [--zone, --region] must be supplied: Please specify location..
+ CLUSTER_VERSION=

@richardsliu
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: richardsliu

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 a3c4411 into kubeflow:master Oct 11, 2018
jlewi added a commit to jlewi/kubeflow that referenced this pull request Oct 12, 2018
* Ensure namespace exists

* We need to call createNamespace during the apply phase for k8s
  otherwise the namespace might not exist.

Need to patch into 0.3

* Fix get-server-config; it was failing because ZONE wasn't being set.

* Run gcloud as a separate command so that if it errors out the
script will fail.

* * Fix bug in updateDeployment we should be using NAME not DEPLOYMENT_NAME
k8s-ci-robot pushed a commit that referenced this pull request Oct 12, 2018
* Pin jupyter-console to 0.6.0 (#1746)

* Ensure namespace exists (#1747)

* Ensure namespace exists

* We need to call createNamespace during the apply phase for k8s
  otherwise the namespace might not exist.

Need to patch into 0.3

* Fix get-server-config; it was failing because ZONE wasn't being set.

* Run gcloud as a separate command so that if it errors out the
script will fail.

* * Fix bug in updateDeployment we should be using NAME not DEPLOYMENT_NAME
This was referenced Oct 12, 2018
leoncamel pushed a commit to leoncamel/kubeflow that referenced this pull request Oct 14, 2018
* Ensure namespace exists

* We need to call createNamespace during the apply phase for k8s
  otherwise the namespace might not exist.

Need to patch into 0.3

* Fix get-server-config; it was failing because ZONE wasn't being set.

* Run gcloud as a separate command so that if it errors out the
script will fail.

* * Fix bug in updateDeployment we should be using NAME not DEPLOYMENT_NAME
saffaalvi pushed a commit to StatCan/kubeflow that referenced this pull request Feb 11, 2021
* Ensure namespace exists

* We need to call createNamespace during the apply phase for k8s
  otherwise the namespace might not exist.

Need to patch into 0.3

* Fix get-server-config; it was failing because ZONE wasn't being set.

* Run gcloud as a separate command so that if it errors out the
script will fail.

* * Fix bug in updateDeployment we should be using NAME not DEPLOYMENT_NAME
surajkota pushed a commit to surajkota/kubeflow that referenced this pull request Jun 13, 2022
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