diff --git a/pkg/reconciler/integrationsource/resources/containersource.go b/pkg/reconciler/integrationsource/resources/containersource.go index 85e044ad3a3..78e2f587d8f 100644 --- a/pkg/reconciler/integrationsource/resources/containersource.go +++ b/pkg/reconciler/integrationsource/resources/containersource.go @@ -19,7 +19,7 @@ func NewContainerSource(source *v1alpha1.IntegrationSource) *sourcesv1.Container OwnerReferences: []metav1.OwnerReference{ *kmeta.NewControllerRef(source), }, - Name: "kn-connector-source-" + source.Name, + Name: source.Name, Namespace: source.Namespace, }, Spec: sourcesv1.ContainerSourceSpec{ @@ -200,13 +200,6 @@ func selectImage(source *v1alpha1.IntegrationSource) string { return "" } -func makeBasicEnvVar(name, value string) corev1.EnvVar { - return corev1.EnvVar{ - Name: name, - Value: value, - } -} - func makeSecretEnvVar(name, key, secretName string) corev1.EnvVar { return corev1.EnvVar{ Name: name, diff --git a/pkg/reconciler/integrationsource/resources/labels.go b/pkg/reconciler/integrationsource/resources/labels.go deleted file mode 100644 index 1b51b8b9f57..00000000000 --- a/pkg/reconciler/integrationsource/resources/labels.go +++ /dev/null @@ -1,30 +0,0 @@ -/* -Copyright 2019 The Knative Authors - -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 - -const ( - controllerAgentName = "kamelet-source-controller" -) - -func Labels(name string) map[string]string { - return map[string]string{ - - "app.kubernetes.io/name": name, - "app.kubernetes.io/version": "1.0-SNAPSHOT", - "eventing.knative.dev/connector": "timer-source", - } -} diff --git a/test/rekt/features/integrationsource/features.go b/test/rekt/features/integrationsource/features.go index a6578f79b61..583ea67c23c 100644 --- a/test/rekt/features/integrationsource/features.go +++ b/test/rekt/features/integrationsource/features.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Knative Authors + +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 integrationsource import ( diff --git a/test/rekt/resources/integrationsource/integrationsource.go b/test/rekt/resources/integrationsource/integrationsource.go index 231453744a0..0c6821b3ea4 100644 --- a/test/rekt/resources/integrationsource/integrationsource.go +++ b/test/rekt/resources/integrationsource/integrationsource.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Knative Authors + +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 integrationsource import ( diff --git a/test/rekt/resources/integrationsource/integrationsource.yaml b/test/rekt/resources/integrationsource/integrationsource.yaml index c5406b66307..b10d3d2076e 100644 --- a/test/rekt/resources/integrationsource/integrationsource.yaml +++ b/test/rekt/resources/integrationsource/integrationsource.yaml @@ -1,4 +1,4 @@ -# Copyright 2021 The Knative Authors +# Copyright 2024 The Knative Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.