Comments (8)
Hi @venomwaqar,
It looks like you can use the set_master_auth
method.
from python-container.
@busunkim96 I need to view the credentials that are already set, please review my comment.
I don't know why you are hasting so much to close this issue :-)
from python-container.
Apologies, I misread your question.
Those fields should be available on the cluster object. cluster.master_auth.password
and cluster.master_auth.username
Unless you're saying you can access those fields, but they appear to be empty?
from python-container.
@busunkim96 thanks for re-opening this issue.
Those fields doesn't exists in the cluster.master_auth
object. Although, when I use gcloud
cli to cross-check, I can see that username and password do exists.
from python-container.
I was able to successfully get both the password and username. Can you try running this code in a clean virtual environment with the latest version of the library?
python3 -m venv env
source env/bin/activate
python3 -m pip install google-cloud-container
from google.cloud import container_v1
client = container_v1.ClusterManagerClient()
PROJECT_ID="my-project"
ZONE="us-central1-a"
response = client.list_clusters(project_id=PROJECT_ID, zone=ZONE)
cluster = response.clusters[0]
# Get master auth password and username
print("password: ", cluster.master_auth.password)
print("username: ", cluster.master_auth.username)
If you open any issues on our repositories in the future, a code snippet showing the problem is much appreciated - it shortens the time for repository maintainers to understand and reproduce the issue you're experiencing.
from python-container.
@busunkim96 sorry my bad, I have updated my ticket. Please can you review :-)
I have tried again still I am getting everything but the username and password fields.
from python-container.
@busunkim96 continuing the discussion here as #47 was closed as a duplicate.
We have been in touch with GCP Support to seek to expedite the update the the client libraries, however they have advised that it will take some time to implement and there is no ETA for a fix for the client libraries and that the Google Client Libraries Team is working on this issue.
Can you advise when you expect the client libraries will be updated? And what the on going cadence will be for updates to client libraries for the release level of services?
from python-container.
The v1 surface has been updated (see https://github.com/googleapis/python-container/blob/master/CHANGELOG.md#220-2020-11-17 for a full list of changes).
A similar update is coming for v1beta1.
from python-container.
Related Issues (20)
- Warning: a recent release failed
- Warning: a recent release failed
- GKE clusters not cleaning up after create cluster test HOT 1
- Warning: a recent release failed HOT 1
- tests.unit.gapic.container_v1.test_cluster_manager: test_list_usable_subnetworks_pager failed
- tests.unit.gapic.container_v1.test_cluster_manager: test_list_usable_subnetworks_pager failed HOT 2
- tests.unit.gapic.container_v1.test_cluster_manager: test_list_usable_subnetworks_async_pager failed HOT 2
- tests.unit.gapic.container_v1.test_cluster_manager: test_list_usable_subnetworks_async_pager failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_set_labels_flattened failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_set_labels_flattened failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_set_labels_flattened_async failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_set_labels_flattened_async failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_list_usable_subnetworks_pager failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_list_usable_subnetworks_pager failed HOT 1
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_list_usable_subnetworks_async_pager failed HOT 2
- tests.unit.gapic.container_v1beta1.test_cluster_manager: test_list_usable_subnetworks_async_pager failed HOT 1
- Unable to import module 'index': cannot import name 'cygrpc' from 'grpc._cython' HOT 3
- Warning: a recent release failed HOT 1
- `AttributeError` when trying to update the insecure kubelet port HOT 1
- Are there any real examples instead of just copy pasting the api docs as files? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-container.