GoogleCloudPlatform / deploymentmanager-samples

Deployment Manager samples and templates.
Apache License 2.0
939 stars 718 forks source link

GKE Cluster and Type example no longer works #541

Open ANT1OFF opened 4 years ago

ANT1OFF commented 4 years ago

The default GKE cluster version has changed to 1.14.10-gke.17, as a result, the GKE Cluster and Type example in deploymentmanager-samples/examples/v2/gke/ no longer works. I believe this is a result of the /swaggerapi/* endpoints are deprecated and are removed in Kubernetes 1.14.

A resource snippet was updated in #539 , but even when updating the API endpoint as shown an error occurs when using the deployment part of the example.

- code: MISSING_METHOD_IN_COLLECTION message: Method 'insert' does not exist for collection '/api/v1/namespaces/{namespace}/services' in descriptor url 'https://104.199.106.59/openapi/v2'

An updated and working example would be greatly appreciated.

rjg21 commented 4 years ago

I'm getting the same with /apis/batch/v1beta1/namespaces/{namespace}/cronjobs

KevinEmery commented 4 years ago

Updating the samples will take time, but in the interim many of these problems have been resolved by appending /{name} to the end of the collection. So /api/v1/namespaces/{namespace}/services/{name} and /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} hopefully resolves the specific issues you've mentioned.

mmosca commented 4 years ago

I believe this is the same issue as #537 There are some suggestions on how to get it working there.

ingernet commented 4 years ago

I haven't put in a PR on this yet, but I got the vanilla install working with the Python code, and here's my fork in case you need a boost: https://github.com/ingernet/deploymentmanager-samples