diff --git a/controllers/comparators/clusterrolebinding_comparator.go b/controllers/comparators/clusterrolebinding_comparator.go index 53b456f9..9468123c 100644 --- a/controllers/comparators/clusterrolebinding_comparator.go +++ b/controllers/comparators/clusterrolebinding_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/networkpolicy_comparator.go b/controllers/comparators/networkpolicy_comparator.go index dc728d20..3b0717ee 100644 --- a/controllers/comparators/networkpolicy_comparator.go +++ b/controllers/comparators/networkpolicy_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/peerAuthentication_comparator.go b/controllers/comparators/peerAuthentication_comparator.go index 371e08c8..251f766f 100644 --- a/controllers/comparators/peerAuthentication_comparator.go +++ b/controllers/comparators/peerAuthentication_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/podmonitor_comparator.go b/controllers/comparators/podmonitor_comparator.go index 56f533c3..e36f60ae 100644 --- a/controllers/comparators/podmonitor_comparator.go +++ b/controllers/comparators/podmonitor_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/resourcecomparator.go b/controllers/comparators/resourcecomparator.go index c69037c9..ecda1fb6 100644 --- a/controllers/comparators/resourcecomparator.go +++ b/controllers/comparators/resourcecomparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/rolebinding_comparator.go b/controllers/comparators/rolebinding_comparator.go index 364d2e11..e1bca166 100644 --- a/controllers/comparators/rolebinding_comparator.go +++ b/controllers/comparators/rolebinding_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/route_comparator.go b/controllers/comparators/route_comparator.go index 2d27c1fe..9c1fa4b7 100644 --- a/controllers/comparators/route_comparator.go +++ b/controllers/comparators/route_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/service_comparator.go b/controllers/comparators/service_comparator.go index e6363119..f4032d1a 100644 --- a/controllers/comparators/service_comparator.go +++ b/controllers/comparators/service_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/serviceaccount_comparator.go b/controllers/comparators/serviceaccount_comparator.go index bf785270..f7a0c398 100644 --- a/controllers/comparators/serviceaccount_comparator.go +++ b/controllers/comparators/serviceaccount_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/servicemonitor_comparator.go b/controllers/comparators/servicemonitor_comparator.go index 7db1f95f..2ee07a60 100644 --- a/controllers/comparators/servicemonitor_comparator.go +++ b/controllers/comparators/servicemonitor_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/smmr_comparator.go b/controllers/comparators/smmr_comparator.go index c2a7f104..7ad81c66 100644 --- a/controllers/comparators/smmr_comparator.go +++ b/controllers/comparators/smmr_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/comparators/telemetry_comparator.go b/controllers/comparators/telemetry_comparator.go index b0887378..108073e6 100644 --- a/controllers/comparators/telemetry_comparator.go +++ b/controllers/comparators/telemetry_comparator.go @@ -1,3 +1,18 @@ +/* + +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 comparators import ( diff --git a/controllers/constants/constants.go b/controllers/constants/constants.go index cd654cfd..87ea27af 100644 --- a/controllers/constants/constants.go +++ b/controllers/constants/constants.go @@ -1,3 +1,18 @@ +/* + +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 constants const ( diff --git a/controllers/processors/deltaProcessor.go b/controllers/processors/deltaProcessor.go index 8e4196fa..a399972c 100644 --- a/controllers/processors/deltaProcessor.go +++ b/controllers/processors/deltaProcessor.go @@ -1,3 +1,18 @@ +/* + +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 processors import ( diff --git a/controllers/reconcilers/kserve_istio_peerauthentication_reconciler.go b/controllers/reconcilers/kserve_istio_peerauthentication_reconciler.go index 491847d2..7390189a 100644 --- a/controllers/reconcilers/kserve_istio_peerauthentication_reconciler.go +++ b/controllers/reconcilers/kserve_istio_peerauthentication_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,8 +20,8 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" "istio.io/api/security/v1beta1" istiotypes "istio.io/api/type/v1beta1" istiosecv1beta1 "istio.io/client-go/pkg/apis/security/v1beta1" @@ -23,7 +38,7 @@ const ( type KserveIstioPeerAuthenticationReconciler struct { client client.Client scheme *runtime.Scheme - peerAuthenticationHandler components.PeerAuthenticationHandler + peerAuthenticationHandler resources.PeerAuthenticationHandler deltaProcessor processors.DeltaProcessor } @@ -31,7 +46,7 @@ func NewKServeIstioPeerAuthenticationReconciler(client client.Client, scheme *ru return &KserveIstioPeerAuthenticationReconciler{ client: client, scheme: scheme, - peerAuthenticationHandler: components.NewPeerAuthenticationHandler(client), + peerAuthenticationHandler: resources.NewPeerAuthenticationHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/kserve_istio_podmonitor_reconciler.go b/controllers/reconcilers/kserve_istio_podmonitor_reconciler.go index 4b0745cf..895d7e33 100644 --- a/controllers/reconcilers/kserve_istio_podmonitor_reconciler.go +++ b/controllers/reconcilers/kserve_istio_podmonitor_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,8 +20,8 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" v1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -21,7 +36,7 @@ const ( type KserveIstioPodMonitorReconciler struct { client client.Client scheme *runtime.Scheme - podMonitorHandler components.PodMonitorHandler + podMonitorHandler resources.PodMonitorHandler deltaProcessor processors.DeltaProcessor } @@ -29,7 +44,7 @@ func NewKServeIstioPodMonitorReconciler(client client.Client, scheme *runtime.Sc return &KserveIstioPodMonitorReconciler{ client: client, scheme: scheme, - podMonitorHandler: components.NewPodMonitorHandler(client), + podMonitorHandler: resources.NewPodMonitorHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/kserve_istio_servicemonitor_reconciler.go b/controllers/reconcilers/kserve_istio_servicemonitor_reconciler.go index 26969375..029b5231 100644 --- a/controllers/reconcilers/kserve_istio_servicemonitor_reconciler.go +++ b/controllers/reconcilers/kserve_istio_servicemonitor_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,8 +20,8 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" v1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -21,7 +36,7 @@ const ( type KserveIstioServiceMonitorReconciler struct { client client.Client scheme *runtime.Scheme - serviceMonitorHandler components.ServiceMonitorHandler + serviceMonitorHandler resources.ServiceMonitorHandler deltaProcessor processors.DeltaProcessor } @@ -29,7 +44,7 @@ func NewKServeIstioServiceMonitorReconciler(client client.Client, scheme *runtim return &KserveIstioServiceMonitorReconciler{ client: client, scheme: scheme, - serviceMonitorHandler: components.NewServiceMonitorHandler(client), + serviceMonitorHandler: resources.NewServiceMonitorHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/kserve_istio_smmr_reconciler.go b/controllers/reconcilers/kserve_istio_smmr_reconciler.go index 66b246d5..93316935 100644 --- a/controllers/reconcilers/kserve_istio_smmr_reconciler.go +++ b/controllers/reconcilers/kserve_istio_smmr_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,9 +20,9 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/constants" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" @@ -22,7 +37,7 @@ const ( type KserveIstioSMMRReconciler struct { client client.Client scheme *runtime.Scheme - smmrHandler components.ServiceMeshMemberRollHandler + smmrHandler resources.ServiceMeshMemberRollHandler deltaProcessor processors.DeltaProcessor } @@ -30,7 +45,7 @@ func NewKServeIstioSMMRReconciler(client client.Client, scheme *runtime.Scheme) return &KserveIstioSMMRReconciler{ client: client, scheme: scheme, - smmrHandler: components.NewServiceMeshMemberRole(client), + smmrHandler: resources.NewServiceMeshMemberRole(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/kserve_istio_telemetry_reconciler.go b/controllers/reconcilers/kserve_istio_telemetry_reconciler.go index ea34412a..6051efc9 100644 --- a/controllers/reconcilers/kserve_istio_telemetry_reconciler.go +++ b/controllers/reconcilers/kserve_istio_telemetry_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,8 +20,8 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" "istio.io/api/telemetry/v1alpha1" istiotypes "istio.io/api/type/v1beta1" telemetryv1alpha1 "istio.io/client-go/pkg/apis/telemetry/v1alpha1" @@ -23,7 +38,7 @@ const ( type KserveIstioTelemetryReconciler struct { client client.Client scheme *runtime.Scheme - telemetryHandler components.TelemetryHandler + telemetryHandler resources.TelemetryHandler deltaProcessor processors.DeltaProcessor } @@ -31,7 +46,7 @@ func NewKServeIstioTelemetryReconciler(client client.Client, scheme *runtime.Sch return &KserveIstioTelemetryReconciler{ client: client, scheme: scheme, - telemetryHandler: components.NewTelemetryHandler(client), + telemetryHandler: resources.NewTelemetryHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/kserve_metrics_service_reconciler.go b/controllers/reconcilers/kserve_metrics_service_reconciler.go index 4c71aa69..40bb1e3d 100644 --- a/controllers/reconcilers/kserve_metrics_service_reconciler.go +++ b/controllers/reconcilers/kserve_metrics_service_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,8 +20,8 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -23,7 +38,7 @@ const ( type KserveMetricsServiceReconciler struct { client client.Client scheme *runtime.Scheme - serviceHandler components.ServiceHandler + serviceHandler resources.ServiceHandler deltaProcessor processors.DeltaProcessor } @@ -31,7 +46,7 @@ func NewKServeMetricsServiceReconciler(client client.Client, scheme *runtime.Sch return &KserveMetricsServiceReconciler{ client: client, scheme: scheme, - serviceHandler: components.NewServiceHandler(client), + serviceHandler: resources.NewServiceHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/kserve_metrics_servicemonitor_reconciler.go b/controllers/reconcilers/kserve_metrics_servicemonitor_reconciler.go index 361e7d06..7dac357b 100644 --- a/controllers/reconcilers/kserve_metrics_servicemonitor_reconciler.go +++ b/controllers/reconcilers/kserve_metrics_servicemonitor_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,8 +20,8 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" v1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -18,7 +33,7 @@ import ( type KserveMetricsServiceMonitorReconciler struct { client client.Client scheme *runtime.Scheme - serviceMonitorHandler components.ServiceMonitorHandler + serviceMonitorHandler resources.ServiceMonitorHandler deltaProcessor processors.DeltaProcessor } @@ -26,7 +41,7 @@ func NewKServeMetricsServiceMonitorReconciler(client client.Client, scheme *runt return &KserveMetricsServiceMonitorReconciler{ client: client, scheme: scheme, - serviceMonitorHandler: components.NewServiceMonitorHandler(client), + serviceMonitorHandler: resources.NewServiceMonitorHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/kserve_networkpolicy_reconciler.go b/controllers/reconcilers/kserve_networkpolicy_reconciler.go index d9eef8f4..8ac45232 100644 --- a/controllers/reconcilers/kserve_networkpolicy_reconciler.go +++ b/controllers/reconcilers/kserve_networkpolicy_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,8 +20,8 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" "k8s.io/api/networking/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -21,7 +36,7 @@ const ( type KserveNetworkPolicyReconciler struct { client client.Client scheme *runtime.Scheme - networkPolicyHandler components.NetworkPolicyHandler + networkPolicyHandler resources.NetworkPolicyHandler deltaProcessor processors.DeltaProcessor } @@ -29,7 +44,7 @@ func NewKServeNetworkPolicyReconciler(client client.Client, scheme *runtime.Sche return &KserveNetworkPolicyReconciler{ client: client, scheme: scheme, - networkPolicyHandler: components.NewNetworkPolicyHandler(client), + networkPolicyHandler: resources.NewNetworkPolicyHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/kserve_prometheus_rolebinding_reconciler.go b/controllers/reconcilers/kserve_prometheus_rolebinding_reconciler.go index 0fa0bf69..8c01889f 100644 --- a/controllers/reconcilers/kserve_prometheus_rolebinding_reconciler.go +++ b/controllers/reconcilers/kserve_prometheus_rolebinding_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,8 +20,8 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" v1 "k8s.io/api/rbac/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -21,7 +36,7 @@ const ( type KservePrometheusRoleBindingReconciler struct { client client.Client scheme *runtime.Scheme - roleBindingHandler components.RoleBindingHandler + roleBindingHandler resources.RoleBindingHandler deltaProcessor processors.DeltaProcessor } @@ -29,7 +44,7 @@ func NewKServePrometheusRoleBindingReconciler(client client.Client, scheme *runt return &KservePrometheusRoleBindingReconciler{ client: client, scheme: scheme, - roleBindingHandler: components.NewRoleBindingHandler(client), + roleBindingHandler: resources.NewRoleBindingHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/kserve_route_reconciler.go b/controllers/reconcilers/kserve_route_reconciler.go index 4931b23f..22c3f947 100644 --- a/controllers/reconcilers/kserve_route_reconciler.go +++ b/controllers/reconcilers/kserve_route_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -8,9 +23,9 @@ import ( "github.com/kserve/kserve/pkg/constants" "github.com/kserve/kserve/pkg/utils" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" constants2 "github.com/opendatahub-io/odh-model-controller/controllers/constants" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" v1 "github.com/openshift/api/route/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -24,7 +39,7 @@ import ( type KserveRouteReconciler struct { client client.Client scheme *runtime.Scheme - routeHandler components.RouteHandler + routeHandler resources.RouteHandler deltaProcessor processors.DeltaProcessor } @@ -32,7 +47,7 @@ func NewKserveRouteReconciler(client client.Client, scheme *runtime.Scheme) *Kse return &KserveRouteReconciler{ client: client, scheme: scheme, - routeHandler: components.NewRouteHandler(client), + routeHandler: resources.NewRouteHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/mm_clusterrolebinding_reconciler.go b/controllers/reconcilers/mm_clusterrolebinding_reconciler.go index 33e2fb13..e2e35937 100644 --- a/controllers/reconcilers/mm_clusterrolebinding_reconciler.go +++ b/controllers/reconcilers/mm_clusterrolebinding_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( @@ -5,8 +20,8 @@ import ( "github.com/go-logr/logr" kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" v1 "k8s.io/api/rbac/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -17,7 +32,7 @@ import ( type ModelMeshClusterRoleBindingReconciler struct { client client.Client scheme *runtime.Scheme - clusterRoleBindingHandler components.ClusterRoleBindingHandler + clusterRoleBindingHandler resources.ClusterRoleBindingHandler deltaProcessor processors.DeltaProcessor } @@ -25,7 +40,7 @@ func NewModelMeshClusterRoleBindingReconciler(client client.Client, scheme *runt return &ModelMeshClusterRoleBindingReconciler{ client: client, scheme: scheme, - clusterRoleBindingHandler: components.NewClusterRoleBindingHandler(client), + clusterRoleBindingHandler: resources.NewClusterRoleBindingHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/mm_inferenceservice_reconciler.go b/controllers/reconcilers/mm_inferenceservice_reconciler.go index e64520b1..e46a7de8 100644 --- a/controllers/reconcilers/mm_inferenceservice_reconciler.go +++ b/controllers/reconcilers/mm_inferenceservice_reconciler.go @@ -1,3 +1,18 @@ +/* + +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 reconcilers import ( diff --git a/controllers/reconcilers/mm_route_reconciler.go b/controllers/reconcilers/mm_route_reconciler.go index 5b16a94c..f61b56a1 100644 --- a/controllers/reconcilers/mm_route_reconciler.go +++ b/controllers/reconcilers/mm_route_reconciler.go @@ -18,10 +18,11 @@ package reconcilers import ( "context" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" "k8s.io/apimachinery/pkg/runtime" "sort" + "strconv" "github.com/go-logr/logr" kservev1alpha1 "github.com/kserve/kserve/pkg/apis/serving/v1alpha1" @@ -45,7 +46,7 @@ const ( type ModelMeshRouteReconciler struct { client client.Client scheme *runtime.Scheme - routeHandler components.RouteHandler + routeHandler resources.RouteHandler deltaProcessor processors.DeltaProcessor } @@ -53,7 +54,7 @@ func NewModelMeshRouteReconciler(client client.Client, scheme *runtime.Scheme) * return &ModelMeshRouteReconciler{ client: client, scheme: scheme, - routeHandler: components.NewRouteHandler(client), + routeHandler: resources.NewRouteHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } @@ -87,12 +88,12 @@ func (r *ModelMeshRouteReconciler) createDesiredResource(ctx context.Context, lo return nil, err } - enableAuth := true - if desiredServingRuntime.Annotations["enable-auth"] != "true" { + enableAuth := false + if enableAuth, err = strconv.ParseBool(desiredServingRuntime.Annotations["enable-auth"]); err != nil { enableAuth = false } - createRoute := true - if desiredServingRuntime.Annotations["enable-route"] != "true" { + createRoute := false + if createRoute, err = strconv.ParseBool(desiredServingRuntime.Annotations["enable-route"]); err != nil { createRoute = false } diff --git a/controllers/reconcilers/mm_serviceaccount_reconciler.go b/controllers/reconcilers/mm_serviceaccount_reconciler.go index 9d0069d4..618584e7 100644 --- a/controllers/reconcilers/mm_serviceaccount_reconciler.go +++ b/controllers/reconcilers/mm_serviceaccount_reconciler.go @@ -19,8 +19,8 @@ import ( "context" "github.com/go-logr/logr" "github.com/opendatahub-io/odh-model-controller/controllers/comparators" - "github.com/opendatahub-io/odh-model-controller/controllers/components" "github.com/opendatahub-io/odh-model-controller/controllers/processors" + "github.com/opendatahub-io/odh-model-controller/controllers/resources" "k8s.io/apimachinery/pkg/runtime" "sigs.k8s.io/controller-runtime/pkg/client" @@ -38,7 +38,7 @@ const ( type ModelMeshServiceAccountReconciler struct { client client.Client scheme *runtime.Scheme - serviceAccountHandler components.ServiceAccountHandler + serviceAccountHandler resources.ServiceAccountHandler deltaProcessor processors.DeltaProcessor } @@ -46,7 +46,7 @@ func NewModelMeshServiceAccountReconciler(client client.Client, scheme *runtime. return &ModelMeshServiceAccountReconciler{ client: client, scheme: scheme, - serviceAccountHandler: components.NewServiceAccountHandler(client), + serviceAccountHandler: resources.NewServiceAccountHandler(client), deltaProcessor: processors.NewDeltaProcessor(), } } diff --git a/controllers/reconcilers/reconciler.go b/controllers/reconcilers/reconciler.go new file mode 100644 index 00000000..f98c4628 --- /dev/null +++ b/controllers/reconcilers/reconciler.go @@ -0,0 +1,26 @@ +/* + +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 reconcilers + +import ( + "context" + "github.com/go-logr/logr" + kservev1beta1 "github.com/kserve/kserve/pkg/apis/serving/v1beta1" +) + +type Reconciler interface { + Reconcile(ctx context.Context, log logr.Logger, isvc *kservev1beta1.InferenceService) error +} diff --git a/controllers/components/clusterrolebinding.go b/controllers/resources/clusterrolebinding.go similarity index 74% rename from controllers/components/clusterrolebinding.go rename to controllers/resources/clusterrolebinding.go index cc1e3505..fcac4e45 100644 --- a/controllers/components/clusterrolebinding.go +++ b/controllers/resources/clusterrolebinding.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/networkpolicy.go b/controllers/resources/networkpolicy.go similarity index 73% rename from controllers/components/networkpolicy.go rename to controllers/resources/networkpolicy.go index 11ffe06c..28547e66 100644 --- a/controllers/components/networkpolicy.go +++ b/controllers/resources/networkpolicy.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/peerauthentication.go b/controllers/resources/peerauthentication.go similarity index 75% rename from controllers/components/peerauthentication.go rename to controllers/resources/peerauthentication.go index 61f45eca..b45bbb99 100644 --- a/controllers/components/peerauthentication.go +++ b/controllers/resources/peerauthentication.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/podmonitor.go b/controllers/resources/podmonitor.go similarity index 72% rename from controllers/components/podmonitor.go rename to controllers/resources/podmonitor.go index cacda82a..091a9751 100644 --- a/controllers/components/podmonitor.go +++ b/controllers/resources/podmonitor.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/rolebinding.go b/controllers/resources/rolebinding.go similarity index 72% rename from controllers/components/rolebinding.go rename to controllers/resources/rolebinding.go index 58b7f4b3..ef863f00 100644 --- a/controllers/components/rolebinding.go +++ b/controllers/resources/rolebinding.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/route.go b/controllers/resources/route.go similarity index 71% rename from controllers/components/route.go rename to controllers/resources/route.go index c2a09148..96a46fdf 100644 --- a/controllers/components/route.go +++ b/controllers/resources/route.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/service.go b/controllers/resources/service.go similarity index 61% rename from controllers/components/service.go rename to controllers/resources/service.go index 37af9371..c3ac39ff 100644 --- a/controllers/components/service.go +++ b/controllers/resources/service.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/serviceaccount.go b/controllers/resources/serviceaccount.go similarity index 73% rename from controllers/components/serviceaccount.go rename to controllers/resources/serviceaccount.go index f66c493d..659e7b43 100644 --- a/controllers/components/serviceaccount.go +++ b/controllers/resources/serviceaccount.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/servicemonitor.go b/controllers/resources/servicemonitor.go similarity index 74% rename from controllers/components/servicemonitor.go rename to controllers/resources/servicemonitor.go index bf11fa93..6ba078dd 100644 --- a/controllers/components/servicemonitor.go +++ b/controllers/resources/servicemonitor.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/smmr.go b/controllers/resources/smmr.go similarity index 77% rename from controllers/components/smmr.go rename to controllers/resources/smmr.go index c2e11b07..ccd55745 100644 --- a/controllers/components/smmr.go +++ b/controllers/resources/smmr.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context" diff --git a/controllers/components/telemetry.go b/controllers/resources/telemetry.go similarity index 74% rename from controllers/components/telemetry.go rename to controllers/resources/telemetry.go index d2559e31..5dbbeceb 100644 --- a/controllers/components/telemetry.go +++ b/controllers/resources/telemetry.go @@ -1,4 +1,19 @@ -package components +/* + +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 resources import ( "context"