Skip to content

Commit

Permalink
chore: add reuse config & licensing
Browse files Browse the repository at this point in the history
  • Loading branch information
y-eight committed Jan 13, 2025
1 parent 7f51e93 commit a1173b3
Show file tree
Hide file tree
Showing 135 changed files with 400 additions and 1,284 deletions.
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: CC-BY-4.0

name: Bug report
description: File a bug/issue
title: "Bug: "
Expand Down
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: CC-BY-4.0

name: Feature request
description: Suggest an idea for this project
title: "Feature: "
Expand Down
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: CC-BY-4.0

version: 2
updates:
- package-ecosystem: "gomod"
Expand Down
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
SPDX-License-Identifier: CC-BY-4.0
-->

## Motivation

<!-- Explain what motivated you to do these changes -->
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

name: Continuous Integration

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_checks.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

name: E2E - Test checks

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/end2end.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

# This workflow installs 1 instance of sparrow and
# verify the API output

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

name: pre-commit.ci

on: [pull_request]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/prune.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

name: Prune GHCR

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

name: Release

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_sast.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

name: Test - SAST

on:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_unit.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

name: Test - Unit

on:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
Expand Down
4 changes: 4 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
linters-settings:
depguard:
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

project_name: sparrow
snapshot:
name_template: "commit-{{ .ShortCommit }}"
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

project_name: sparrow
builds:
- env: [CGO_ENABLED=0]
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

repos:
- repo: local
hooks:
Expand Down
4 changes: 4 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

* @y-eight @NiklasTreml @puffitos @lvlcn-t
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 Telekom AG
SPDX-License-Identifier: CC-BY-4.0
-->

# Contributing

## Code of conduct
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

FROM alpine:3.21 as prep

RUN apk add --no-cache ca-certificates
Expand Down
2 changes: 1 addition & 1 deletion LICENSES/Apache-2.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Maximilian Schubert, Deutsche Telekom IT GmbH
Copyright 2025 Deutsche Telekom IT GmbH

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 3 additions & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Copyright (c) 2024 Deutsche Telekom IT GmbH.
// SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
//
// SPDX-License-Identifier: Apache-2.0

This project is licensed under Apache License, Version 2.0;
you may not use them except in compliance with the License.
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
SPDX-License-Identifier: CC-BY-4.0
-->

# Sparrow - Infrastructure Monitoring<!-- omit from toc -->

<!-- markdownlint-disable MD033 -->
Expand Down
18 changes: 18 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2024 Deutsche Telekom AG
#
# SPDX-License-Identifier: CC0-1.0

# See https://reuse.software/spec-3.2/#reusetoml for specification
version = 1

[[annotations]]
path = [
".idea/**",
".vscode/**",
"**moq.go",
"docs/**",
"go.sum"
]
precedence = "aggregate"
SPDX-FileCopyrightText = "Deutsche Telekom IT GmbH"
SPDX-License-Identifier = "Apache-2.0"
4 changes: 4 additions & 0 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: v2
name: sparrow
description: A Helm chart to install Sparrow
Expand Down
12 changes: 12 additions & 0 deletions chart/REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-FileCopyrightText: 2024 Deutsche Telekom AG
#
# SPDX-License-Identifier: CC0-1.0

# See https://reuse.software/spec-3.2/#reusetoml for specification
version = 1

[[annotations]]
path = ["templates/**", "README.md"]
precedence = "aggregate"
SPDX-FileCopyrightText = "Deutsche Telekom IT GmbH"
SPDX-License-Identifier = "Apache-2.0"
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

# Default values for sparrow.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
Expand Down
18 changes: 2 additions & 16 deletions cmd/flag.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
// sparrow
// (C) 2024, Deutsche Telekom IT GmbH
// SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
//
// Deutsche Telekom IT GmbH and all other contributors /
// copyright owners license this file to you 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.
// SPDX-License-Identifier: Apache-2.0

package cmd

Expand Down
18 changes: 2 additions & 16 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
// sparrow
// (C) 2023, Deutsche Telekom IT GmbH
// SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
//
// Deutsche Telekom IT GmbH and all other contributors /
// copyright owners license this file to you 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.
// SPDX-License-Identifier: Apache-2.0

package cmd

Expand Down
18 changes: 2 additions & 16 deletions cmd/run.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
// sparrow
// (C) 2023, Deutsche Telekom IT GmbH
// SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
//
// Deutsche Telekom IT GmbH and all other contributors /
// copyright owners license this file to you 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.
// SPDX-License-Identifier: Apache-2.0

package cmd

Expand Down
1 change: 1 addition & 0 deletions docs/sparrow.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ The check results are exposed via an API.

* [sparrow run](sparrow_run.md) - Run sparrow

###### Auto generated by spf13/cobra on 13-Jan-2025
6 changes: 6 additions & 0 deletions docs/sparrow_completion.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
SPDX-License-Identifier: Apache-2.0
-->

## sparrow completion

Generate the autocompletion script for the specified shell
Expand Down
6 changes: 6 additions & 0 deletions docs/sparrow_completion_bash.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
SPDX-License-Identifier: Apache-2.0
-->

## sparrow completion bash

Generate the autocompletion script for bash
Expand Down
6 changes: 6 additions & 0 deletions docs/sparrow_completion_fish.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
SPDX-License-Identifier: Apache-2.0
-->

## sparrow completion fish

Generate the autocompletion script for fish
Expand Down
6 changes: 6 additions & 0 deletions docs/sparrow_completion_powershell.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
SPDX-License-Identifier: Apache-2.0
-->

## sparrow completion powershell

Generate the autocompletion script for powershell
Expand Down
6 changes: 6 additions & 0 deletions docs/sparrow_completion_zsh.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
SPDX-License-Identifier: Apache-2.0
-->

## sparrow completion zsh

Generate the autocompletion script for zsh
Expand Down
1 change: 1 addition & 0 deletions docs/sparrow_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ sparrow run [flags]

* [sparrow](sparrow.md) - Sparrow, the infrastructure monitoring agent

###### Auto generated by spf13/cobra on 13-Jan-2025
3 changes: 3 additions & 0 deletions e2e/traceroute/lab.conf.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions e2e/traceroute/pc1.startup.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions e2e/traceroute/pc2.startup.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions e2e/traceroute/r1.startup.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH

SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions e2e/traceroute/r2.startup.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH

SPDX-License-Identifier: Apache-2.0
4 changes: 4 additions & 0 deletions e2e/traceroute/shared/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

# DNS sparrow is exposed on
name: sparrow.caas-t21.telekom.de

Expand Down
Loading

0 comments on commit a1173b3

Please sign in to comment.