Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
feat: adding validation through the subscription (#96)
Browse files Browse the repository at this point in the history
* feat: adding validation through the subscription

* using latest ocm-controller for verification

* added new version
  • Loading branch information
Skarlso authored Dec 5, 2023
1 parent e12d000 commit 11cddc9
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 30 deletions.
3 changes: 3 additions & 0 deletions api/v1alpha1/productdeployment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type ProductDeploymentSpec struct {
Interval metav1.Duration `json:"interval"`
// +required
Schema []byte `json:"schema"`
// Verify defines signatures for the given component.
// +optional
Verify []ocmv1.Signature `json:"verify,omitempty"`
}

// ProductDeploymentStatus defines the observed state of ProductDeployment.
Expand Down
8 changes: 8 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

36 changes: 36 additions & 0 deletions config/crd/bases/mpas.ocm.software_productdeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,42 @@ spec:
type: string
serviceAccountName:
type: string
verify:
description: Verify defines signatures for the given component.
items:
description: Signature defines the details of a signature to use
for verification.
properties:
name:
description: Name specifies the name of the signature. An OCM
component may have multiple signatures.
type: string
publicKey:
description: PublicKey provides a reference to a Kubernetes
Secret of contain a blob of a public key that which will be
used to validate the named signature.
properties:
secretRef:
description: SecretRef is a reference to a Secret that contains
a public key.
properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
type: object
x-kubernetes-map-type: atomic
value:
description: Value defines a PEM/base64 encoded public key
value.
format: byte
type: string
type: object
required:
- name
- publicKey
type: object
type: array
required:
- component
- interval
Expand Down
14 changes: 13 additions & 1 deletion controllers/productdeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,18 @@ func (r *ProductDeploymentReconciler) createOrUpdatedValuesConfigMap(
}

func (r *ProductDeploymentReconciler) createOrUpdateComponentVersion(ctx context.Context, obj *v1alpha1.ProductDeployment) error {
signature := make([]ocmv1alpha1.Signature, 0, len(obj.Spec.Verify))
for _, s := range obj.Spec.Verify {
sign := ocmv1alpha1.Signature{
Name: s.Name,
PublicKey: ocmv1alpha1.PublicKey{
SecretRef: s.PublicKey.SecretRef,
Value: s.PublicKey.Value,
},
}
signature = append(signature, sign)
}

cv := &ocmv1alpha1.ComponentVersion{
ObjectMeta: metav1.ObjectMeta{
Name: r.generateComponentVersionName(obj),
Expand All @@ -322,7 +334,7 @@ func (r *ProductDeploymentReconciler) createOrUpdateComponentVersion(ctx context
Repository: ocmv1alpha1.Repository{
URL: obj.Spec.Component.Registry.URL,
},
Verify: nil,
Verify: signature,
References: ocmv1alpha1.ReferencesConfig{
Expand: true,
},
Expand Down
10 changes: 7 additions & 3 deletions controllers/productdeploymentgenerator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (r *ProductDeploymentGeneratorReconciler) reconcile(ctx context.Context, ob
}
}()

sync, values, err := r.createSync(ctx, obj, *prodDesc, component, dir, cv, project)
sync, values, err := r.createSync(ctx, obj, *prodDesc, subscription, component, dir, cv, project)
if err != nil {
return ctrl.Result{}, err
}
Expand Down Expand Up @@ -323,9 +323,11 @@ func (r *ProductDeploymentGeneratorReconciler) reconcile(ctx context.Context, ob
return ctrl.Result{}, nil
}

func (r *ProductDeploymentGeneratorReconciler) createSync(ctx context.Context,
func (r *ProductDeploymentGeneratorReconciler) createSync(
ctx context.Context,
obj *v1alpha1.ProductDeploymentGenerator,
prodDesc v1alpha1.ProductDescription,
subscription *replicationv1.ComponentSubscription,
component replicationv1.Component,
dir string,
cv ocm.ComponentVersionAccess,
Expand All @@ -343,7 +345,7 @@ func (r *ProductDeploymentGeneratorReconciler) createSync(ctx context.Context,

productFolder := filepath.Join(dir, obj.Name)

productDeployment, values, err := r.createProductDeployment(ctx, obj, prodDesc, component, productFolder, cv, project)
productDeployment, values, err := r.createProductDeployment(ctx, obj, prodDesc, component, productFolder, cv, project, subscription)
if err != nil {
if errors.Is(err, errUnschedulable) {
status.MarkNotReady(r.EventRecorder, obj, v1alpha1.ProductPipelineSchedulingFailedReason, err.Error())
Expand Down Expand Up @@ -437,6 +439,7 @@ func (r *ProductDeploymentGeneratorReconciler) createProductDeployment(
dir string,
cv ocm.ComponentVersionAccess,
project *projectv1.Project,
subscription *replicationv1.ComponentSubscription,
) (*v1alpha1.ProductDeployment, *cue.File, error) {
logger := log.FromContext(ctx)

Expand All @@ -455,6 +458,7 @@ func (r *ProductDeploymentGeneratorReconciler) createProductDeployment(
Component: component,
ServiceAccountName: obj.Spec.ServiceAccountName,
Interval: obj.Spec.Interval,
Verify: subscription.Status.Signature,
}

var readme []byte
Expand Down
10 changes: 10 additions & 0 deletions docs/release_notes/v0.9.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Release 0.9.0

- feat: adding validation through the subscription (#96)
- fix: missing scheme from gitea client (#95)
- feat: applying lint and fixing the lint issues (#94)
- Update configuration and validation using cuelang (#89)
- Skip Report generation on scheduled run + non PR runs (#93)
- docs: update the README and add relevant information (#90)
- build(deps): bump github.com/go-jose/go-jose/v3 from 3.0.0 to 3.0.1 (#87)
- Add Reports to Mend Scans (#85)
16 changes: 8 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ require (
github.com/open-component-model/git-controller v0.10.0
github.com/open-component-model/mpas-project-controller v0.2.0
github.com/open-component-model/ocm v0.4.0
github.com/open-component-model/ocm-controller v0.16.1
github.com/open-component-model/replication-controller v0.9.0
github.com/open-component-model/ocm-controller v0.18.0
github.com/open-component-model/replication-controller v0.12.0
github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5
github.com/stretchr/testify v1.8.4
github.com/teekennedy/goldmark-markdown v0.2.0
Expand Down Expand Up @@ -153,7 +153,7 @@ require (
github.com/go-chi/chi v4.1.2+incompatible // indirect
github.com/go-errors/errors v1.4.2 // indirect
github.com/go-jose/go-jose/v3 v3.0.1 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-logr/zapr v1.2.4 // indirect
github.com/go-openapi/analysis v0.21.4 // indirect
Expand All @@ -178,7 +178,7 @@ require (
github.com/google/btree v1.1.2 // indirect
github.com/google/certificate-transparency-go v1.1.6 // indirect
github.com/google/gnostic v0.6.9 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/go-containerregistry v0.16.1 // indirect
github.com/google/go-github/v45 v45.2.0 // indirect
github.com/google/go-github/v50 v50.2.0 // indirect
Expand Down Expand Up @@ -236,7 +236,7 @@ require (
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/onsi/gomega v1.27.10 // indirect
github.com/onsi/gomega v1.30.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0-rc5 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
Expand Down Expand Up @@ -297,14 +297,14 @@ require (
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.25.0 // indirect
golang.org/x/crypto v0.15.0 // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/term v0.14.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.9.3 // indirect
golang.org/x/tools v0.12.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/api v0.138.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
Expand All @@ -324,5 +324,5 @@ require (
sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 // indirect
sigs.k8s.io/release-utils v0.7.4 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.3.0 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)
33 changes: 18 additions & 15 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,9 @@ github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTg
github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ=
github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY=
github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/go-logr/zapr v1.2.4 h1:QHVo+6stLbfJmYGkQ7uGHUCu5hnAFAj6mDe6Ea0SeOo=
Expand Down Expand Up @@ -828,8 +829,9 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-containerregistry v0.5.1/go.mod h1:Ct15B4yir3PLOP5jsy0GNeYVaIZs/MK/Jz5any1wFW0=
github.com/google/go-containerregistry v0.16.1 h1:rUEt426sR6nyrL3gt+18ibRcvYpKYdpsa5ZW7MA08dQ=
github.com/google/go-containerregistry v0.16.1/go.mod h1:u0qB2l7mvtWVR5kNcbFIhFY1hLbf8eeGapA+vbFDCtQ=
Expand Down Expand Up @@ -1195,8 +1197,8 @@ github.com/onsi/ginkgo/v2 v2.7.0/go.mod h1:yjiuMwPokqY1XauOgju45q3sJt6VzQ/Fict1L
github.com/onsi/ginkgo/v2 v2.8.1/go.mod h1:N1/NbDngAFcSLdyZ+/aYTYGSlq9qMCS/cNKGJjy+csc=
github.com/onsi/ginkgo/v2 v2.9.0/go.mod h1:4xkjoL/tZv4SMWeww56BU5kAt19mVB47gTWxmrTcxyk=
github.com/onsi/ginkgo/v2 v2.9.1/go.mod h1:FEcmzVcCHl+4o9bQZVab+4dC9+j+91t2FHSzmGAPfuo=
github.com/onsi/ginkgo/v2 v2.11.0 h1:WgqUCUt/lT6yXoQ8Wef0fsNn5cAuMK7+KT9UFRz2tcU=
github.com/onsi/ginkgo/v2 v2.11.0/go.mod h1:ZhrRA5XmEE3x3rhlzamx/JJvujdZoJ2uvgI7kR0iZvM=
github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4=
github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o=
github.com/onsi/gomega v0.0.0-20151007035656-2152b45fa28a/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
Expand All @@ -1215,18 +1217,18 @@ github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdM
github.com/onsi/gomega v1.27.1/go.mod h1:aHX5xOykVYzWOV4WqQy0sy8BQptgukenXpCXfadcIAw=
github.com/onsi/gomega v1.27.3/go.mod h1:5vG284IBtfDAmDyrK+eGyZmUgUlmi+Wngqo557cZ6Gw=
github.com/onsi/gomega v1.27.4/go.mod h1:riYq/GJKh8hhoM01HN6Vmuy93AarCXCBGpvFDK3q3fQ=
github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI=
github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M=
github.com/onsi/gomega v1.30.0 h1:hvMK7xYz4D3HapigLTeGdId/NcfQx1VHMJc60ew99+8=
github.com/onsi/gomega v1.30.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
github.com/open-component-model/git-controller v0.10.0 h1:wUMfEpo64VZGpV9zstv4QkzuW/8IACNx5oo3u38DkKE=
github.com/open-component-model/git-controller v0.10.0/go.mod h1:GvxPkggogs4gNCBsdRNq44hZD4vlg8e6OzlJMpfa5uo=
github.com/open-component-model/mpas-project-controller v0.2.0 h1:4l8isUi2A+NBT7UOO4KTXE3G0eOkAT5bR8pqdzc/Xww=
github.com/open-component-model/mpas-project-controller v0.2.0/go.mod h1:zBwWb2/5+BRseF8AL7rjCZajXF69ExqflNcqwEXSSAM=
github.com/open-component-model/ocm v0.4.0 h1:S+rPJGoDnSvxhBn3QS2HXURxugTjCM4XWEJLZSaH6Ek=
github.com/open-component-model/ocm v0.4.0/go.mod h1:7RAqaUMmA4BlwW5ZEUBm8amWIb1TL9FhNigNXQ6wiu0=
github.com/open-component-model/ocm-controller v0.16.1 h1:Vr04cTivp/kBYktTwDMG4FgmpIS+DdgxX1QnBdBp/hA=
github.com/open-component-model/ocm-controller v0.16.1/go.mod h1:lYax3VEjWAZ7qEr90opJQl+qm/gO3wIeoz1WSEdje2c=
github.com/open-component-model/replication-controller v0.9.0 h1:nLLofeH+STCvXj2Fc7Wq96Xlw9l0xZRENcJWqS+Cf0g=
github.com/open-component-model/replication-controller v0.9.0/go.mod h1:u2/MrLz1d0NiGP8qulMCpKDU9lPiGzz4cE2HXMni60M=
github.com/open-component-model/ocm-controller v0.18.0 h1:xyT3mvs0l43nBuYFsLxJWBqibtu1IX2WB6Aa7KJZnzo=
github.com/open-component-model/ocm-controller v0.18.0/go.mod h1:VRwUK7eo+PJYx/XXFo7NvdjW3TsLLdtA1JXdhZzNMCo=
github.com/open-component-model/replication-controller v0.12.0 h1:DpnjoOYWjNJ6PIz5b8XHq8kB1msof0O47nWlNlbj9Q8=
github.com/open-component-model/replication-controller v0.12.0/go.mod h1:fRD7kDKV2cVeoP9LraJfEae0VgUv/CfDjym9dJKebjY=
github.com/opencontainers/go-digest v1.0.1-0.20220411205349-bde1400a84be h1:f2PlhC9pm5sqpBZFvnAoKj+KzXRzbjFMA+TqXfJdgho=
github.com/opencontainers/go-digest v1.0.1-0.20220411205349-bde1400a84be/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.0.0/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
Expand Down Expand Up @@ -1680,8 +1682,8 @@ golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI=
golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU=
golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand Down Expand Up @@ -1998,8 +2000,8 @@ golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s=
golang.org/x/tools v0.9.3 h1:Gn1I8+64MsuTb/HpH+LmQtNas23LhUVr3rYZ0eKuaMM=
golang.org/x/tools v0.9.3/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc=
golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss=
golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down Expand Up @@ -2265,5 +2267,6 @@ sigs.k8s.io/structured-merge-diff/v4 v4.3.0 h1:UZbZAZfX0wV2zr7YZorDz6GXROfDFj6Lv
sigs.k8s.io/structured-merge-diff/v4 v4.3.0/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08=
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=
sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY=
5 changes: 3 additions & 2 deletions pkg/validators/gitea/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
"net/url"

"code.gitea.io/sdk/gitea"
deliveryv1alpha1 "github.com/open-component-model/git-controller/apis/delivery/v1alpha1"
gitv1alpha1 "github.com/open-component-model/git-controller/apis/mpas/v1alpha1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"

deliveryv1alpha1 "github.com/open-component-model/git-controller/apis/delivery/v1alpha1"
gitv1alpha1 "github.com/open-component-model/git-controller/apis/mpas/v1alpha1"

"github.com/open-component-model/mpas-product-controller/api/v1alpha1"
"github.com/open-component-model/mpas-product-controller/pkg/validators"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package version

// ReleaseVersion is the version number in semver format "vX.Y.Z", prefixed with "v".
var ReleaseVersion = "v0.8.0"
var ReleaseVersion = "v0.9.0"

// ReleaseCandidate is the release candidate ID in format "rc.X", which will be appended to the release version.
var ReleaseCandidate = "rc.1"

0 comments on commit 11cddc9

Please sign in to comment.