Skip to content

Commit

Permalink
fix: rename KubernetesPodStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
Lambert-Rao committed Jan 29, 2024
1 parent 6837150 commit 47f15cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.apache.eventmesh.dashboard.console.entity.connector;

import org.apache.eventmesh.dashboard.console.entity.base.BaseEntity;
import org.apache.eventmesh.dashboard.console.enums.KubernetesPodStatusEnum;
import org.apache.eventmesh.dashboard.console.enums.KubernetesPodStatus;
import org.apache.eventmesh.dashboard.console.enums.StatusEnum;

import io.swagger.v3.oas.annotations.media.Schema;
Expand Down Expand Up @@ -52,7 +52,7 @@ public class ConnectorEntity extends BaseEntity {
private Integer status;

/**
* @see KubernetesPodStatusEnum
* @see KubernetesPodStatus
*/
@Schema(name = "podState", defaultValue = "0", allowableValues = {"0", "1", "2", "3", "4", "5",
"6"}, description = "0:Pending, 1:Running, 2:Succeeded, 3:Failed, 4:Unknown, 5:Terminating, 6:Terminated")
Expand All @@ -68,7 +68,7 @@ public void setStatusEnum(StatusEnum statusEnum) {
this.status = statusEnum.getNumber();
}

public void setKubernetesPodStatusEnum(KubernetesPodStatusEnum kubernetesPodStatusEnum) {
public void setKubernetesPodStatusEnum(KubernetesPodStatus kubernetesPodStatusEnum) {
this.podState = kubernetesPodStatusEnum.getNumber();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

@Getter
@AllArgsConstructor
public enum KubernetesPodStatusEnum {
public enum KubernetesPodStatus {
PENDING(0, "Pending"),
RUNNING(1, "Running"),
SUCCEEDED(2, "Succeeded"),
Expand Down

0 comments on commit 47f15cb

Please sign in to comment.