Skip to content

Commit

Permalink
Merge pull request #375 from crossplane/backport-373-to-release-1.1
Browse files Browse the repository at this point in the history
[Backport release-1.1] Move license statements to separate files (for tmpl files) to prevent license statement duplication
  • Loading branch information
sergenyalcin authored Mar 14, 2024
2 parents bd41429 + 023d327 commit 8f51d53
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 8f51d53

Please sign in to comment.