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 003ec9b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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: false }
- { type: style, release: false }
parserOpts:
noteKeywords:
- MAJOR RELEASE
- "@semantic-release/release-notes-generator"
- - "@semantic-release/github"
- assets:
- path: ./.bin/config-db-amd64
name: config-db-amd64
- path: ./.bin/config-db.exe
name: config-db.exe
- path: ./.bin/config-db_osx-amd64
name: config-db_osx-amd64
- path: ./.bin/config-db_osx-arm64
name: config-db_osx-arm64
# - path: ./.bin/release.yaml
# name: release.yaml
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 003ec9b

Please sign in to comment.