-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure health status for custom resources implementing kstatus (#4192)
Co-authored-by: Charles Sibbald <123247+casibbald@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
66 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: apps.example.com/v1 | ||
kind: Application | ||
metadata: | ||
generation: 1 | ||
name: my-app | ||
spec: | ||
image: my-app:v1.2.3 | ||
status: | ||
observedGeneration: 1 |
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,14 @@ | ||
apiVersion: apps.example.com/v1 | ||
kind: Application | ||
metadata: | ||
generation: 1 | ||
name: my-app | ||
spec: | ||
image: my-app:v1.2.3 | ||
status: | ||
conditions: | ||
- message: "Available: 0/1" | ||
reason: LessAvailable | ||
status: "True" | ||
type: Reconciling | ||
observedGeneration: 1 |
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,14 @@ | ||
apiVersion: apps.example.com/v1 | ||
kind: Application | ||
metadata: | ||
generation: 1 | ||
name: my-app | ||
spec: | ||
image: my-app:v1.2.3 | ||
status: | ||
conditions: | ||
- message: 'Error reconciling: Back-off pulling image "my-app:v1.2.3"' | ||
reason: Failed | ||
status: "True" | ||
type: Stalled | ||
observedGeneration: 1 |