Skip to content

Commit

Permalink
Release changes for OLM validation (#49)
Browse files Browse the repository at this point in the history
* add missing spec and status descriptors

Signed-off-by: Michael Valdron <[email protected]>

* missing webhook service port added to crd patches

Signed-off-by: Michael Valdron <[email protected]>

* add conditions list to ClusterDevfileRegistriesList & DevfileRegistriesList CR status field

Signed-off-by: Michael Valdron <[email protected]>

* add conditions list to DevfileRegistry CR status field

Signed-off-by: Michael Valdron <[email protected]>

* update scorecard-test image to v1.28.0

Signed-off-by: Michael Valdron <[email protected]>

* capability level set to 'Basic Install' or level 1

Signed-off-by: Michael Valdron <[email protected]>

* remove unnecessary CHANGELOG

Signed-off-by: Michael Valdron <[email protected]>

* bump release number

Signed-off-by: Michael Valdron <[email protected]>

* update channels to beta

Signed-off-by: Michael Valdron <[email protected]>

* minKubeVersion added

Signed-off-by: Michael Valdron <[email protected]>

* add license headers script

Signed-off-by: Michael Valdron <[email protected]>

* update license header under boilerplate and generated source files

Signed-off-by: Michael Valdron <[email protected]>

* update license headers under controller source and revisions to review feedback for setting state conditions

Signed-off-by: Michael Valdron <[email protected]>

* update license headers in api source files

Signed-off-by: Michael Valdron <[email protected]>

* update license headers in pkg source files

Signed-off-by: Michael Valdron <[email protected]>

* update license headers in integration testing source files

Signed-off-by: Michael Valdron <[email protected]>

* update license header in main.go source file

Signed-off-by: Michael Valdron <[email protected]>

---------

Signed-off-by: Michael Valdron <[email protected]>
  • Loading branch information
michael-valdron authored Sep 21, 2023
1 parent 46fe9e0 commit 49aad35
Show file tree
Hide file tree
Showing 71 changed files with 1,734 additions and 778 deletions.
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Fixes #?

**PR acceptance criteria**:

- [ ] Change Log
- Are all your changes documented under the [upcoming release](https://github.com/devfile/registry-operator/tree/main/CHANGELOG.md#unreleased) entry?
- [ ] Test Coverage
- Are your changes sufficiently tested, and are any applicable test cases added or updated to cover your changes?
- [ ] Gosec scans
Expand Down
65 changes: 0 additions & 65 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1
29 changes: 29 additions & 0 deletions add_licenses.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
#
#
# Copyright Red Hat
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This script adds license headers that are missing from go files


if ! command -v addlicense 2> /dev/null
then
echo "error addlicense must be installed with this command: go install github.com/google/addlicense@latest" && exit 1
else
echo 'addlicense -v -f license_header.txt **/*.go'
addlicense -v -f license_header.txt $(find . -not -path '*/\.*' -not -path '*/vendor/*' -not -name 'zz_generated.*.go' -name '*.go')
fi


31 changes: 16 additions & 15 deletions api/v1alpha1/clusterdevfileregistrieslist_types.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
Copyright 2022-2023 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
//
//
// Copyright Red Hat
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package v1alpha1

Expand All @@ -24,6 +24,7 @@ import (
//+kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status",description="The status for the Cluster Devfile Registries List"
// +operator-sdk:csv:customresourcedefinitions:resources={{Deployment,v1,clusterdevfileregistrieslist-deployment}}

// ClusterDevfileRegistriesList is a custom resource where cluster admins can add a list of Devfile Registries to allow devfiles to be visible
// 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,
Expand Down
30 changes: 15 additions & 15 deletions api/v1alpha1/clusterdevfileregistrieslist_webhook.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
Copyright 2022-2023 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
//
//
// Copyright Red Hat
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package v1alpha1

Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/clusterdevfileregistrieslist_webhook_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
//
// Copyright 2022-2023 Red Hat, Inc.
// Copyright Red Hat
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
55 changes: 31 additions & 24 deletions api/v1alpha1/devfileregistrieslist_types.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
Copyright 2022-2023 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
//
//
// Copyright Red Hat
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package v1alpha1

Expand All @@ -29,32 +29,39 @@ type DevfileRegistriesListSpec struct {
// Important: Run "make" to regenerate code after modifying this file

// DevfileRegistries is a list of devfile registry services
//+optional
// +operator-sdk:csv:customresourcedefinitions:type=spec
// +optional
DevfileRegistries []DevfileRegistryService `json:"devfileRegistries"`
}

// DevfileRegistryService represents the properties used to identify a devfile registry service.
type DevfileRegistryService struct {
//Name is the unique Name of the devfile registry.
// Name is the unique Name of the devfile registry.
// +operator-sdk:csv:customresourcedefinitions:type=spec
Name string `json:"name"`
//URL is the unique URL of the devfile registry.
// URL is the unique URL of the devfile registry.
// +operator-sdk:csv:customresourcedefinitions:type=spec
URL string `json:"url"`
//SkipTLSVerify defaults to false. Set to true in a non-production environment to bypass certificate checking
//+optional
// SkipTLSVerify defaults to false. Set to true in a non-production environment to bypass certificate checking
// +operator-sdk:csv:customresourcedefinitions:type=spec
// +optional
SkipTLSVerify bool `json:"skipTLSVerify"`
}

// DevfileRegistriesListStatus defines the observed state of DevfileRegistriesList
type DevfileRegistriesListStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
//Status shows the state of this CR's devfile registry list. If registries are no longer reachable, they will be listed here
Status string `json:"status"`

// Conditions shows the state of this CR's devfile registry list. If registries are no longer reachable, they will be listed here
// +operator-sdk:csv:customresourcedefinitions:type=status
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.status",description="The status for the Devfile Registries List"
// +operator-sdk:csv:customresourcedefinitions:resources={{Deployment,v1,devfileregistrieslist-deployment}}

// DevfileRegistriesList is a custom resource where namespace users can add a list of Devfile Registries to allow devfiles to be visible
// at the namespace level. In order to be added to the list, the Devfile Registries must be reachable, supports the Devfile v2.0 spec
Expand Down
30 changes: 15 additions & 15 deletions api/v1alpha1/devfileregistrieslist_webhook.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
Copyright 2022-2023 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
//
//
// Copyright Red Hat
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package v1alpha1

Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/devfileregistrieslist_webhook_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
//
// Copyright 2022-2023 Red Hat, Inc.
// Copyright Red Hat
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 49aad35

Please sign in to comment.