Skip to content

Commit 858c4e1

Browse files
kubean-pr-robot[bot]ErikJiang
authored andcommitted
Merge pull request #121 from hangscer8/componentsVersion_status_optional_items
componentsVersion.status optional
2 parents fda8de1 + fa25c64 commit 858c4e1

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

.github/workflows/auto-release-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Download componentversion CR
5151
uses: actions/download-artifact@v3
5252
with:
53-
path: charts/kubean/templates/kubeancomponentsversion.cr.yaml
53+
path: charts/kubean/templates/
5454
name: offline-build-cr-file
5555

5656
- name: update helm version and image tag

api/apis/kubeancomponentsversion/v1alpha1/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ type Spec struct {
4040
}
4141

4242
type Status struct {
43+
// +optional
4344
Offline OfflineStatus `json:"offline,omitempty"`
4445
}
4546

4647
type OfflineStatus struct {
47-
// +required
48+
// +optional
4849
Items []*SoftwareInfoStatus `json:"items"`
4950

5051
// +optional

api/charts/_crds/kubean.io_kubeancomponentsversions.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ spec:
105105
- name
106106
type: object
107107
type: array
108-
required:
109-
- items
110108
type: object
111109
type: object
112110
required:

charts/kubean/_crds/kubean.io_kubeancomponentsversions.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ spec:
105105
- name
106106
type: object
107107
type: array
108-
required:
109-
- items
110108
type: object
111109
type: object
112110
required:

vendor/kubean.io/api/apis/kubeancomponentsversion/v1alpha1/types.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)