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 25, 2024
1 parent e0e454b commit dd6df79
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

Check failure on line 2 in pkg/reconciler/integrationsource/resources/containersource.go

View workflow job for this annotation

GitHub Actions / style / Golang / Boilerplate Check (go)

[Go headers] reported by reviewdog 🐶 found mismatched boilerplate lines: Raw Output: pkg/reconciler/integrationsource/resources/containersource.go:2: found mismatched boilerplate lines: {[]string}[0]: -: "Copyright 2024 The Knative Authors" +: " Copyright 2024 The Knative Authors" {[]string}[2]: -: `Licensed under the Apache License, Version 2.0 (the "License");` +: ` Licensed under the Apache License, Version 2.0 (the "License");` {[]string}[3]: -: "you may not use this file except in compliance with the License." +: " you may not use this file except in compliance with the License." {[]string}[4]: -: "You may obtain a copy of the License at" +: " You may obtain a copy of the License at" {[]string}[6]: -: "\thttp://www.apache.org/licenses/LICENSE-2.0" +: " \thttp://www.apache.org/licenses/LICENSE-2.0" {[]string}[8]: -: "Unless required by applicable law or agreed to in writing, software" +: " Unless required by applicable law or agreed to in writing, software" {[]string}[9]: -: `distributed under the License is distributed on an "AS IS" BASIS,` +: ` distributed under the License is distributed on an "AS IS" BASIS,` {[]string}[10]: -: "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." +: " WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." {[]string}[11]: -: "See the License for the specific language governing permissions and" +: " See the License for the specific language governing permissions and" {[]string}[12]: -: "limitations under the License." +: " limitations under the License."
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 dd6df79

Please sign in to comment.