使用JAVA openshift-rest-client

时间:2019-10-25 10:18:41

标签: spring-boot openshift okd

如何在JAVA中为IResourceQuota设置“ spec”标签? 方法“设置”受保护。

IResourceQuota quotas = client.getResourceFactory().stub(ResourceKind.RESOURCE_QUOTA, "test");

JSON应该具有以下结构:

    apiVersion:
kind:
metadata:
  annotations:
  clusterName:
  creationTimestamp:
  deletionGracePeriodSeconds:
  deletionTimestamp:
  finalizers:
  generateName:
  generation:
  initializers:
  labels:
  name:
  namespace:
  ownerReferences:
  resourceVersion:
  selfLink:
  uid:
spec:
  hard:
  scopes:
status:

谢谢。

0 个答案:

没有答案