Skip to content

Commit

Permalink
Update license header (#1582)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Apr 23, 2021
1 parent 0bdded9 commit ea232e4
Show file tree
Hide file tree
Showing 320 changed files with 328 additions and 4,664 deletions.
File renamed without changes.
19 changes: 9 additions & 10 deletions Makefile
@@ -1,5 +1,4 @@
# Copyright 2019 AppsCode Inc.
# Copyright 2016 The Kubernetes Authors.
# Copyright AppsCode Inc. and Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -192,7 +191,7 @@ clientset:
# Generate openapi schema
.PHONY: openapi
openapi: $(addprefix openapi-, $(subst :,_, $(API_GROUPS)))
@echo "Generating api/openapi-spec/swagger.json"
@echo "Generating openapi/swagger.json"
@docker run --rm \
-u $$(id -u):$$(id -g) \
-v /tmp:/.cache \
Expand All @@ -207,7 +206,7 @@ openapi: $(addprefix openapi-, $(subst :,_, $(API_GROUPS)))

openapi-%:
@echo "Generating openapi schema for $(subst _,/,$*)"
@mkdir -p api/api-rules
@mkdir -p .config/api-rules
@docker run --rm \
-u $$(id -u):$$(id -g) \
-v /tmp:/.cache \
Expand All @@ -221,7 +220,7 @@ openapi-%:
--go-header-file "./hack/license/go.txt" \
--input-dirs "$(GO_PKG)/$(REPO)/apis/$(subst _,/,$*),k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/api/resource,k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/util/intstr,k8s.io/apimachinery/pkg/version,k8s.io/api/core/v1,k8s.io/api/apps/v1,kmodules.xyz/monitoring-agent-api/api/v1,k8s.io/api/rbac/v1" \
--output-package "$(GO_PKG)/$(REPO)/apis/$(subst _,/,$*)" \
--report-filename api/api-rules/violation_exceptions.list
--report-filename .config/api-rules/violation_exceptions.list

# Generate CRD manifests
.PHONY: gen-crds
Expand All @@ -238,20 +237,20 @@ gen-crds:
controller-gen \
$(CRD_OPTIONS) \
paths="./apis/..." \
output:crd:artifacts:config=api/crds
output:crd:artifacts:config=crds

crds_to_patch := voyager.appscode.com_ingresses.yaml

.PHONY: patch-crds
patch-crds: $(addprefix patch-crd-, $(crds_to_patch))
patch-crd-%: $(BUILD_DIRS)
@echo "patching $*"
@kubectl patch -f api/crds/$* -p "$$(cat hack/crd-patch.json)" --type=json --local=true -o yaml > bin/$*
@mv bin/$* api/crds/$*
@kubectl patch -f crds/$* -p "$$(cat hack/crd-patch.json)" --type=json --local=true -o yaml > bin/$*
@mv bin/$* crds/$*

.PHONY: label-crds
label-crds: $(BUILD_DIRS)
@for f in api/crds/*.yaml; do \
@for f in crds/*.yaml; do \
echo "applying app.kubernetes.io/name=voyager label to $$f"; \
kubectl label --overwrite -f $$f --local=true -o yaml app.kubernetes.io/name=voyager > bin/crd.yaml; \
mv bin/crd.yaml $$f; \
Expand All @@ -267,7 +266,7 @@ gen-bindata:
--rm \
-u $$(id -u):$$(id -g) \
-v $$(pwd):/src \
-w /src/api/crds \
-w /src/crds \
-v /tmp:/.cache \
--env HTTP_PROXY=$(HTTP_PROXY) \
--env HTTPS_PROXY=$(HTTPS_PROXY) \
Expand Down
4,316 changes: 0 additions & 4,316 deletions api/openapi-spec/swagger.json

This file was deleted.

2 changes: 1 addition & 1 deletion apis/voyager/fuzzer/fuzzer.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/install/install.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/install/pruning_test.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/install/roundtrip_test.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/register.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/annotations.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/annotations_test.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 2 additions & 1 deletion apis/voyager/v1beta1/certificate.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,7 @@ 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.
*/

package v1beta1

import (
Expand Down
3 changes: 2 additions & 1 deletion apis/voyager/v1beta1/constants.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,7 @@ 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.
*/

package v1beta1

const (
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/conversion.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
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: 2 additions & 2 deletions apis/voyager/v1beta1/crd.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,7 @@ limitations under the License.
package v1beta1

import (
"voyagermesh.dev/voyager/api/crds"
"voyagermesh.dev/voyager/crds"

"kmodules.xyz/client-go/apiextensions"
)
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/diff.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/diff_test.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/dns_resolver.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 2 additions & 1 deletion apis/voyager/v1beta1/doc.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,7 @@ 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.
*/

// Package v1beta1 is the v1beta1 version of the API.

// +k8s:deepcopy-gen=package,register
Expand Down
3 changes: 2 additions & 1 deletion apis/voyager/v1beta1/ingress.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,7 @@ 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.
*/

package v1beta1

import (
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/monitor.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/objectref.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion apis/voyager/v1beta1/port.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,7 @@ 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.
*/

package v1beta1

import (
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/register.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/types.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/validator.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/validator_test.go
@@ -1,5 +1,5 @@
/*
Copyright The Voyager Authors.
Copyright AppsCode Inc. and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion apis/voyager/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/clientset/versioned/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/clientset/versioned/fake/clientset_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/clientset/versioned/fake/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/clientset/versioned/scheme/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/clientset/versioned/typed/voyager/v1beta1/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ea232e4

Please sign in to comment.