Skip to content

Commit

Permalink
build(ci): generate fabric8 models 0.1.0-alpha.10 for robot.roboscale…
Browse files Browse the repository at this point in the history
….io v0.2.6-alpha.13, fleet.roboscale.io v0.1.6-alpha.14 and connection-hub.roboscale.io v0.1.7-alpha.10
  • Loading branch information
tunahanertekin authored and github-actions[bot] committed Nov 8, 2023
1 parent 35dad19 commit 6638011
Show file tree
Hide file tree
Showing 11 changed files with 302 additions and 5 deletions.
37 changes: 37 additions & 0 deletions crds/base/robot.roboscale.io_metricsexporters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ spec:
machine if it's set to `true`.
type: boolean
type: object
storage:
description: Configurational parameters about storage metrics collection.
properties:
interval:
description: Watching latency.
type: integer
track:
description: MetricsExporter watches storage usage in the host
machine if it's set to `true`.
type: boolean
type: object
type: object
status:
description: Most recently observed status of the MetricsExporter.
Expand Down Expand Up @@ -288,6 +299,7 @@ spec:
(eg. mig-1g.10gb).
properties:
allocated:
default: "0"
description: Number of allocated virtual cores.
type: string
capacity:
Expand Down Expand Up @@ -318,6 +330,31 @@ spec:
description: Loads values of network interfaces.
type: object
type: object
storage:
description: Storage usage information
properties:
lastUpdateTimestamp:
description: Last update time.
type: string
usage:
additionalProperties:
properties:
mountedOn:
description: Directory that the filesystem mounted on.
type: string
percentage:
description: Usage percentage of a filesystem.
type: string
size:
description: Size of the filesystem.
type: string
used:
description: Size of the used parts of a filesystem.
type: string
type: object
description: Usage values of filesystems.
type: object
type: object
type: object
type: object
type: object
Expand Down
12 changes: 12 additions & 0 deletions crds/base/robot.roboscale.io_robots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,18 @@ spec:
type: object
type: object
type: object
hostDirs:
description: '[*alpha*] List of directories mounted from host.'
items:
properties:
hostPath:
type: string
internalPath:
type: string
name:
type: string
type: object
type: array
image:
description: Main image of Robot. It is derived either from the specifications
or determined directly over labels.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.roboscale.robot</groupId>
<artifactId>robot-fabric8-client</artifactId>
<version>0.1.0-alpha.9</version>
<version>0.1.0-alpha.10</version>
<name>robot-fabric8-client</name>
<url>https://robolaunch.io</url>
<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.roboscale.robot.v1alpha1;

