فهرست منبع

Merge pull request #344 from squat/update_licenses

licenses: update licenses for 2023
Lucas Servén Marín 3 سال پیش
والد
کامیت
f3986e3097
32فایلهای تغییر یافته به همراه480 افزوده شده و 509 حذف شده
  1. 11 11
      .github/workflows/ci.yml
  2. 1 1
      .github/workflows/release.yaml
  3. 1 1
      Makefile
  4. 2 2
      cmd/kg/webhook.go
  5. 1 1
      pkg/k8s/apis/kilo/v1alpha1/zz_generated.deepcopy.go
  6. 1 1
      pkg/k8s/clientset/versioned/clientset.go
  7. 1 1
      pkg/k8s/clientset/versioned/doc.go
  8. 1 1
      pkg/k8s/clientset/versioned/fake/clientset_generated.go
  9. 1 1
      pkg/k8s/clientset/versioned/fake/doc.go
  10. 8 8
      pkg/k8s/clientset/versioned/fake/register.go
  11. 1 1
      pkg/k8s/clientset/versioned/scheme/doc.go
  12. 8 8
      pkg/k8s/clientset/versioned/scheme/register.go
  13. 1 1
      pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/doc.go
  14. 1 1
      pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/fake/doc.go
  15. 1 1
      pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/fake/fake_kilo_client.go
  16. 1 1
      pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/fake/fake_peer.go
  17. 1 1
      pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/generated_expansion.go
  18. 1 1
      pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/kilo_client.go
  19. 1 1
      pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/peer.go
  20. 1 1
      pkg/k8s/informers/factory.go
  21. 1 1
      pkg/k8s/informers/generic.go
  22. 1 1
      pkg/k8s/informers/internalinterfaces/factory_interfaces.go
  23. 1 1
      pkg/k8s/informers/kilo/interface.go
  24. 1 1
      pkg/k8s/informers/kilo/v1alpha1/interface.go
  25. 1 1
      pkg/k8s/informers/kilo/v1alpha1/peer.go
  26. 1 1
      pkg/k8s/listers/kilo/v1alpha1/expansion_generated.go
  27. 1 1
      pkg/k8s/listers/kilo/v1alpha1/peer.go
  28. 3 3
      pkg/mesh/cni.go
  29. 2 3
      pkg/mesh/mesh.go
  30. 1 0
      website/docs/README
  31. 2 2
      website/package.json
  32. 420 449
      website/yarn.lock

+ 11 - 11
.github/workflows/ci.yml

@@ -19,7 +19,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Vendor
       run: |
         make vendor
@@ -32,7 +32,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Build
       run: make
 
@@ -43,7 +43,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Build docs
       run: |
         make gen-docs
@@ -56,7 +56,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Build kg and kgctl for all Linux Architectures
       run: make all-build
 
@@ -67,7 +67,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Build kgctl for Darwin amd64
       run: make OS=darwin ARCH=amd64
     - name: Build kgctl for Darwin arm64
@@ -80,7 +80,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Build kgctl for Windows
       run: make OS=windows
 
@@ -91,7 +91,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Run Unit Tests
       run: make unit
 
@@ -102,7 +102,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Run e2e Tests
       run: make e2e
 
@@ -113,7 +113,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Lint Code
       run: make lint
 
@@ -124,7 +124,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Enable Experimental Docker CLI
       run: |
         echo $'{\n  "experimental": true\n}' | sudo tee /etc/docker/daemon.json
@@ -154,7 +154,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Enable Experimental Docker CLI
       run: |
         echo $'{\n  "experimental": true\n}' | sudo tee /etc/docker/daemon.json

+ 1 - 1
.github/workflows/release.yaml

@@ -10,7 +10,7 @@ jobs:
     - name: Set up Go
       uses: actions/setup-go@v2
       with:
-        go-version: 1.18
+        go-version: 1.19
     - name: Build kgctl Binaries to Be Released
       run: make release
     - name: Publish Release

+ 1 - 1
Makefile

@@ -45,7 +45,7 @@ KUBECTL_BINARY := $(shell pwd)/bin/kubectl
 BASH_UNIT := $(shell pwd)/bin/bash_unit
 BASH_UNIT_FLAGS :=
 
-BUILD_IMAGE ?= golang:1.18.0
+BUILD_IMAGE ?= golang:1.19.0
 BASE_IMAGE ?= alpine:3.15
 
 build: $(BINS)

+ 2 - 2
cmd/kg/webhook.go

