Skip to content

Commit

Permalink
chore: update the status value strings of nim cache and nim services (#…
Browse files Browse the repository at this point in the history
…47)

Signed-off-by: shil <[email protected]>
Co-authored-by: shil <[email protected]>
  • Loading branch information
slu2011 and slu2011 authored Aug 13, 2024
1 parent f678cd6 commit a2b6069
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions api/apps/v1alpha1/nimcache_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,19 @@ const (
NimCacheConditionPVCCreated = "NIM_CACHE_PVC_CREATED"

// NimCacheStatusNotReady indicates that cache is not ready
NimCacheStatusNotReady = "not-ready"
NimCacheStatusNotReady = "NotReady"
// NimCacheStatusPVCCreated indicates that the pvc is created for caching
NimCacheStatusPVCCreated = "pvc-created"
NimCacheStatusPVCCreated = "PVC-Created"
// NimCacheStatusStarted indicates that caching process is started
NimCacheStatusStarted = "started"
NimCacheStatusStarted = "Started"
// NimCacheStatusReady indicates that cache is ready
NimCacheStatusReady = "ready"
NimCacheStatusReady = "Ready"
// NimCacheStatusInProgress indicates that caching is in progress
NimCacheStatusInProgress = "in-progress"
NimCacheStatusInProgress = "InProgress"
// NimCacheStatusPending indicates that caching is not yet started
NimCacheStatusPending = "pending"
NimCacheStatusPending = "Pending"
// NimCacheStatusFailed indicates that caching is failed
NimCacheStatusFailed = "failed"
NimCacheStatusFailed = "Failed"
)

// EnvFromSecrets return the list of secrets that should be mounted as env vars
Expand Down
8 changes: 4 additions & 4 deletions api/apps/v1alpha1/nimservice_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ const (
NIMServiceConditionFailed = "NIM_SERVICE_FAILED"

// NIMServiceStatusPending indicates that NIM deployment is in pending state
NIMServiceStatusPending = "pending"
NIMServiceStatusPending = "Pending"
// NIMServiceStatusNotReady indicates that NIM deployment is not ready
NIMServiceStatusNotReady = "not-ready"
NIMServiceStatusNotReady = "NotReady"
// NIMServiceStatusReady indicates that NIM deployment is ready
NIMServiceStatusReady = "ready"
NIMServiceStatusReady = "Ready"
// NIMServiceStatusFailed indicates that NIM deployment has failed
NIMServiceStatusFailed = "failed"
NIMServiceStatusFailed = "Failed"
)

// NIMServiceSpec defines the desired state of NIMService
Expand Down

0 comments on commit a2b6069

Please sign in to comment.