Skip to content
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
74 changes: 43 additions & 31 deletions Gopkg.lock

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

6 changes: 3 additions & 3 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ required = [ "k8s.io/code-generator/cmd/client-gen", "k8s.io/gengo/types" ]
unused-packages = false

[[constraint]]
branch = "master"
name = "github.com/golang/glog"
revision = "3c92600d7533018d216b534fe894ad60a1e6d5bf"
source = "https://github.com/openshift/golang-glog.git"

[[constraint]]
name = "github.com/google/uuid"
Expand Down Expand Up @@ -64,8 +65,7 @@ required = [ "k8s.io/code-generator/cmd/client-gen", "k8s.io/gengo/types" ]

[[constraint]]
name = "github.com/openshift/api"
# this revision has both Failing and Degraded. The next bump will remove the depracted Failing
revision = "8e476cb7322e59919cbb6482fd076ec5a214df25"
branch = "master"

[[constraint]]
name = "github.com/openshift/client-go"
Expand Down
1 change: 1 addition & 0 deletions bootstrap/bootstrap-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
- "--kubeconfig=/etc/kubernetes/kubeconfig"
securityContext:
privileged: true
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /etc/ssl/certs
name: etc-ssl-certs
Expand Down
10 changes: 3 additions & 7 deletions cmd/image.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package main

import (
"flag"
"fmt"

"github.com/golang/glog"
"github.com/spf13/cobra"
"k8s.io/klog"

"github.com/openshift/cluster-version-operator/pkg/payload"
)
Expand All @@ -25,15 +24,12 @@ func init() {
}

func runImageCmd(cmd *cobra.Command, args []string) {
flag.Set("logtostderr", "true")
flag.Parse()

if len(args) == 0 {
glog.Fatalf("missing command line argument short-name")
klog.Fatalf("missing command line argument short-name")
}
image, err := payload.ImageForShortName(args[0])
if err != nil {
glog.Fatalf("error: %v", err)
klog.Fatalf("error: %v", err)
}
fmt.Printf(image)
}
7 changes: 5 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"flag"

"github.com/golang/glog"
"github.com/spf13/cobra"
"k8s.io/klog"
)

const (
Expand All @@ -21,11 +21,14 @@ var (
)

func init() {
klog.InitFlags(flag.CommandLine)
flag.CommandLine.Set("alsologtostderr", "true")
rootCmd.PersistentFlags().AddGoFlagSet(flag.CommandLine)
}

func main() {
defer klog.Flush()
if err := rootCmd.Execute(); err != nil {
glog.Exitf("Error executing mcc: %v", err)
klog.Exitf("Error executing mcc: %v", err)
}
}
8 changes: 4 additions & 4 deletions cmd/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"flag"

"github.com/golang/glog"
"github.com/spf13/cobra"
"k8s.io/klog"

"github.com/openshift/cluster-version-operator/pkg/payload"
)
Expand Down Expand Up @@ -34,12 +34,12 @@ func runRenderCmd(cmd *cobra.Command, args []string) {
flag.Parse()

if renderOpts.outputDir == "" {
glog.Fatalf("missing --output-dir flag, it is required")
klog.Fatalf("missing --output-dir flag, it is required")
}
if renderOpts.releaseImage == "" {
glog.Fatalf("missing --release-image flag, it is required")
klog.Fatalf("missing --release-image flag, it is required")
}
if err := payload.Render(renderOpts.outputDir, renderOpts.releaseImage); err != nil {
glog.Fatalf("Render command failed: %v", err)
klog.Fatalf("Render command failed: %v", err)
}
}
Loading