@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"gpu","network"})
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"gpu","network","storage"})
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class MetricsExporterSpec implements io.fabric8.kubernetes.api.model.KubernetesResource {
Expand Down Expand Up @@ -37,5 +37,21 @@ public io.roboscale.robot.v1alpha1.metricsexporterspec.Network getNetwork() {
public void setNetwork(io.roboscale.robot.v1alpha1.metricsexporterspec.Network network) {
this.network = network;
}

/**
* Configurational parameters about storage metrics collection.
*/
@com.fasterxml.jackson.annotation.JsonProperty("storage")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Configurational parameters about storage metrics collection.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private io.roboscale.robot.v1alpha1.metricsexporterspec.Storage storage;

public io.roboscale.robot.v1alpha1.metricsexporterspec.Storage getStorage() {
return storage;
}

public void setStorage(io.roboscale.robot.v1alpha1.metricsexporterspec.Storage storage) {
this.storage = storage;
}
}

18 changes: 17 additions & 1 deletion src/main/java/io/roboscale/robot/v1alpha1/RobotStatus.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.roboscale.robot.v1alpha1;

@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"attachedBuildObject","attachedDevObjects","attachedLaunchObjects","discoveryServerStatus","image","loaderJobStatus","nodeName","persistentDirs","phase","robotDevSuiteStatus","rosBridgeStatus","uid","workspaceManagerStatus"})
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"attachedBuildObject","attachedDevObjects","attachedLaunchObjects","discoveryServerStatus","hostDirs","image","loaderJobStatus","nodeName","persistentDirs","phase","robotDevSuiteStatus","rosBridgeStatus","uid","workspaceManagerStatus"})
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class RobotStatus implements io.fabric8.kubernetes.api.model.KubernetesResource {
Expand Down Expand Up @@ -70,6 +70,22 @@ public void setDiscoveryServerStatus(io.roboscale.robot.v1alpha1.robotstatus.Dis
this.discoveryServerStatus = discoveryServerStatus;
}

/**
* [*alpha*] List of directories mounted from host.
*/
@com.fasterxml.jackson.annotation.JsonProperty("hostDirs")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("[*alpha*] List of directories mounted from host.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private java.util.List<io.roboscale.robot.v1alpha1.robotstatus.HostDirs> hostDirs;

public java.util.List<io.roboscale.robot.v1alpha1.robotstatus.HostDirs> getHostDirs() {
return hostDirs;
}

public void setHostDirs(java.util.List<io.roboscale.robot.v1alpha1.robotstatus.HostDirs> hostDirs) {
this.hostDirs = hostDirs;
}

/**
* Main image of Robot. It is derived either from the specifications or determined directly over labels.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package io.roboscale.robot.v1alpha1.metricsexporterspec;

@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"interval","track"})
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class Storage implements io.fabric8.kubernetes.api.model.KubernetesResource {

/**
* Watching latency.
*/
@com.fasterxml.jackson.annotation.JsonProperty("interval")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Watching latency.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private Long interval;

public Long getInterval() {
return interval;
}

public void setInterval(Long interval) {
this.interval = interval;
}

/**
* MetricsExporter watches storage usage in the host machine if it's set to `true`.
*/
@com.fasterxml.jackson.annotation.JsonProperty("track")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("MetricsExporter watches storage usage in the host machine if it's set to `true`.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private Boolean track;

public Boolean getTrack() {
return track;
}

public void setTrack(Boolean track) {
this.track = track;
}
}

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.roboscale.robot.v1alpha1.metricsexporterstatus;

@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"gpu","gpuInstanceUsage","gpuModel","network"})
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"gpu","gpuInstanceUsage","gpuModel","network","storage"})
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class Usage implements io.fabric8.kubernetes.api.model.KubernetesResource {
Expand Down Expand Up @@ -69,5 +69,21 @@ public io.roboscale.robot.v1alpha1.metricsexporterstatus.usage.Network getNetwor
public void setNetwork(io.roboscale.robot.v1alpha1.metricsexporterstatus.usage.Network network) {
this.network = network;
}

/**
* Storage usage information
*/
@com.fasterxml.jackson.annotation.JsonProperty("storage")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Storage usage information")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private io.roboscale.robot.v1alpha1.metricsexporterstatus.usage.Storage storage;

public io.roboscale.robot.v1alpha1.metricsexporterstatus.usage.Storage getStorage() {
return storage;
}

public void setStorage(io.roboscale.robot.v1alpha1.metricsexporterstatus.usage.Storage storage) {
this.storage = storage;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class GpuInstanceUsage implements io.fabric8.kubernetes.api.model.Kuberne
@com.fasterxml.jackson.annotation.JsonProperty("allocated")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Number of allocated virtual cores.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String allocated;
private String allocated = "0";

public String getAllocated() {
return allocated;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package io.roboscale.robot.v1alpha1.metricsexporterstatus.usage;

@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"lastUpdateTimestamp","usage"})
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class Storage implements io.fabric8.kubernetes.api.model.KubernetesResource {

/**
* Last update time.
*/
@com.fasterxml.jackson.annotation.JsonProperty("lastUpdateTimestamp")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Last update time.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String lastUpdateTimestamp;

public String getLastUpdateTimestamp() {
return lastUpdateTimestamp;
}

public void setLastUpdateTimestamp(String lastUpdateTimestamp) {
this.lastUpdateTimestamp = lastUpdateTimestamp;
}

/**
* Usage values of filesystems.
*/
@com.fasterxml.jackson.annotation.JsonProperty("usage")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Usage values of filesystems.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private java.util.Map<java.lang.String, io.roboscale.robot.v1alpha1.metricsexporterstatus.usage.storage.Usage> usage;

public java.util.Map<java.lang.String, io.roboscale.robot.v1alpha1.metricsexporterstatus.usage.storage.Usage> getUsage() {
return usage;
}

public void setUsage(java.util.Map<java.lang.String, io.roboscale.robot.v1alpha1.metricsexporterstatus.usage.storage.Usage> usage) {
this.usage = usage;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
package io.roboscale.robot.v1alpha1.metricsexporterstatus.usage.storage;

@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"mountedOn","percentage","size","used"})
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class Usage implements io.fabric8.kubernetes.api.model.KubernetesResource {

/**
* Directory that the filesystem mounted on.
*/
@com.fasterxml.jackson.annotation.JsonProperty("mountedOn")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Directory that the filesystem mounted on.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String mountedOn;

public String getMountedOn() {
return mountedOn;
}

public void setMountedOn(String mountedOn) {
this.mountedOn = mountedOn;
}

/**
* Usage percentage of a filesystem.
*/
@com.fasterxml.jackson.annotation.JsonProperty("percentage")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Usage percentage of a filesystem.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String percentage;

public String getPercentage() {
return percentage;
}

public void setPercentage(String percentage) {
this.percentage = percentage;
}

/**
* Size of the filesystem.
*/
@com.fasterxml.jackson.annotation.JsonProperty("size")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Size of the filesystem.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String size;

public String getSize() {
return size;
}

public void setSize(String size) {
this.size = size;
}

/**
* Size of the used parts of a filesystem.
*/
@com.fasterxml.jackson.annotation.JsonProperty("used")
@com.fasterxml.jackson.annotation.JsonPropertyDescription("Size of the used parts of a filesystem.")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String used;

public String getUsed() {
return used;
}

public void setUsed(String used) {
this.used = used;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package io.roboscale.robot.v1alpha1.robotstatus;

@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)
@com.fasterxml.jackson.annotation.JsonPropertyOrder({"hostPath","internalPath","name"})
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@javax.annotation.processing.Generated("io.fabric8.java.generator.CRGeneratorRunner")
public class HostDirs implements io.fabric8.kubernetes.api.model.KubernetesResource {

@com.fasterxml.jackson.annotation.JsonProperty("hostPath")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String hostPath;

public String getHostPath() {
return hostPath;
}

public void setHostPath(String hostPath) {
this.hostPath = hostPath;
}

@com.fasterxml.jackson.annotation.JsonProperty("internalPath")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String internalPath;

public String getInternalPath() {
return internalPath;
}

public void setInternalPath(String internalPath) {
this.internalPath = internalPath;
}

@com.fasterxml.jackson.annotation.JsonProperty("name")
@com.fasterxml.jackson.annotation.JsonSetter(nulls = com.fasterxml.jackson.annotation.Nulls.SKIP)
private String name;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
}

0 comments on commit 6638011

Please sign in to comment.