Add missing boilerplate

This commit is contained in:
Katrina Verey
2022-04-04 14:24:04 -04:00
parent 3e652d6fea
commit 0fa010c7e7
93 changed files with 279 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package filters package filters
// Package filters collects various implementations // Package filters collects various implementations

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package filtersutil package filtersutil
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
// Package gkesagenerator contains a kio.Filter that that generates a // Package gkesagenerator contains a kio.Filter that that generates a
// iampolicy-related resources for a given cloud provider // iampolicy-related resources for a given cloud provider
package iampolicygenerator package iampolicygenerator

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
// Package nameref contains a kio.Filter implementation of the kustomize // Package nameref contains a kio.Filter implementation of the kustomize
// name reference transformer. // name reference transformer.
package nameref package nameref

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package nameref package nameref
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package nameref package nameref
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package nameref package nameref
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package nameref package nameref
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package patchstrategicmerge package patchstrategicmerge
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
// Package refvar contains a kio.Filter implementation of the kustomize // Package refvar contains a kio.Filter implementation of the kustomize
// refvar transformer (find and replace $(FOO) style variables in strings). // refvar transformer (find and replace $(FOO) style variables in strings).
package refvar package refvar

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package refvar package refvar
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package refvar_test package refvar_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
// Package replacement contains a kio.Filter implementation of the kustomize // Package replacement contains a kio.Filter implementation of the kustomize
// replacement transformer (accepts sources and looks for targets to replace // replacement transformer (accepts sources and looks for targets to replace
// their values with values from the sources). // their values with values from the sources).

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package replicacount package replicacount
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package replicacount package replicacount
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package replicacount package replicacount
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package utils package utils
import "sigs.k8s.io/kustomize/api/konfig" import "sigs.k8s.io/kustomize/api/konfig"

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package utils package utils
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krusty_test package krusty_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package loader package loader
import "fmt" import "fmt"

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package types package types
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package types_test package types_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package types package types
type ReplacementField struct { type ReplacementField struct {

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package types_test package types_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package main package main
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package arguments package arguments
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package edit package edit
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package edit package edit
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package main package main
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package git package git
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package misc package misc
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package misc package misc
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package misc_test package misc_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package misc package misc
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package misc package misc
// TrackedRepo identifies a git remote repository. // TrackedRepo identifies a git remote repository.

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package mod package mod
import ( import (

View File

@@ -1 +1,4 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package mod_test package mod_test

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package repo package repo
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package repo package repo
import "testing" import "testing"

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package repo package repo
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package repo package repo
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package repo package repo
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package repo package repo
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package semver package semver
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package semver package semver
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package semver package semver
type SvBump int type SvBump int

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package utils package utils
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package main package main
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krmfunction package krmfunction
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krmfunction package krmfunction
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package krmfunction package krmfunction
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package funcwrappersrc package funcwrappersrc
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
// This file will be processed and embedded to pluginator. // This file will be processed and embedded to pluginator.
package funcwrappersrc package funcwrappersrc

View File

@@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
set -e set -e
# Builds or removes Go plugin object code. # Builds or removes Go plugin object code.

View File

@@ -1,3 +1,6 @@
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# Usage: From repo root: # Usage: From repo root:
# ./hack/doGoMod.sh tidy # ./hack/doGoMod.sh tidy
# ./hack/doGoMod.sh verify # ./hack/doGoMod.sh verify

View File

@@ -1,4 +1,7 @@
#! /usr/bin/env bash #! /usr/bin/env bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
builtinPlugins=(AnnotationsTransformer \ builtinPlugins=(AnnotationsTransformer \
ConfigMapGenerator \ ConfigMapGenerator \

View File

@@ -1,3 +1,6 @@
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
for f in $(find $1 -name '*.go'); do for f in $(find $1 -name '*.go'); do
echo $f echo $f
# go get golang.org/x/tools/cmd/goimports # go get golang.org/x/tools/cmd/goimports

View File

@@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# If no arguments are given -> Downloads the most recently released # If no arguments are given -> Downloads the most recently released
# kpt binary to your current working directory. # kpt binary to your current working directory.

View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# If no argument is given -> Downloads the most recently released # If no argument is given -> Downloads the most recently released
# kustomize binary to your current working directory. # kustomize binary to your current working directory.

View File

@@ -1,4 +1,7 @@
#! /bin/bash #! /bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
set -e set -e

View File

@@ -1,4 +1,7 @@
#! /bin/bash #! /bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
set -e set -e
echo "You may need to run as root to clean." echo "You may need to run as root to clean."

View File

@@ -1,3 +1,6 @@
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
FROM alpine:latest FROM alpine:latest
ENV BUILD_HOME=/usr/local/build ENV BUILD_HOME=/usr/local/build

View File

@@ -1,4 +1,7 @@
#! /bin/bash #! /bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
IMAGE_LABEL="tshirt_example_build:latest" IMAGE_LABEL="tshirt_example_build:latest"
BUILD_HOME=/usr/local/build BUILD_HOME=/usr/local/build

View File

@@ -1,3 +1,6 @@
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
FROM alpine:latest FROM alpine:latest
ENV BUILD_HOME=/usr/local/build ENV BUILD_HOME=/usr/local/build

View File

@@ -1,4 +1,7 @@
#! /bin/bash #! /bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
IMAGE_LABEL="label_namespace_build:latest" IMAGE_LABEL="label_namespace_build:latest"
BUILD_HOME=/usr/local/build BUILD_HOME=/usr/local/build

View File

@@ -1,3 +1,6 @@
#! /bin/bash #! /bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
node ./dist/label_namespace_run.js node ./dist/label_namespace_run.js

View File

@@ -1,3 +1,6 @@
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# Build the kubectl integration PR # Build the kubectl integration PR
# Merge pull request #93861 from sttts/sttts-so-reuseaddr-kube # Merge pull request #93861 from sttts/sttts-so-reuseaddr-kube

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
// +build tools // +build tools
// This package imports things required by build scripts, to force `go mod` to see them as dependencies // This package imports things required by build scripts, to force `go mod` to see them as dependencies

View File

@@ -1,3 +1,6 @@
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# Report how kustomize and the plugins use the API module. # Report how kustomize and the plugins use the API module.
# #
# Usage: # Usage:

View File

@@ -1,3 +1,6 @@
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# build # build
FROM golang:alpine as builder FROM golang:alpine as builder
ARG VERSION ARG VERSION

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package remove package remove
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package remove_test package remove_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package fetch package fetch
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2022 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package main_test package main_test
import ( import (

View File

@@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# #
# To test the release process, this script attempts # To test the release process, this script attempts
# to use a Google cloudbuild configuration to create # to use a Google cloudbuild configuration to create

View File

@@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# #
# This script is called by Kustomize's Cloud Build release pipeline. # This script is called by Kustomize's Cloud Build release pipeline.
# It installs jq (required for release note construction) # It installs jq (required for release note construction)

View File

@@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# #
# Builds a PR-oriented changelog from the git history for the given module. # Builds a PR-oriented changelog from the git history for the given module.
# #

View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
function createBranch { function createBranch {
branch=$1 branch=$1

View File

@@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
# #
# Builds and optionally releases the specified module # Builds and optionally releases the specified module
# #