Skip to content

Commit c10f4c0

Browse files
committed
Update docs with new conditions and events
Signed-off-by: Sunny <darkowlzz@protonmail.com>
1 parent 14147f1 commit c10f4c0

File tree

4 files changed

+75
-3
lines changed

4 files changed

+75
-3
lines changed

docs/spec/v1beta2/buckets.md

+18
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ control over.
9393
Reason: Succeeded
9494
Status: True
9595
Type: Ready
96+
Last Transition Time: 2022-02-01T23:43:38Z
97+
Message: stored artifact for revision 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
98+
Observed Generation: 1
99+
Reason: Succeeded
100+
Status: True
101+
Type: ArtifactInStorage
96102
Observed Generation: 1
97103
URL: http://source-controller.source-system.svc.cluster.local./bucket/default/minio-bucket/latest.tar.gz
98104
Events:
@@ -780,6 +786,7 @@ lists
780786
```console
781787
LAST SEEN TYPE REASON OBJECT MESSAGE
782788
2m30s Normal NewArtifact bucket/<bucket-name> fetched 16 files with revision from 'my-new-bucket'
789+
36s Normal ArtifactUpToDate bucket/<bucket-name> artifact up-to-date with remote revision: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
783790
18s Warning BucketOperationFailed bucket/<bucket-name> bucket 'my-new-bucket' does not exist
784791
```
785792

