forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Account for missing fields in Rollout HealthStatus (argoproj#1699)
- Loading branch information
1 parent
4860f2c
commit 03b7d24
Showing
3 changed files
with
97 additions
and
7 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
74 changes: 74 additions & 0 deletions
74
resource_customizations/argoproj.io/Rollout/testdata/newRolloutWithoutStatus.yaml
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,74 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Rollout | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"argoproj.io/v1alpha1","kind":"Rollout","metadata":{"annotations":{},"labels":{"app":"helm-guestbook","app.kubernetes.io/instance":"bluegreen","chart":"helm-guestbook-0.1.0","heritage":"Tiller","release":"bluegreen"},"name":"bluegreen-helm-guestbook","namespace":"default"},"spec":{"replicas":1,"revisionHistoryLimit":3,"selector":{"matchLabels":{"app":"helm-guestbook","release":"bluegreen"}},"strategy":{"blueGreen":{"activeService":"bluegreen-helm-guestbook","previewService":"bluegreen-helm-guestbook-preview"}},"template":{"metadata":{"labels":{"app":"helm-guestbook","release":"bluegreen"}},"spec":{"containers":[{"image":"gcr.io/heptio-images/ks-guestbook-demo:0.1","imagePullPolicy":"IfNotPresent","livenessProbe":{"httpGet":{"path":"/","port":"http"}},"name":"helm-guestbook","ports":[{"containerPort":80,"name":"http","protocol":"TCP"}],"readinessProbe":{"httpGet":{"path":"/","port":"http"}},"resources":{}}]}}}} | ||
rollout.argoproj.io/revision: "1" | ||
creationTimestamp: 2019-06-05T21:26:38Z | ||
generation: 1 | ||
labels: | ||
app: helm-guestbook | ||
app.kubernetes.io/instance: bluegreen | ||
chart: helm-guestbook-0.1.0 | ||
heritage: Tiller | ||
release: bluegreen | ||
name: bluegreen-helm-guestbook | ||
namespace: default | ||
resourceVersion: "150297" | ||
selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/bluegreen-helm-guestbook | ||
uid: 9a560c89-87d8-11e9-a97d-080027da2583 | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 3 | ||
selector: | ||
matchLabels: | ||
app: helm-guestbook | ||
release: bluegreen | ||
strategy: | ||
blueGreen: | ||
activeService: bluegreen-helm-guestbook | ||
previewService: bluegreen-helm-guestbook-preview | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: helm-guestbook | ||
release: bluegreen | ||
spec: | ||
containers: | ||
- image: gcr.io/heptio-images/ks-guestbook-demo:0.1 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
name: helm-guestbook | ||
ports: | ||
- containerPort: 80 | ||
name: http | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
resources: {} | ||
status: | ||
blueGreen: {} | ||
canary: {} | ||
conditions: | ||
- lastTransitionTime: 2019-06-05T21:26:38Z | ||
lastUpdateTime: 2019-06-05T21:26:38Z | ||
message: Created new replica set "bluegreen-helm-guestbook-7c4599cc5b" | ||
reason: NewReplicaSetCreated | ||
status: "True" | ||
type: Progressing | ||
- lastTransitionTime: 2019-06-05T21:26:38Z | ||
lastUpdateTime: 2019-06-05T21:26:38Z | ||
message: Rollout does not have minimum availability | ||
reason: AvailableReason | ||
status: "False" | ||
type: Available | ||
currentPodHash: 7c4599cc5b | ||
observedGeneration: 78597c98fd | ||
selector: app=helm-guestbook,release=bluegreen |