Skip to content

Commit

Permalink
feat: add new health statuses and add .releaserc
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Jan 25, 2024
1 parent b49272d commit 080c149
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
branches:
- name: main
plugins:
- - '@semantic-release/commit-analyzer'
- releaseRules:
- { type: doc, scope: README, release: patch }
- { type: fix, release: patch }
- { type: chore, release: patch }
- { type: refactor, release: patch }
- { type: feat, release: patch }
- { type: ci, release: patch }
- { type: style, release: patch }
parserOpts:
noteKeywords:
- MAJOR RELEASE
- '@semantic-release/release-notes-generator'
- - '@semantic-release/github'
# From: https://github.com/semantic-release/github/pull/487#issuecomment-1486298997
- successComment: false
failTitle: false
11 changes: 11 additions & 0 deletions pkg/health/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ const (
HealthStatusDegraded HealthStatusCode = "Degraded"
// Indicates that resource is missing in the cluster.
HealthStatusMissing HealthStatusCode = "Missing"

HealthStatusCreating = "Creating"
HealthStatusDeleting = "Deleting"
HealthStatusError = "Error"
HealthStatusInaccesible = "Inaccesible"
HealthStatusInfo = "Info"
HealthStatusPending = "Pending"
HealthStatusScaling = "Scaling"
HealthStatusUnhealthy = "Unhealthy"
HealthStatusUpdating = "Updating"
HealthStatusWarning = "Warning"
)

// Implements custom health assessment that overrides built-in assessment
Expand Down

0 comments on commit 080c149

Please sign in to comment.