Skip to content

Commit

Permalink
Fixing linters
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
  • Loading branch information
matzew committed Oct 25, 2024
1 parent e0e454b commit 99a61c3
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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,
Expand Down
30 changes: 0 additions & 30 deletions pkg/reconciler/integrationsource/resources/labels.go

This file was deleted.

16 changes: 16 additions & 0 deletions test/rekt/features/integrationsource/features.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
16 changes: 16 additions & 0 deletions test/rekt/resources/integrationsource/integrationsource.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 99a61c3

Please sign in to comment.