Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release changes for OLM validation #49

Merged
merged 17 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading