-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add webhook for status changes (#359)
- Loading branch information
1 parent
db0d2ae
commit 3f84c22
Showing
28 changed files
with
290 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
operator/src/main/kotlin/eu/glasskube/operator/apps/common/database/HasReadyStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package eu.glasskube.operator.apps.common.database | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore | ||
|
||
interface HasReadyStatus { | ||
@get:JsonIgnore | ||
val isReady: Boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
operator/src/main/kotlin/eu/glasskube/operator/apps/gitea/GiteaStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package eu.glasskube.operator.apps.gitea | ||
|
||
import eu.glasskube.operator.apps.common.database.HasReadyStatus | ||
|
||
data class GiteaStatus( | ||
val readyReplicas: Int, | ||
val redisReady: Boolean, | ||
val postgresReady: Boolean | ||
) | ||
) : HasReadyStatus { | ||
override val isReady get() = readyReplicas > 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
operator/src/main/kotlin/eu/glasskube/operator/apps/gitlab/GitlabStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
package eu.glasskube.operator.apps.gitlab | ||
|
||
import eu.glasskube.operator.apps.common.database.HasReadyStatus | ||
import eu.glasskube.operator.apps.gitlab.runner.GitlabRunnerStatus | ||
|
||
data class GitlabStatus( | ||
val readyReplicas: Int, | ||
val postgresReady: Boolean, | ||
val runners: Map<String, GitlabRunnerStatus?> = emptyMap() | ||
) | ||
) : HasReadyStatus { | ||
override val isReady get() = readyReplicas > 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
operator/src/main/kotlin/eu/glasskube/operator/apps/glitchtip/GlitchtipStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
package eu.glasskube.operator.apps.glitchtip | ||
|
||
import eu.glasskube.operator.apps.common.database.HasReadyStatus | ||
|
||
data class GlitchtipStatus( | ||
val readyReplicas: Int, | ||
val workerReadyReplicas: Int, | ||
val redisReady: Boolean, | ||
val postgresReady: Boolean | ||
) | ||
) : HasReadyStatus { | ||
override val isReady get() = readyReplicas > 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
operator/src/main/kotlin/eu/glasskube/operator/apps/keycloak/KeycloakStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package eu.glasskube.operator.apps.keycloak | ||
|
||
import eu.glasskube.operator.apps.common.database.HasReadyStatus | ||
|
||
data class KeycloakStatus( | ||
val readyInstances: Int, | ||
val postgresReady: Boolean | ||
) | ||
) : HasReadyStatus { | ||
override val isReady get() = readyInstances > 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
operator/src/main/kotlin/eu/glasskube/operator/apps/metabase/MetabaseStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package eu.glasskube.operator.apps.metabase | ||
|
||
import eu.glasskube.operator.apps.common.database.HasReadyStatus | ||
|
||
data class MetabaseStatus( | ||
val readyReplicas: Int, | ||
val postgresReady: Boolean | ||
) | ||
) : HasReadyStatus { | ||
override val isReady get() = readyReplicas > 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
operator/src/main/kotlin/eu/glasskube/operator/apps/nextcloud/NextcloudStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
package eu.glasskube.operator.apps.nextcloud | ||
|
||
import eu.glasskube.operator.apps.common.database.HasReadyStatus | ||
|
||
data class NextcloudStatus( | ||
val readyReplicas: Int, | ||
val redisReady: Boolean, | ||
val postgresReady: Boolean, | ||
val officeReady: Boolean | ||
) | ||
) : HasReadyStatus { | ||
override val isReady get() = readyReplicas > 0 | ||
} |
Oops, something went wrong.