@@ -892,6 +899,17 @@ This `Ready` Condition will retain a status value of `"True"` until the Bucket
892899
is marked as [reconciling](#reconciling-bucket), or e.g. a
893900
[transient error](#failed-bucket) occurs due to a temporary network issue.
894901

902+
When the Bucket Artifact is archived in the controller's Artifact
903+
storage, the controller sets a Condition with the following attributes in the
904+
Bucket's `.status.conditions`:
905+
906+
- `type: ArtifactInStorage`
907+
- `status: "True"`
908+
- `reason: Succeeded`
909+
910+
This `ArtifactInStorage` Condition will retain a status value of `"True"` until
911+
the Artifact in the storage no longer exists.
912+
895913
#### Failed Bucket
896914

897915
The source-controller may get stuck trying to produce an Artifact for a Bucket

docs/spec/v1beta2/gitrepositories.md

+18
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ You can run this example by saving the manifest into `gitrepository.yaml`.
7171
Reason: Succeeded
7272
Status: True
7373
Type: Ready
74+
Last Transition Time: 2022-02-14T11:23:36Z
75+
Message: stored artifact for revision 'master/132f4e719209eb10b9485302f8593fc0e680f4fc'
76+
Observed Generation: 1
77+
Reason: Succeeded
78+
Status: True
79+
Type: ArtifactInStorage
7480
Observed Generation: 1
7581
URL: http://source-controller.source-system.svc.cluster.local./gitrepository/default/podinfo/latest.tar.gz
7682
Events:
@@ -647,6 +653,7 @@ lists
647653
```console
648654
LAST SEEN TYPE REASON OBJECT MESSAGE
649655
2m14s Normal NewArtifact gitrepository/<repository-name> stored artifact for commit 'Merge pull request #160 from stefanprodan/release-6.0.3'
656+
36s Normal ArtifactUpToDate gitrepository/<repository-name> artifact up-to-date with remote revision: 'master/132f4e719209eb10b9485302f8593fc0e680f4fc'
650657
94s Warning GitOperationFailed gitrepository/<repository-name> failed to checkout and determine revision: unable to clone 'https://github.com/stefanprodan/podinfo': couldn't find remote ref "refs/heads/invalid"
651658
```
652659

@@ -760,6 +767,17 @@ This `Ready` Condition will retain a status value of `"True"` until the
760767
GitRepository is marked as [reconciling](#reconciling-gitrepository), or e.g. a
761768
[transient error](#failed-gitrepository) occurs due to a temporary network issue.
762769

770+
When the GitRepository Artifact is archived in the controller's Artifact
771+
storage, the controller sets a Condition with the following attributes in the
772+
GitRepository's `.status.conditions`:
773+
774+
- `type: ArtifactInStorage`
775+
- `status: "True"`
776+
- `reason: Succeeded`
777+
778+
This `ArtifactInStorage` Condition will retain a status value of `"True"` until
779+
the Artifact in the storage no longer exists.
780+
763781
#### Failed GitRepository
764782

765783
The source-controller may get stuck trying to produce an Artifact for a

docs/spec/v1beta2/helmcharts.md

+18
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ helm-controller.
7979
Reason: ChartPullSucceeded
8080
Status: True
8181
Type: Ready
82+
Last Transition Time: 2022-02-13T11:24:10Z
83+
Message: pulled 'podinfo' chart with version '5.2.1'
84+
Observed Generation: 1
85+
Reason: ChartPullSucceeded
86+
Status: True
87+
Type: ArtifactInStorage
8288
Observed Chart Name: podinfo
8389
Observed Generation: 1
8490
URL: http://source-controller.flux-system.svc.cluster.local./helmchart/default/podinfo/latest.tar.gz
@@ -377,6 +383,7 @@ lists
377383
LAST SEEN TYPE REASON OBJECT MESSAGE
378384
22s Warning InvalidChartReference helmchart/<chart-name> invalid chart reference: failed to get chart version for remote reference: no 'podinfo' chart with version matching '9.*' found
379385
2s Normal ChartPullSucceeded helmchart/<chart-name> pulled 'podinfo' chart with version '6.0.3'
386+
2s Normal ArtifactUpToDate helmchart/<chart-name> artifact up-to-date with remote revision: '6.0.3'
380387
```
381388

382389
Besides being reported in Events, the reconciliation errors are also logged by
@@ -522,6 +529,17 @@ This `Ready` Condition will retain a status value of `"True"` until the
522529
HelmChart is marked as [reconciling](#reconciling-helmchart), or e.g.
523530
a [transient error](#failed-helmchart) occurs due to a temporary network issue.
524531

532+
When the HelmChart Artifact is archived in the controller's Artifact
533+
storage, the controller sets a Condition with the following attributes in the
534+
HelmChart's `.status.conditions`:
535+
536+
- `type: ArtifactInStorage`
537+
- `status: "True"`
538+
- `reason: Succeeded`
539+
540+
This `ArtifactInStorage` Condition will retain a status value of `"True"` until
541+
the Artifact in the storage no longer exists.
542+
525543
#### Failed HelmChart
526544

527545
The source-controller may get stuck trying to produce an Artifact for a

docs/spec/v1beta2/helmrepositories.md

+21-3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ You can run this example by saving the manifest into `helmrepository.yaml`.
6969
Reason: Succeeded
7070
Status: True
7171
Type: Ready
72+
Last Transition Time: 2022-02-04T09:55:58Z
73+
Message: stored artifact for revision '83a3c595163a6ff0333e0154c790383b5be441b9db632cb36da11db1c4ece111'
74+
Observed Generation: 1
75+
Reason: Succeeded
76+
Status: True
77+
Type: ArtifactInStorage
7278
Observed Generation: 1
7379
URL: http://source-controller.flux-system.svc.cluster.local./helmrepository/default/podinfo/index.yaml
7480
Events:
@@ -359,9 +365,10 @@ kubectl get events --field-selector involvedObject.kind=HelmRepository,involvedO
359365
lists
360366

361367
```console
362-
LAST SEEN TYPE REASON OBJECT MESSAGE
363-
107s Warning Failed helmrepository/<repository-name> failed to construct Helm client: scheme "invalid" not supported
364-
7s Normal NewArtifact helmrepository/<repository-name> fetched index of size 30.88kB from 'https://stefanprodan.github.io/podinfo'
368+
LAST SEEN TYPE REASON OBJECT MESSAGE
369+
107s Warning Failed helmrepository/<repository-name> failed to construct Helm client: scheme "invalid" not supported
370+
7s Normal NewArtifact helmrepository/<repository-name> fetched index of size 30.88kB from 'https://stefanprodan.github.io/podinfo'
371+
3s Normal ArtifactUpToDate helmrepository/<repository-name> artifact up-to-date with remote revision: '83a3c595163a6ff0333e0154c790383b5be441b9db632cb36da11db1c4ece111'
365372
```
366373

367374
Besides being reported in Events, the reconciliation errors are also logged by
@@ -464,6 +471,17 @@ HelmRepository is marked as [reconciling](#reconciling-helmrepository), or e.g.
464471
a [transient error](#failed-helmrepository) occurs due to a temporary network
465472
issue.
466473

474+
When the HelmRepository Artifact is archived in the controller's Artifact
475+
storage, the controller sets a Condition with the following attributes in the
476+
HelmRepository's `.status.conditions`:
477+
478+
- `type: ArtifactInStorage`
479+
- `status: "True"`
480+
- `reason: Succeeded`
481+
482+
This `ArtifactInStorage` Condition will retain a status value of `"True"` until
483+
the Artifact in the storage no longer exists.
484+
467485
#### Failed HelmRepository
468486

469487
The source-controller may get stuck trying to produce an Artifact for a

0 commit comments

Comments
 (0)