diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e28dcb2..92a0846 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -35,7 +35,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: '1.24' + go-version: '1.25' - name: Cache Operator SDK ${{ env.OPERATOR_SDK_VERSION }} uses: actions/cache@v4 id: cache-operator-sdk diff --git a/api/v1alpha1/snapshot_types.go b/api/v1alpha1/snapshot_types.go index 7968e83..9a20bb1 100644 --- a/api/v1alpha1/snapshot_types.go +++ b/api/v1alpha1/snapshot_types.go @@ -52,7 +52,8 @@ type SnapshotComponent struct { // Version is the component verison. Only required if multiple versions of the same // Component are in the Snapshot - Version string `json:"version"` + // +optional + Version string `json:"version,omitempty"` // ContainerImage is the container image to use when deploying the component, as part of a Snapshot ContainerImage string `json:"containerImage"` diff --git a/config/crd/bases/appstudio.redhat.com_snapshots.yaml b/config/crd/bases/appstudio.redhat.com_snapshots.yaml index 003b589..c184afe 100644 --- a/config/crd/bases/appstudio.redhat.com_snapshots.yaml +++ b/config/crd/bases/appstudio.redhat.com_snapshots.yaml @@ -388,7 +388,6 @@ spec: required: - containerImage - name - - version type: object type: array displayDescription: diff --git a/manifests/application-api-customresourcedefinitions.yaml b/manifests/application-api-customresourcedefinitions.yaml index 89e0378..b574409 100644 --- a/manifests/application-api-customresourcedefinitions.yaml +++ b/manifests/application-api-customresourcedefinitions.yaml @@ -3862,7 +3862,6 @@ spec: required: - containerImage - name - - version type: object type: array displayDescription: