Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for release v0.0.11 #17

Merged
merged 1 commit into from
Dec 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ require (
k8s.io/apimachinery v0.25.1
k8s.io/client-go v0.25.1
k8s.io/klog/v2 v2.80.1
kmodules.xyz/client-go v0.25.0
kmodules.xyz/client-go v0.25.12
sigs.k8s.io/yaml v1.3.0
voyagermesh.dev/apimachinery v0.6.1-0.20220918015950-11bcee3c34e0
voyagermesh.dev/apimachinery v0.7.0
)

require (
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ k8s.io/kube-openapi v0.0.0-20220803164354-a70c9af30aea h1:3QOH5+2fGsY8e1qf+GIFpg
k8s.io/kube-openapi v0.0.0-20220803164354-a70c9af30aea/go.mod h1:C/N6wCaBHeBHkHUesQOQy2/MZqGgMAFPqGsGQLdbZBU=
k8s.io/utils v0.0.0-20220823124924-e9cbc92d1a73 h1:H9TCJUUx+2VA0ZiD9lvtaX8fthFsMoD+Izn93E/hm8U=
k8s.io/utils v0.0.0-20220823124924-e9cbc92d1a73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
kmodules.xyz/client-go v0.25.0 h1:ItlaPAwQEzmle33ieIvT+zSIlZ0sZpwxgtCBD8OJnuE=
kmodules.xyz/client-go v0.25.0/go.mod h1:PQAVWlXoHmk/OXqIuUz3xEW5H04uidiLwVyGX0yYnBQ=
kmodules.xyz/client-go v0.25.12 h1:Ym/YUZzA/B3n+4v9dRw77Z2O06cvzzQcpqwRzJKgCQI=
kmodules.xyz/client-go v0.25.12/go.mod h1:6VSRxDP2UqoWUcF0aSpWu3m/56bEUzuuvZUrAxSFBr8=
kmodules.xyz/monitoring-agent-api v0.25.0 h1:RU9RBeCqQdoS381xXy8cM1aqT+7qmtuPI3KxNQoX16Y=
kmodules.xyz/monitoring-agent-api v0.25.0/go.mod h1:RH5f/W9eCiW+KTblBIh8MZkjCWdtMQ8MuzCBMfgkynM=
kmodules.xyz/webhook-runtime v0.25.0 h1:NKNgu0C1I8kUovQ+SVozs/q7cjq8zgpSjLfJf9CxUtk=
Expand All @@ -638,5 +638,5 @@ sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kF
sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ihdVs8cGKBraizNC69E=
sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
voyagermesh.dev/apimachinery v0.6.1-0.20220918015950-11bcee3c34e0 h1:VAaw3y1ypIXQxHlIWzwJrcwvocwxZyi6EMdIGzAg1P4=
voyagermesh.dev/apimachinery v0.6.1-0.20220918015950-11bcee3c34e0/go.mod h1:YvMSSffx308fggyb+8BQsP3oPkKpaF8S6CpR9BW5Ik8=
voyagermesh.dev/apimachinery v0.7.0 h1:l2RPseQCPKkYC31MtZUBja7Bhe9s12eF/iq3tuJijJk=
voyagermesh.dev/apimachinery v0.7.0/go.mod h1:TsnPbWLsTzcn28rqRBDe1T1LvrGeOZTyTJ1gZqRzFVA=
2 changes: 1 addition & 1 deletion vendor/kmodules.xyz/client-go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
BASEIMAGE_PROD ?= gcr.io/distroless/static-debian11
BASEIMAGE_DBG ?= debian:bullseye

GO_VERSION ?= 1.18
GO_VERSION ?= 1.19
BUILD_IMAGE ?= appscode/golang-dev:$(GO_VERSION)

OUTBIN = bin/$(OS)_$(ARCH)/$(BIN)
Expand Down
13 changes: 7 additions & 6 deletions vendor/kmodules.xyz/client-go/meta/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ package meta
import (
"crypto/x509"
"errors"
"io/ioutil"
"io"
"net/http"
"os"
"strings"
"time"

Expand All @@ -30,7 +31,7 @@ import (
// ref: https://cloud.google.com/compute/docs/storing-retrieving-metadata
func TestGKE() (string, error) {
// ref: https://github.com/kubernetes/kubernetes/blob/a0f94123616c275f94e7a5b680d60d6f34e92f37/pkg/credentialprovider/gcp/metadata.go#L115
data, err := ioutil.ReadFile("/sys/class/dmi/id/product_name")
data, err := os.ReadFile("/sys/class/dmi/id/product_name")
if err != nil {
return "", err
}
Expand All @@ -50,7 +51,7 @@ func TestGKE() (string, error) {
return "", err
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return "", err
}
Expand Down Expand Up @@ -79,13 +80,13 @@ func TestAKS(cert *x509.Certificate) (string, error) {

// ref: https://cloud.google.com/compute/docs/storing-retrieving-metadata
func isAKS() error {
data, err := ioutil.ReadFile("/sys/class/dmi/id/sys_vendor")
data, err := os.ReadFile("/sys/class/dmi/id/sys_vendor")
if err != nil {
return err
}
sysVendor := strings.TrimSpace(string(data))

data, err = ioutil.ReadFile("/sys/class/dmi/id/product_name")
data, err = os.ReadFile("/sys/class/dmi/id/product_name")
if err != nil {
return err
}
Expand All @@ -110,7 +111,7 @@ func TestEKS(cert *x509.Certificate) (string, error) {

// ref: https://cloud.google.com/compute/docs/storing-retrieving-metadata
func isEKS() error {
data, err := ioutil.ReadFile("/sys/class/dmi/id/sys_vendor")
data, err := os.ReadFile("/sys/class/dmi/id/sys_vendor")
if err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion vendor/kmodules.xyz/client-go/meta/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ func UnmarshalFromJSON(data []byte, gv schema.GroupVersion) (runtime.Object, err
//
// WARNING: `json` tags are not respected when struct converted to map[string]interface{}
// WARNING: Embedded structs are not decoded properly: https://github.com/mitchellh/mapstructure/pull/80
//
func Decode(input interface{}, output interface{}) error {
config := &mapstructure.DecoderConfig{
DecodeHook: StringToQuantityHookFunc(),
Expand Down
3 changes: 1 addition & 2 deletions vendor/kmodules.xyz/client-go/meta/incluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
Expand All @@ -44,7 +43,7 @@ func PodNamespace() string {
return ns
}

if data, err := ioutil.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace"); err == nil {
if data, err := os.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace"); err == nil {
if ns := strings.TrimSpace(string(data)); len(ns) > 0 {
return ns
}
Expand Down
4 changes: 2 additions & 2 deletions vendor/kmodules.xyz/client-go/meta/ipv6.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package meta

import (
"context"
"io/ioutil"
"os"
"strings"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand All @@ -43,7 +43,7 @@ func IPv6EnabledInCluster(kc kubernetes.Interface) (bool, error) {
}

func IPv6EnabledInKernel() (bool, error) {
content, err := ioutil.ReadFile("/sys/module/ipv6/parameters/disable")
content, err := os.ReadFile("/sys/module/ipv6/parameters/disable")
if err != nil {
return false, err
}
Expand Down
3 changes: 1 addition & 2 deletions vendor/kmodules.xyz/client-go/tools/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"bytes"
"io"
"io/fs"
"io/ioutil"
"os"
"path/filepath"
"sort"
Expand Down Expand Up @@ -91,7 +90,7 @@ func ProcessPath(root string, fn ResourceFn) error {
return nil
}

data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
return errors.Wrap(err, path)
}
Expand Down
4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ k8s.io/utils/internal/third_party/forked/golang/net
k8s.io/utils/net
k8s.io/utils/pointer
k8s.io/utils/strings/slices
# kmodules.xyz/client-go v0.25.0
# kmodules.xyz/client-go v0.25.12
## explicit; go 1.18
kmodules.xyz/client-go
kmodules.xyz/client-go/apiextensions
Expand Down Expand Up @@ -543,7 +543,7 @@ sigs.k8s.io/structured-merge-diff/v4/value
# sigs.k8s.io/yaml v1.3.0
## explicit; go 1.12
sigs.k8s.io/yaml
# voyagermesh.dev/apimachinery v0.6.1-0.20220918015950-11bcee3c34e0
# voyagermesh.dev/apimachinery v0.7.0
## explicit; go 1.18
voyagermesh.dev/apimachinery/apis/voyager
voyagermesh.dev/apimachinery/apis/voyager/v1
Expand Down