You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-113Lines changed: 0 additions & 113 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -442,119 +442,6 @@ for event in v1_services.watch(namespace='test'):
442
442
print(event['object'])
443
443
```
444
444
445
-
# DEPRECATED Generated client usage
446
-
447
-
To work with a K8s object, use the K8s client, and to work with an OpenShift specific object, use the OpenShift client. For example, the following uses the K8s client to create a new Service object:
And finally, the following uses the OpenShift client to list Projects the user can access:
506
-
507
-
```python
508
-
from openshift import client, config
509
-
510
-
config.load_kube_config()
511
-
oapi = client.OapiApi()
512
-
513
-
project_list = oapi.list_project()
514
-
for project in project_list.items:
515
-
print project.metadata.name
516
-
```
517
-
518
-
# DEPRECATED Documentation
519
-
520
-
All OpenShift API and Model documentation can be found in the [Generated client's README file](openshift/README.md)
521
-
522
-
## DEPRECATED Update generated client
523
-
524
-
Updating the generated client requires the following tools:
525
-
526
-
- tox
527
-
- docker
528
-
529
-
To apply the updates:
530
-
531
-
1) Incorporate new changes to update scripts
532
-
-[scripts/constants.py](./scripts/constants.py), [scripts/pom.xml](./scripts/pom.xml), [scripts/preprocess_spec.py](./scripts/preprocess_spec.py), and [update-client.sh](./update-client.sh) are the most important
533
-
2) Run tox -e update_client
534
-
535
-
## Compatibility
536
-
537
-
We are downstream of the [kubernetes python client](github.com/kubernetes-client/python). We maintain compatibility for API version `n-2` - so if you are connecting to a version 3.6 OpenShift cluster, the list of supported python client versions would be `[0.3.x, 0.4.x, 0.5.x]`.
0 commit comments