Skip to content

Commit

Permalink
update go to 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
atiratree committed Jul 8, 2021
1 parent df73c9c commit 1bb82f1
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 7 deletions.
5 changes: 0 additions & 5 deletions cmd/cluster-policy-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"math/rand"
"os"
"runtime"
"time"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -51,10 +50,6 @@ func main() {
logs.InitLogs()
defer logs.FlushLogs()

if len(os.Getenv("GOMAXPROCS")) == 0 {
runtime.GOMAXPROCS(runtime.NumCPU())
}

command := NewClusterPolicyControllerCommand()
if err := command.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/openshift/cluster-policy-controller

go 1.13
go 1.16

require (
github.com/davecgh/go-spew v1.1.1
Expand Down
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fvbommel/sortorder v1.0.1/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0=
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
Expand Down
48 changes: 48 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ github.com/coreos/go-systemd/journal
# github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f
github.com/coreos/pkg/capnslog
# github.com/davecgh/go-spew v1.1.1
## explicit
github.com/davecgh/go-spew/spew
# github.com/docker/distribution v2.7.1+incompatible
github.com/docker/distribution/digestset
Expand All @@ -32,6 +33,7 @@ github.com/evanphx/json-patch
# github.com/ghodss/yaml v1.0.0
github.com/ghodss/yaml
# github.com/go-bindata/go-bindata v3.1.2+incompatible
## explicit
github.com/go-bindata/go-bindata
# github.com/go-logr/logr v0.4.0
github.com/go-logr/logr
Expand All @@ -56,6 +58,8 @@ github.com/golang/protobuf/ptypes
github.com/golang/protobuf/ptypes/any
github.com/golang/protobuf/ptypes/duration
github.com/golang/protobuf/ptypes/timestamp
# github.com/google/btree v1.0.1-0.20190326150332-20236160a414
## explicit
# github.com/google/go-cmp v0.5.4
github.com/google/go-cmp/cmp
github.com/google/go-cmp/cmp/internal/diff
Expand All @@ -70,6 +74,8 @@ github.com/google/uuid
github.com/googleapis/gnostic/compiler
github.com/googleapis/gnostic/extensions
github.com/googleapis/gnostic/openapiv2
# github.com/grpc-ecosystem/go-grpc-middleware v1.1.0
## explicit
# github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/grpc-ecosystem/go-grpc-prometheus
# github.com/hashicorp/golang-lru v0.5.1
Expand All @@ -93,9 +99,12 @@ github.com/modern-go/concurrent
github.com/modern-go/reflect2
# github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
github.com/munnerz/goautoneg
# github.com/onsi/gomega v1.8.1
## explicit
# github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/go-digest
# github.com/openshift/api v0.0.0-20210521075222-e273a339932a
## explicit
github.com/openshift/api/apps
github.com/openshift/api/apps/v1
github.com/openshift/api/authorization
Expand Down Expand Up @@ -126,6 +135,7 @@ github.com/openshift/api/template/v1
github.com/openshift/api/user
github.com/openshift/api/user/v1
# github.com/openshift/build-machinery-go v0.0.0-20210614124016-792d61687197
## explicit
github.com/openshift/build-machinery-go
github.com/openshift/build-machinery-go/make
github.com/openshift/build-machinery-go/make/lib
Expand All @@ -135,6 +145,7 @@ github.com/openshift/build-machinery-go/make/targets/openshift
github.com/openshift/build-machinery-go/make/targets/openshift/operator
github.com/openshift/build-machinery-go/scripts
# github.com/openshift/client-go v0.0.0-20210521082421-73d9475a9142
## explicit
github.com/openshift/client-go/apps/clientset/versioned
github.com/openshift/client-go/apps/clientset/versioned/scheme
github.com/openshift/client-go/apps/clientset/versioned/typed/apps/v1
Expand Down Expand Up @@ -212,6 +223,7 @@ github.com/openshift/client-go/template/informers/externalversions/template
github.com/openshift/client-go/template/informers/externalversions/template/v1
github.com/openshift/client-go/template/listers/template/v1
# github.com/openshift/library-go v0.0.0-20210624101008-7aab941b4a2b
## explicit
github.com/openshift/library-go/pkg/authorization/hardcodedauthorizer
github.com/openshift/library-go/pkg/config/client
github.com/openshift/library-go/pkg/config/configdefaults
Expand Down Expand Up @@ -239,6 +251,7 @@ github.com/pkg/errors
# github.com/pkg/profile v1.3.0
github.com/pkg/profile
# github.com/prometheus/client_golang v1.7.1
## explicit
github.com/prometheus/client_golang/prometheus
github.com/prometheus/client_golang/prometheus/internal
github.com/prometheus/client_golang/prometheus/promhttp
Expand All @@ -259,8 +272,10 @@ github.com/robfig/cron
# github.com/sirupsen/logrus v1.7.0
github.com/sirupsen/logrus
# github.com/spf13/cobra v1.1.1
## explicit
github.com/spf13/cobra
# github.com/spf13/pflag v1.0.5
## explicit
github.com/spf13/pflag
# go.etcd.io/etcd v0.5.0-alpha.5.0.20200910180754-dd1b699fc489
go.etcd.io/etcd/auth/authpb
Expand Down Expand Up @@ -292,6 +307,7 @@ go.uber.org/multierr
# go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee
go.uber.org/tools/update-license
# go.uber.org/zap v1.13.0
## explicit
go.uber.org/zap
go.uber.org/zap/buffer
go.uber.org/zap/internal/bufferpool
Expand Down Expand Up @@ -484,6 +500,7 @@ honnef.co/go/tools/stylecheck
honnef.co/go/tools/unused
honnef.co/go/tools/version
# k8s.io/api v0.21.2 => k8s.io/api v0.21.2
## explicit
k8s.io/api/admission/v1
k8s.io/api/admission/v1beta1
k8s.io/api/admissionregistration/v1
Expand Down Expand Up @@ -530,6 +547,7 @@ k8s.io/api/storage/v1
k8s.io/api/storage/v1alpha1
k8s.io/api/storage/v1beta1
# k8s.io/apimachinery v0.21.2 => k8s.io/apimachinery v0.21.2
## explicit
k8s.io/apimachinery/pkg/api/apitesting
k8s.io/apimachinery/pkg/api/equality
k8s.io/apimachinery/pkg/api/errors
Expand Down Expand Up @@ -585,6 +603,7 @@ k8s.io/apimachinery/pkg/watch
k8s.io/apimachinery/third_party/forked/golang/json
k8s.io/apimachinery/third_party/forked/golang/reflect
# k8s.io/apiserver v0.21.2 => k8s.io/apiserver v0.21.2
## explicit
k8s.io/apiserver/pkg/admission
k8s.io/apiserver/pkg/admission/configuration
k8s.io/apiserver/pkg/admission/initializer
Expand Down Expand Up @@ -710,6 +729,7 @@ k8s.io/apiserver/plugin/pkg/audit/webhook
k8s.io/apiserver/plugin/pkg/authenticator/token/webhook
k8s.io/apiserver/plugin/pkg/authorizer/webhook
# k8s.io/client-go v0.21.2 => k8s.io/client-go v0.21.2
## explicit
k8s.io/client-go/applyconfigurations/admissionregistration/v1
k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1
k8s.io/client-go/applyconfigurations/apiserverinternal/v1alpha1
Expand Down Expand Up @@ -978,6 +998,7 @@ k8s.io/client-go/util/keyutil
k8s.io/client-go/util/retry
k8s.io/client-go/util/workqueue
# k8s.io/component-base v0.21.2 => k8s.io/component-base v0.21.2
## explicit
k8s.io/component-base/cli/flag
k8s.io/component-base/config
k8s.io/component-base/configz
Expand All @@ -996,10 +1017,12 @@ k8s.io/component-helpers/scheduling/corev1
k8s.io/component-helpers/scheduling/corev1/nodeaffinity
k8s.io/component-helpers/storage/volume
# k8s.io/controller-manager v0.21.2 => k8s.io/controller-manager v0.21.2
## explicit
k8s.io/controller-manager/app
k8s.io/controller-manager/pkg/clientbuilder
k8s.io/controller-manager/pkg/informerfactory
# k8s.io/klog/v2 v2.9.0
## explicit
k8s.io/klog/v2
# k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7
k8s.io/kube-openapi/pkg/builder
Expand All @@ -1009,6 +1032,7 @@ k8s.io/kube-openapi/pkg/schemaconv
k8s.io/kube-openapi/pkg/util
k8s.io/kube-openapi/pkg/util/proto
# k8s.io/kubernetes v1.21.2
## explicit
k8s.io/kubernetes/pkg/api/legacyscheme
k8s.io/kubernetes/pkg/api/service
k8s.io/kubernetes/pkg/api/v1/pod
Expand Down Expand Up @@ -1055,3 +1079,27 @@ sigs.k8s.io/structured-merge-diff/v4/typed
sigs.k8s.io/structured-merge-diff/v4/value
# sigs.k8s.io/yaml v1.2.0
sigs.k8s.io/yaml
# k8s.io/api => k8s.io/api v0.21.2
# k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.21.2
# k8s.io/apimachinery => k8s.io/apimachinery v0.21.2
# k8s.io/apiserver => k8s.io/apiserver v0.21.2
# k8s.io/cli-runtime => k8s.io/cli-runtime v0.21.2
# k8s.io/client-go => k8s.io/client-go v0.21.2
# k8s.io/cloud-provider => k8s.io/cloud-provider v0.21.2
# k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.21.2
# k8s.io/code-generator => k8s.io/code-generator v0.21.2
# k8s.io/component-base => k8s.io/component-base v0.21.2
# k8s.io/component-helpers => k8s.io/component-helpers v0.21.2
# k8s.io/controller-manager => k8s.io/controller-manager v0.21.2
# k8s.io/cri-api => k8s.io/cri-api v0.21.2
# k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.21.2
# k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.21.2
# k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.21.2
# k8s.io/kube-proxy => k8s.io/kube-proxy v0.21.2
# k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.21.2
# k8s.io/kubectl => k8s.io/kubectl v0.21.2
# k8s.io/kubelet => k8s.io/kubelet v0.21.2
# k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.21.2
# k8s.io/metrics => k8s.io/metrics v0.21.2
# k8s.io/mount-utils => k8s.io/mount-utils v0.21.2
# k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.21.2

0 comments on commit 1bb82f1

Please sign in to comment.