Skip to content

Commit

Permalink
change module name to match new repository
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Apr 19, 2019
1 parent acbe515 commit b5d16ab
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
12 changes: 8 additions & 4 deletions Dockerfile.offline
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ RUN make linux

FROM alpine:latest as schemas
RUN apk --no-cache add git
RUN git clone https://github.com/instrumenta/kubernetes-json-schema.git
RUN git clone https://github.com/garethr/openshift-json-schema.git
RUN git clone --depth 1 https://github.com/instrumenta/kubernetes-json-schema.git
RUN git clone --depth 1 https://github.com/garethr/openshift-json-schema.git

FROM schemas as standalone-schemas
RUN cd kubernetes-json-schema/master && \
find -maxdepth 1 -type d -not -name "." -not -name "*-standalone*" | xargs rm -rf

FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=builder /bin/linux/amd64/kubeval .
COPY --from=schemas /kubernetes-json-schema /schemas/kubernetes-json-schema/master
COPY --from=schemas /openshift-json-schema /schemas/openshift-json-schema/master
COPY --from=standalone-schemas /kubernetes-json-schema /schemas/kubernetes-json-schema/master
COPY --from=standalone-schemas /openshift-json-schema /schemas/openshift-json-schema/master
ENV KUBEVAL_SCHEMA_LOCATION=file:///schemas
RUN ln -s /kubeval /usr/local/bin/kubeval
ENTRYPOINT ["/kubeval"]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME=kubeval
IMAGE_NAME=garethr/$(NAME)
PACKAGE_NAME=github.com/garethr/$(NAME)
PACKAGE_NAME=github.com/instrumenta/$(NAME)
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
TAG=$(shell git describe --abbrev=0 --tags)

Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ It can also be used as a library in other Go applications.
[![Build
Status](https://travis-ci.org/garethr/kubeval.svg)](https://travis-ci.org/garethr/kubeval)
[![Go Report
Card](https://goreportcard.com/badge/github.com/garethr/kubeval)](https://goreportcard.com/report/github.com/garethr/kubeval)
[![GoDoc](https://godoc.org/github.com/garethr/kubeval?status.svg)](https://godoc.org/github.com/garethr/kubeval)
[![Coverage
Status](https://coveralls.io/repos/github/garethr/kubeval/badge.svg?branch=master)](https://coveralls.io/github/garethr/kubeval?branch=master)
Card](https://goreportcard.com/badge/github.com/instrumenta/kubeval)](https://goreportcard.com/report/github.com/instrumenta/kubeval)
[![GoDoc](https://godoc.org/github.com/instrumenta/kubeval?status.svg)](https://godoc.org/github.com/instrumenta/kubeval)

```
$ kubeval my-invalid-rc.yaml
Expand Down Expand Up @@ -69,7 +67,7 @@ Kubernetes has strong definitions of what a Deployment, Pod, or
ReplicationController are. It exposes that information via an OpenAPI
based description. That description contains JSON Schema information for
the Kubernetes types. This tool uses those extracted schemas, published
at [garethr/kubernetes-json-schema](https://github.com/garethr/kubernetes-json-schema) and [garethr/openshift-json-schema](https://github.com/garethr/openshift-json-schema). See
at [instrumenta/kubernetes-json-schema](https://github.com/instrumenta/kubernetes-json-schema) and [garethr/openshift-json-schema](https://github.com/garethr/openshift-json-schema). See
those repositories and
[this blog post](https://www.morethanseven.net/2017/06/26/schemas-for-kubernetes-types/)
for the details.
Expand All @@ -85,7 +83,7 @@ directly or place it on your path.

```
PLATFORM=darwin # Other choices: linux, windows
wget https://github.com/garethr/kubeval/releases/download/0.8.0/kubeval-${PLATFORM}-amd64.tar.gz
wget https://github.com/instrumenta/kubeval/releases/download/0.8.0/kubeval-${PLATFORM}-amd64.tar.gz
tar xf kubeval-${PLATFORM}-amd64.tar.gz
cp kubeval /usr/local/bin
```
Expand Down Expand Up @@ -175,7 +173,7 @@ After installing with you prefered dependency management tool, import the releva

```go
import (
"github.com/garethr/kubeval/kubeval"
"github.com/instrumenta/kubeval/kubeval"
)
```

Expand Down Expand Up @@ -235,5 +233,5 @@ fi
`kubeval` should be useful now but can be obviously improved in a number
of ways. If you have suggestions for improvements or new features, or
run into a bug please open issues against the [GitHub
repository](https://github.com/garethr/kubeval). Pull requests also
repository](https://github.com/instrumenta/kubeval). Pull requests also
heartily encouraged.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/garethr/kubeval/kubeval"
"github.com/garethr/kubeval/log"
"github.com/instrumenta/kubeval/kubeval"
"github.com/instrumenta/kubeval/log"
)

// RootCmd represents the the command to run when kubeval is run
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"text/template"

"github.com/garethr/kubeval/version"
"github.com/instrumenta/kubeval/version"
)

var Version bool
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/garethr/kubeval
module github.com/instrumenta/kubeval

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/garethr/kubeval/cmd"
import "github.com/instrumenta/kubeval/cmd"

func main() {
cmd.Execute()
Expand Down

0 comments on commit b5d16ab

Please sign in to comment.