@@ -19,7 +19,7 @@ import (
 	"encoding/json"
 	"errors"
 	"fmt"
-	"io/ioutil"
+	"io"
 	"net/http"
 	"os"
 	"syscall"
@@ -92,7 +92,7 @@ var (
 
 func validationHandler(w http.ResponseWriter, r *http.Request) {
 	level.Debug(logger).Log("msg", "handling request", "source", r.RemoteAddr)
-	body, err := ioutil.ReadAll(r.Body)
+	body, err := io.ReadAll(r.Body)
 	if err != nil {
 		errorCounter.Inc()
 		level.Error(logger).Log("err", "failed to parse body from incoming request", "source", r.RemoteAddr)

+ 1 - 1
pkg/k8s/apis/kilo/v1alpha1/zz_generated.deepcopy.go

@@ -1,7 +1,7 @@
 //go:build !ignore_autogenerated
 // +build !ignore_autogenerated
 
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/clientset.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/doc.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/fake/clientset_generated.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/fake/doc.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 8 - 8
pkg/k8s/clientset/versioned/fake/register.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -35,14 +35,14 @@ var localSchemeBuilder = runtime.SchemeBuilder{
 // AddToScheme adds all types of this clientset into the given scheme. This allows composition
 // of clientsets, like in:
 //
-//   import (
-//     "k8s.io/client-go/kubernetes"
-//     clientsetscheme "k8s.io/client-go/kubernetes/scheme"
-//     aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
-//   )
+//	import (
+//	  "k8s.io/client-go/kubernetes"
+//	  clientsetscheme "k8s.io/client-go/kubernetes/scheme"
+//	  aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
+//	)
 //
-//   kclientset, _ := kubernetes.NewForConfig(c)
-//   _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
+//	kclientset, _ := kubernetes.NewForConfig(c)
+//	_ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
 //
 // After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
 // correctly.

+ 1 - 1
pkg/k8s/clientset/versioned/scheme/doc.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 8 - 8
pkg/k8s/clientset/versioned/scheme/register.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -35,14 +35,14 @@ var localSchemeBuilder = runtime.SchemeBuilder{
 // AddToScheme adds all types of this clientset into the given scheme. This allows composition
 // of clientsets, like in:
 //
-//   import (
-//     "k8s.io/client-go/kubernetes"
-//     clientsetscheme "k8s.io/client-go/kubernetes/scheme"
-//     aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
-//   )
+//	import (
+//	  "k8s.io/client-go/kubernetes"
+//	  clientsetscheme "k8s.io/client-go/kubernetes/scheme"
+//	  aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
+//	)
 //
-//   kclientset, _ := kubernetes.NewForConfig(c)
-//   _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
+//	kclientset, _ := kubernetes.NewForConfig(c)
+//	_ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
 //
 // After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
 // correctly.

+ 1 - 1
pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/doc.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/fake/doc.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/fake/fake_kilo_client.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/fake/fake_peer.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/generated_expansion.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/kilo_client.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/clientset/versioned/typed/kilo/v1alpha1/peer.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/informers/factory.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/informers/generic.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/informers/internalinterfaces/factory_interfaces.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/informers/kilo/interface.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/informers/kilo/v1alpha1/interface.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/informers/kilo/v1alpha1/peer.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/listers/kilo/v1alpha1/expansion_generated.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 1 - 1
pkg/k8s/listers/kilo/v1alpha1/peer.go

@@ -1,4 +1,4 @@
-// Copyright 2022 the Kilo authors
+// Copyright 2023 the Kilo authors
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.

+ 3 - 3
pkg/mesh/cni.go

@@ -21,8 +21,8 @@ import (
 	"encoding/json"
 	"errors"
 	"fmt"
-	"io/ioutil"
 	"net"
+	"os"
 
 	"github.com/containernetworking/cni/libcni"
 	"github.com/containernetworking/cni/pkg/types"
@@ -109,7 +109,7 @@ func getCIDRFromCNI(path string) (*net.IPNet, error) {
 
 // setCIDRInCNI sets the CIDR allocated to the node in the CNI configuration file.
 func setCIDRInCNI(path string, cidr *net.IPNet) error {
-	f, err := ioutil.ReadFile(path)
+	f, err := os.ReadFile(path)
 	if err != nil {
 		return fmt.Errorf("failed to read CNI config list file: %v", err)
 	}
@@ -155,7 +155,7 @@ func setCIDRInCNI(path string, cidr *net.IPNet) error {
 	if err != nil {
 		return fmt.Errorf("failed to marshal CNI config: %v", err)
 	}
-	if err := ioutil.WriteFile(path, buf, 0644); err != nil {
+	if err := os.WriteFile(path, buf, 0644); err != nil {
 		return fmt.Errorf("failed to write CNI config file to disk: %v", err)
 	}
 	return nil

+ 2 - 3
pkg/mesh/mesh.go

@@ -21,7 +21,6 @@ import (
 	"bytes"
 	"context"
 	"fmt"
-	"io/ioutil"
 	"net"
 	"os"
 	"sync"
@@ -92,7 +91,7 @@ func New(backend Backend, enc encapsulation.Encapsulator, granularity Granularit
 	if err := os.MkdirAll(kiloPath, 0700); err != nil {
 		return nil, fmt.Errorf("failed to create directory to store configuration: %v", err)
 	}
-	privateB, err := ioutil.ReadFile(privateKeyPath)
+	privateB, err := os.ReadFile(privateKeyPath)
 	if err != nil && !os.IsNotExist(err) {
 		return nil, fmt.Errorf("failed to read private key file: %v", err)
 	}
@@ -108,7 +107,7 @@ func New(backend Backend, enc encapsulation.Encapsulator, granularity Granularit
 	if err != nil {
 		return nil, err
 	}
-	if err := ioutil.WriteFile(privateKeyPath, []byte(private.String()), 0600); err != nil {
+	if err := os.WriteFile(privateKeyPath, []byte(private.String()), 0600); err != nil {
 		return nil, fmt.Errorf("failed to write private key to disk: %v", err)
 	}
 	cniIndex, err := cniDeviceIndex()

+ 1 - 0
website/docs/README

@@ -1,5 +1,6 @@
 ---
 id: introduction
+slug: /introduction
 title: Introduction
 hide_title: true
 custom_edit_url: https://github.com/squat/kilo/edit/master/README.md

+ 2 - 2
website/package.json

@@ -9,8 +9,8 @@
     "deploy": "docusaurus deploy"
   },
   "dependencies": {
-    "@docusaurus/core": "^2.0.0-beta.3",
-    "@docusaurus/preset-classic": "^2.0.0-beta.3",
+    "@docusaurus/core": "^2.2.0",
+    "@docusaurus/preset-classic": "^2.2.0",
     "classnames": "^2.3.1",
     "react": "^17.0.2",
     "react-dom": "^17.0.2"

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 420 - 449
website/yarn.lock


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است