Skip to content

Commit

Permalink
Fixing linters
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
matzew committed Oct 31, 2024
1 parent a49d36e commit ee8d39d
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 41 deletions.
2 changes: 0 additions & 2 deletions pkg/reconciler/integrationsource/integrationsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ const (
// Name of the corev1.Events emitted from the reconciliation process
containerSourceCreated = "ContainerSourceCreated"
containerSourceUpdated = "ContainerSourceUpdated"

component = "integrationsource"
)

// Reconciler implements controller.Reconciler for ContainerSource resources.
Expand Down
25 changes: 17 additions & 8 deletions pkg/reconciler/integrationsource/resources/containersource.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 resources

import (
Expand All @@ -19,7 +35,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 +216,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 ee8d39d

Please sign in to comment.