Skip to content

Commit

Permalink
Merge pull request konflux-ci#280 from johnbieren/releasedata
Browse files Browse the repository at this point in the history
feat(RHTAPREL-646): add data field to Release Spec
  • Loading branch information
johnbieren authored Oct 20, 2023
2 parents be93103 + 1527c43 commit 68f2f2c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions api/v1alpha1/release_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"time"

"github.com/redhat-appstudio/release-service/metrics"
"k8s.io/apimachinery/pkg/runtime"

"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand All @@ -37,6 +38,11 @@ type ReleaseSpec struct {
// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
// +required
ReleasePlan string `json:"releasePlan"`

// Data is an unstructured key used for providing data for the release Pipeline
// +kubebuilder:pruning:PreserveUnknownFields
// +optional
Data *runtime.RawExtension `json:"data,omitempty"`
}

// ReleaseStatus defines the observed state of Release.
Expand Down
7 changes: 6 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions config/crd/bases/appstudio.redhat.com_releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ spec:
spec:
description: ReleaseSpec defines the desired state of Release.
properties:
data:
description: Data is an unstructured key used for providing data for
the release Pipeline
type: object
x-kubernetes-preserve-unknown-fields: true
releasePlan:
description: ReleasePlan to use for this particular Release
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Expand Down

0 comments on commit 68f2f2c

Please sign in to comment.