io.fabric8.kubernetes.api.model.Node.getSpec()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(265)

本文整理了Java中io.fabric8.kubernetes.api.model.Node.getSpec()方法的一些代码示例,展示了Node.getSpec()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getSpec()方法的具体详情如下:
包路径:io.fabric8.kubernetes.api.model.Node
类名称:Node
方法名:getSpec

Node.getSpec介绍

暂无

代码示例

代码示例来源:origin: LendingClub/mercator

  1. public void scanNode(Node node) {
  2. ObjectNode n = mapper.createObjectNode();
  3. ObjectMeta meta = node.getMetadata();
  4. n.put("nodeUid", meta.getUid());
  5. n.put("resourceVersion", meta.getResourceVersion());
  6. n.put("name", meta.getName());
  7. n.put("namespace", meta.getNamespace());
  8. n.put("clusterName", meta.getClusterName());
  9. n.put("generateName", meta.getGenerateName());
  10. n.put("creationTimestamp", meta.getCreationTimestamp());
  11. n.put("deletionTimestamp", meta.getDeletionTimestamp());
  12. n.put("deletionGracePeriod", meta.getDeletionGracePeriodSeconds());
  13. n.put("selfLink", meta.getSelfLink());
  14. NodeStatus ns = node.getStatus();
  15. NodeSpec nodeSpec = node.getSpec();
  16. n.put("externalId", nodeSpec.getExternalID());
  17. n.put("unschedulable", nodeSpec.getUnschedulable());
  18. n.put("podCIDR", nodeSpec.getPodCIDR());
  19. n.put("providerId", nodeSpec.getProviderID());
  20. n.put("clusterId", clusterId);
  21. getNeoRxClient().execCypher("merge (n:KubeNode {nodeUid:{nodeUid}}) set n.clusterId={clusterId}, n+={props}",
  22. "nodeUid", meta.getUid(), "props", n, "clusterId", clusterId);
  23. }

代码示例来源:origin: org.domeos/kubernetes-model

  1. public NodeFluentImpl(Node instance){
  2. this.withApiVersion(instance.getApiVersion());
  3. this.withKind(instance.getKind());
  4. this.withMetadata(instance.getMetadata());
  5. this.withSpec(instance.getSpec());
  6. this.withStatus(instance.getStatus());
  7. }

代码示例来源:origin: org.domeos/kubernetes-model

  1. public NodeBuilder(NodeFluent<?> fluent,Node instance,Boolean validationEnabled){
  2. this.fluent = fluent;
  3. fluent.withApiVersion(instance.getApiVersion());
  4. fluent.withKind(instance.getKind());
  5. fluent.withMetadata(instance.getMetadata());
  6. fluent.withSpec(instance.getSpec());
  7. fluent.withStatus(instance.getStatus());
  8. this.validationEnabled = validationEnabled;
  9. }
  10. public NodeBuilder(Node instance){

代码示例来源:origin: org.domeos/kubernetes-model

  1. public NodeBuilder(Node instance,Boolean validationEnabled){
  2. this.fluent = this;
  3. this.withApiVersion(instance.getApiVersion());
  4. this.withKind(instance.getKind());
  5. this.withMetadata(instance.getMetadata());
  6. this.withSpec(instance.getSpec());
  7. this.withStatus(instance.getStatus());
  8. this.validationEnabled = validationEnabled;
  9. }

代码示例来源:origin: io.fabric8.schemagenerator/kubernetes-model

  1. public NodeBuilder( NodeFluent<?> fluent , Node instance ){
  2. this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); fluent.withStatus(instance.getStatus());
  3. }
  4. public NodeBuilder( Node instance ){

代码示例来源:origin: org.apache.stratos/kubernetes-model

  1. public NodeBuilder( NodeFluent<?> fluent , Node instance ){
  2. this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); fluent.withKind(instance.getKind()); fluent.withMetadata(instance.getMetadata()); fluent.withSpec(instance.getSpec()); fluent.withStatus(instance.getStatus());
  3. }
  4. public NodeBuilder( Node instance ){

代码示例来源:origin: io.fabric8.schemagenerator/kubernetes-model

  1. public NodeBuilder( Node instance ){
  2. this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus());
  3. }

代码示例来源:origin: org.apache.stratos/kubernetes-model

  1. public NodeBuilder( Node instance ){
  2. this.fluent = this; this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); this.withStatus(instance.getStatus());
  3. }

代码示例来源:origin: fabric8io/fabric8-maven-plugin

  1. NodeSpec spec = item.getSpec();
  2. if (spec != null) {
  3. clusterIP = spec.getExternalID();

相关文章