Skip to content

Commit

Permalink
golden middle between che-operator dependencies and mature enough con…
Browse files Browse the repository at this point in the history
…troller-runtime version (#10)

* Align dependecies with che-operator

* Upgrade controller-runtime v0.2.1 with minumal list of transitive dependecies
  • Loading branch information
skabashnyuk authored Aug 31, 2020
1 parent cfd8b24 commit ef4b882
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 430 deletions.
12 changes: 10 additions & 2 deletions cmd/configbump/main.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
package main

import (
"github.com/go-logr/zapr"
"go.uber.org/zap"
"os"

arg "github.com/alexflint/go-arg"
"github.com/che-incubator/configbump/pkg/configmaps"
"github.com/operator-framework/operator-sdk/pkg/k8sutil"
"github.com/operator-framework/operator-sdk/pkg/ready"
"sigs.k8s.io/controller-runtime/pkg/client/config"
logf "sigs.k8s.io/controller-runtime/pkg/log"
logf "sigs.k8s.io/controller-runtime/pkg/runtime/log"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/pkg/manager/signals"
"sigs.k8s.io/controller-runtime/pkg/runtime/signals"
)

// Opts represents the commandline arguments to the executable
Expand Down Expand Up @@ -41,6 +43,12 @@ const controllerName = "config-bump"
var log = logf.Log.WithName(controllerName)

func main() {
zap, err := zap.NewProduction()
if err != nil {
println("Failed to initialize a zap logger.")
os.Exit(1)
}
logf.SetLogger(zapr.NewLogger(zap))
var opts opts
arg.MustParse(&opts)

Expand Down
10 changes: 6 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ go 1.12

require (
github.com/alexflint/go-arg v1.3.0
github.com/go-logr/zapr v0.1.0
github.com/operator-framework/operator-sdk v0.5.0
k8s.io/api v0.18.4
k8s.io/apimachinery v0.18.4
k8s.io/client-go v0.18.4
sigs.k8s.io/controller-runtime v0.6.1
go.uber.org/zap v1.9.1
k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b
k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible
sigs.k8s.io/controller-runtime v0.2.1
)
Loading

0 comments on commit ef4b882

Please sign in to comment.