如何在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:
谢谢。