Skip to content

Commit 1d7d0d0

Browse files
committed
Set controller package name
Set package name in the files under internal/controller to have the base name of the directory. This style is recommended by go and certain text editors/IDEs get confused when the names don't match. Signed-off-by: Sunny <[email protected]>
1 parent 653a6de commit 1d7d0d0

11 files changed

+14
-14
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ build/
2828
data
2929

3030
# CRDs for fuzzing tests.
31-
internal/controllers/testdata/crd
31+
internal/controller/testdata/crd

internal/controller/controllers_fuzzer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ See the License for the specific language governing permissions and
1717
limitations under the License.
1818
*/
1919

20-
package controllers
20+
package controller
2121

2222
import (
2323
"context"

internal/controller/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
// DatabaseWriter implementations record the tags for an image repository.
2020
type DatabaseWriter interface {

internal/controller/imagepolicy_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controller/imagepolicy_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controller/imagerepository_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controller/imagerepository_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controller/policy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controller/scan_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"context"

internal/controller/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package controllers
17+
package controller
1818

1919
import (
2020
"fmt"

0 commit comments

Comments
 (0)