Skip to content

Commit

Permalink
Merge pull request #373 from sergenyalcin/move-license-statements-tmpl
Browse files Browse the repository at this point in the history
Move license statements to separate files (for tmpl files) to prevent license statement duplication
  • Loading branch information
sergenyalcin authored Mar 14, 2024
2 parents 363f66c + 2d71c5b commit 84abd05
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 32 deletions.
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/controller.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/controller.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/conversion_hub.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/conversion_hub.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/conversion_spoke.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/conversion_spoke.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/crd_types.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/crd_types.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/groupversion_info.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/groupversion_info.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/register.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/register.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/setup.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

package controller

import (
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/setup.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0
4 changes: 0 additions & 4 deletions pkg/pipeline/templates/terraformed.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0

{{ .Header }}

{{ .GenStatement }}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipeline/templates/terraformed.go.tmpl.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>

SPDX-License-Identifier: Apache-2.0

0 comments on commit 84abd05

Please sign in to comment.