Skip to content

Commit d8f2e3f

Browse files
Final pre-release changes (#47)
* maintainers updated Signed-off-by: Michael Valdron <[email protected]> * set version to 0.1.0 maturity beta Signed-off-by: Michael Valdron <[email protected]> * csv manifest updated descriptions for CRs Signed-off-by: Michael Valdron <[email protected]> * correct invalid namespace test case label for ClusterDevfileRegistriesList CR webhook Signed-off-by: Michael Valdron <[email protected]> * CR descriptions updated in source. Signed-off-by: Michael Valdron <[email protected]> * bundle and manifest updates generated Signed-off-by: Michael Valdron <[email protected]> * devfileregistry CR description updated Signed-off-by: Michael Valdron <[email protected]> * update samples of ClusterDevfileRegistriesList and DevfileRegistriesList CRs Signed-off-by: Michael Valdron <[email protected]> * Updates to CRDs and CSV Signed-off-by: Michael Valdron <[email protected]> * License and CONTRIBUTING.md links added to README Signed-off-by: Michael Valdron <[email protected]> * Update description and capabilities Signed-off-by: Michael Valdron <[email protected]> * update bundle files Signed-off-by: Michael Valdron <[email protected]> * update to new devfile icon Signed-off-by: Michael Valdron <[email protected]> * update display name Signed-off-by: Michael Valdron <[email protected]> * update devfileregistry sample Signed-off-by: Michael Valdron <[email protected]> * fix links for pull requests Signed-off-by: Michael Valdron <[email protected]> * update CHANGELOG Signed-off-by: Michael Valdron <[email protected]> * documentation review revisions Co-authored-by: Philippe Martin <[email protected]> Signed-off-by: Michael Valdron <[email protected]> * fix formatting of devfileregistry_types.go Signed-off-by: Michael Valdron <[email protected]> --------- Signed-off-by: Michael Valdron <[email protected]> Co-authored-by: Philippe Martin <[email protected]>
1 parent fd4aacc commit d8f2e3f

20 files changed

+579
-55
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Fixes #?
99
**PR acceptance criteria**:
1010

1111
- [ ] Change Log
12-
- Are all your changes documented under the [upcoming release](../CHANGELOG.md#unreleased) entry?
12+
- Are all your changes documented under the [upcoming release](https://github.com/devfile/registry-operator/tree/main/CHANGELOG.md#unreleased) entry?
1313
- [ ] Test Coverage
1414
- Are your changes sufficiently tested, and are any applicable test cases added or updated to cover your changes?
1515
- [ ] Gosec scans
1616
- Fix all MEDIUM and higher findings and/or annotate a finding per gosec instructions: https://github.com/securego/gosec#annotating-code to address why a finding is not a security issue
1717

1818
Documentation
19-
- [ ] Does the [registry operator documentation](https://github.com/devfile/devfile-web/tree/main/libs/docs/src/docs/no-version) need to updated with your changes?
19+
- [ ] Does the registry operator documentation need to be updated with your changes?
2020

2121
**How to test changes / Special notes to the reviewer**:

CHANGELOG.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,61 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
8-
8+
9+
### Added
10+
11+
### Changed
12+
13+
### Fixed
14+
15+
## [0.1.0]
16+
917
### Added
1018
- [devfile/api#1106](https://github.com/devfile/api/issues/1106)
1119
Registry operator should be in sync with operator SDK releases
1220
- Addition of `CHANGELOG.md`
21+
- [devfile/api#1233](https://github.com/devfile/api/issues/1233)
22+
- Included `install-cert` as an required step before `install` and `deploy`
1323

1424
### Changed
15-
25+
- [devfile/api#1233](https://github.com/devfile/api/issues/1233)
26+
Update CONTRIBUTING for registry operator
27+
- Replaced prerequisites with a reference to the [requirements section](README.md#requirements) under the README
28+
- [devfile/api#1211](https://github.com/devfile/api/issues/1211)
29+
Devfile registry operator pre-release to OperatorHub
30+
- Bump version to `v0.1.0`
31+
- Changes to CRs, CRDs, samples, and CSV to provide up to date information on the operator
32+
- Metadata
33+
- Capabilities
34+
- Categories
35+
- Container Image
36+
- Source Repository Link
37+
- Maintainer Organization
38+
- Samples List
39+
- Short Description
40+
- Maintainers List
41+
- Icon
42+
- Display Name
43+
- Long Description
44+
- Version
45+
- Update [README](README.md) with [LICENSE](LICENSE) and [CONTRIBUTING.md](CONTRIBUTING.md) links
1646
- [devfile/api#1106](https://github.com/devfile/api/issues/1106)
1747
Registry operator should be in sync with operator SDK releases
1848
- Syncs changes up to operator sdk v1.28
1949
- [v1.28.0 changes](https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.28.0/)
2050
- [v1.25.0 changes](https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.25.0/)
2151
- [v1.23.0 changes](https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.23.0/)
52+
- [devfile/api#1015](https://github.com/devfile/api/issues/1015)
53+
Complete documentation coverage of registry operator
54+
- Provided complete documentation on makefile usage
55+
- Provided complete documentation on deployment spec fields
2256
- [devfile/api#881](https://github.com/devfile/api/issues/881)
2357
Update Ginkgo version in registry operator
2458

2559
### Fixed
2660
- [devfile/api#1106](https://github.com/devfile/api/issues/1106)
2761
Registry operator should be in sync with operator SDK releases
2862
- Registry operator service account changed from `default` to `service-account` to fix permissions error for creating leader election leases
63+
- [devfile/api#1211](https://github.com/devfile/api/issues/1211)
64+
Devfile registry operator pre-release to OperatorHub
65+
- Fixes for links under [PR template](.github/PULL_REQUEST_TEMPLATE.md)

DEVFILE_REGISTRY.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Devfile Registry
22

3-
The Devfile Registry custom resource allows you to create and manage your own index server and registry viewer.
3+
DevfileRegistry is a custom resource allowing you to create and manage your own index server and registry viewer. In order to be added, the
4+
Devfile Registry must be reachable, must support the Devfile v2.0 spec and above, and cannot be deployed to the default namespace.
45

56
## Deploying a Devfile Registry
67

7-
Once the Devfile Registry operator has been deployed to a cluster, you can deploy a Devfile Registry by creating custom resources. The following samples below showcase how the registry can be deployed on to an OpenShift or Kubernetes cluster.
8+
Once the Devfile Registry operator has been deployed to a cluster, you can deploy a Devfile Registry by creating custom resources. The following
9+
samples below showcase how the registry can be deployed on to an OpenShift or Kubernetes cluster.
810

911
In addition to the examples below, the `samples/` folder in this repo provides some example devfile registry yaml files for convenience.
1012

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11

22
# Devfile Registry Operator
33

4+
<div id="header">
5+
6+
[![Apache2.0 License](https://img.shields.io/badge/license-Apache2.0-brightgreen.svg)](LICENSE)
7+
</div>
8+
49
The Devfile Registry operator manages the lifecycle of the following custom resources:
510
1. [Devfile Registry](DEVFILE_REGISTRY.md)
611
2. [Devfile Registries List](REGISTRIES_LISTS.md)
@@ -126,4 +131,8 @@ make install
126131

127132
```bash
128133
make run ENABLE_WEBHOOKS=false
129-
```
134+
```
135+
136+
## Contributing
137+
138+
Please see our [contributing.md](./CONTRIBUTING.md).

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.1
1+
0.1.0

api/v1alpha1/clusterdevfileregistrieslist_types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2022 Red Hat, Inc.
2+
Copyright 2022-2023 Red Hat, Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -26,7 +26,8 @@ import (
2626
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status",description="The status for the Cluster Devfile Registries List"
2727

2828
// ClusterDevfileRegistriesList is a custom resource where cluster admins can add a list of Devfile Registries to allow devfiles to be visible
29-
// at the cluster level. In order to be added to the list, the Devfile Registries must be reachable and support the Devfile v2.0 spec and above.
29+
// at the cluster level. In order to be added to the list, the Devfile Registries must be reachable, supports the Devfile v2.0 spec and above,
30+
// and is not using the default namespace.
3031
type ClusterDevfileRegistriesList struct {
3132
metav1.TypeMeta `json:",inline"`
3233
metav1.ObjectMeta `json:"metadata,omitempty"`

api/v1alpha1/clusterdevfileregistrieslist_webhook_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var _ = Describe("ClusterDevfileRegistriesList validation webhook", func() {
3737
})
3838
})
3939

40-
Context("Create ClusterDevfileRegistriesList CR with valid values", func() {
40+
Context("Create ClusterDevfileRegistriesList CR in forbidden default namespaces", func() {
4141
It("Should fail to create a new CR in the default namespace", func() {
4242
ctx := context.Background()
4343
Expect(k8sClient.Create(ctx, getClusterDevfileRegistriesListCR("default-namespace-list", "default",

api/v1alpha1/devfileregistrieslist_types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2022 Red Hat, Inc.
2+
Copyright 2022-2023 Red Hat, Inc.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -57,7 +57,8 @@ type DevfileRegistriesListStatus struct {
5757
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status",description="The status for the Devfile Registries List"
5858

5959
// DevfileRegistriesList is a custom resource where namespace users can add a list of Devfile Registries to allow devfiles to be visible
60-
// at the namespace level. In order to be added to the list, the Devfile Registries must be reachable and support the Devfile v2.0 spec and above.
60+
// at the namespace level. In order to be added to the list, the Devfile Registries must be reachable, supports the Devfile v2.0 spec
61+
// and above, and is not using the default namespace.
6162
type DevfileRegistriesList struct {
6263
metav1.TypeMeta `json:",inline"`
6364
metav1.ObjectMeta `json:"metadata,omitempty"`

api/v1alpha1/devfileregistry_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ type DevfileRegistryStatus struct {
128128
// +kubebuilder:object:root=true
129129
// +kubebuilder:subresource:status
130130

131-
// DevfileRegistry is the Schema for the devfileregistries API
131+
// DevfileRegistry is a custom resource allows you to create and manage your own index server and registry viewer.
132+
// In order to be added, the Devfile Registry must be reachable, supports the Devfile v2.0 spec and above, and is
133+
// not using the default namespace.
132134
// +kubebuilder:resource:path=devfileregistries,shortName=devreg;dr
133135
// +kubebuilder:subresource:status
134136
// +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".status.url",description="The URL for the Devfile Registry"

bundle/manifests/registry-operator.clusterserviceversion.yaml

Lines changed: 238 additions & 15 deletions
Large diffs are not rendered by default.

bundle/manifests/registry.devfile.io_clusterdevfileregistrieslists.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ spec:
3636
description: ClusterDevfileRegistriesList is a custom resource where cluster
3737
admins can add a list of Devfile Registries to allow devfiles to be visible
3838
at the cluster level. In order to be added to the list, the Devfile Registries
39-
must be reachable and support the Devfile v2.0 spec and above.
39+
must be reachable, supports the Devfile v2.0 spec and above, and is not
40+
using the default namespace.
4041
properties:
4142
apiVersion:
4243
description: 'APIVersion defines the versioned schema of this representation

bundle/manifests/registry.devfile.io_devfileregistries.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ spec:
2525
name: v1alpha1
2626
schema:
2727
openAPIV3Schema:
28-
description: DevfileRegistry is the Schema for the devfileregistries API
28+
description: DevfileRegistry is a custom resource allows you to create and
29+
manage your own index server and registry viewer. In order to be added,
30+
the Devfile Registry must be reachable, supports the Devfile v2.0 spec and
31+
above, and is not using the default namespace.
2932
properties:
3033
apiVersion:
3134
description: 'APIVersion defines the versioned schema of this representation

bundle/manifests/registry.devfile.io_devfileregistrieslists.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ spec:
3636
description: DevfileRegistriesList is a custom resource where namespace users
3737
can add a list of Devfile Registries to allow devfiles to be visible at
3838
the namespace level. In order to be added to the list, the Devfile Registries
39-
must be reachable and support the Devfile v2.0 spec and above.
39+
must be reachable, supports the Devfile v2.0 spec and above, and is not
40+
using the default namespace.
4041
properties:
4142
apiVersion:
4243
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/registry.devfile.io_clusterdevfileregistrieslists.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ spec:
2626
description: ClusterDevfileRegistriesList is a custom resource where cluster
2727
admins can add a list of Devfile Registries to allow devfiles to be visible
2828
at the cluster level. In order to be added to the list, the Devfile Registries
29-
must be reachable and support the Devfile v2.0 spec and above.
29+
must be reachable, supports the Devfile v2.0 spec and above, and is not
30+
using the default namespace.
3031
properties:
3132
apiVersion:
3233
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/registry.devfile.io_devfileregistries.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ spec:
2626
name: v1alpha1
2727
schema:
2828
openAPIV3Schema:
29-
description: DevfileRegistry is the Schema for the devfileregistries API
29+
description: DevfileRegistry is a custom resource allows you to create and
30+
manage your own index server and registry viewer. In order to be added,
31+
the Devfile Registry must be reachable, supports the Devfile v2.0 spec and
32+
above, and is not using the default namespace.
3033
properties:
3134
apiVersion:
3235
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/registry.devfile.io_devfileregistrieslists.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ spec:
2626
description: DevfileRegistriesList is a custom resource where namespace users
2727
can add a list of Devfile Registries to allow devfiles to be visible at
2828
the namespace level. In order to be added to the list, the Devfile Registries
29-
must be reachable and support the Devfile v2.0 spec and above.
29+
must be reachable, supports the Devfile v2.0 spec and above, and is not
30+
using the default namespace.
3031
properties:
3132
apiVersion:
3233
description: 'APIVersion defines the versioned schema of this representation

config/manifests/bases/registry-operator.clusterserviceversion.yaml

Lines changed: 248 additions & 14 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
apiVersion: registry.devfile.io/v1alpha1
2-
kind: clusterDevfileRegistriesList
2+
kind: ClusterDevfileRegistriesList
33
metadata:
4-
name: clusterdevfileregistrieslist-sample
4+
name: sample-clusterdevfileregistrieslist
55
spec:
6-
# TODO(user): Add fields here
6+
devfileRegistries:
7+
- name: devfile-staging
8+
url: https://registry.stage.devfile.io
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
apiVersion: registry.devfile.io/v1alpha1
22
kind: DevfileRegistriesList
33
metadata:
4-
name: devfileregistrieslist-sample
4+
name: sample-devfileregistrieslist
55
spec:
6-
# TODO(user): Add fields here
6+
devfileRegistries:
7+
- name: devfile-staging
8+
url: https://registry.stage.devfile.io

config/samples/registry_v1alpha1_devfileregistry.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ kind: DevfileRegistry
33
metadata:
44
name: sample-devfileregistry
55
spec:
6-
devfileIndexImage: quay.io/devfile/devfile-index:next
6+
devfileIndex:
7+
image: quay.io/devfile/devfile-index:next

0 commit comments

Comments
 (0)