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

Container: Regional Cluster support for GKE clusters #6838

Closed
dbkegley opened this issue Dec 4, 2018 · 3 comments
Closed

Container: Regional Cluster support for GKE clusters #6838

dbkegley opened this issue Dec 4, 2018 · 3 comments
Assignees
Labels
api: container Issues related to the Kubernetes Engine API API. backend type: question Request for information or clarification. Not an issue.

Comments

@dbkegley
Copy link

dbkegley commented Dec 4, 2018

I'm unable to get or create regional clusters using the container_v1 client APIs. The documentation suggests that this is possible by using the parent parameter to describe the project/region to launch the cluster but I get the following errors:

(env) david@ ~ $ which python
~/dev/env/bin/python 

(env) david@ ~ $ pip freeze
...
google-api-core==1.6.0
google-auth==1.6.1
google-cloud==0.34.0
google-cloud-container==0.1.1
googleapis-common-protos==1.5.5
grpcio==1.16.1
...

(env) david@ ~ $ python --version
Python 2.7.10

(env) david@ ~ $ python ./get_cluster.py
Traceback (most recent call last):
  File "./get_cluster.py", line 6, in <module>
    cluster = client.get_cluster(project_id=credentials.project_id, parent='projects/<project_id>/locations/us-east1', cluster_id='ha-cluster-1')
TypeError: get_cluster() got an unexpected keyword argument 'parent'

Is it possible that the API documentation has been updated before the feature was merged or is it more likely an environment issue on my end? Any insight into this would be appreciated

I have also looked at using the google-api-python-client to launch regional clusters but I would prefer to use this library if the feature is supported. Are there any known workarounds for this?

@tseaver tseaver added type: question Request for information or clarification. Not an issue. api: container Issues related to the Kubernetes Engine API API. backend labels Dec 4, 2018
@tseaver tseaver changed the title Regional Cluster support for GKE clusters Container: Regional Cluster support for GKE clusters Dec 4, 2018
@dazuma
Copy link
Member

dazuma commented Dec 4, 2018

The source protos were updated around Nov 6, and it looks like the documentation reflects that, and it looks like the code has been generated in the repo itself as well. But https://pypi.org/project/google-cloud-container says the library itself was last released in February. @theacodes @tseaver Can we release an update to google-cloud-container?

@tseaver
Copy link
Contributor

tseaver commented Dec 4, 2018

@dazuma I can make a release, if we're satisfied that the library is in good shape (given the weird codegen issues from earlier).

@dazuma
Copy link
Member

dazuma commented Dec 4, 2018

@tseaver Yes we were able to update the gapic configs conservatively to avoid breaking changes in the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: container Issues related to the Kubernetes Engine API API. backend type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants