*: Rename coreos-baremetal to matchbox

This commit is contained in:
Dalton Hubble
2017-01-17 00:58:03 -08:00
parent 9e3efa5229
commit c749a28662
64 changed files with 151 additions and 154 deletions

View File

@@ -18,26 +18,26 @@ Choose one of the supported installation options:
## Download
Download the latest coreos-baremetal [release](https://github.com/coreos/coreos-baremetal/releases) to the provisioner host.
Download the latest matchbox [release](https://github.com/coreos/matchbox/releases) to the provisioner host.
```sh
$ wget https://github.com/coreos/coreos-baremetal/releases/download/v0.4.2/coreos-baremetal-v0.4.2-linux-amd64.tar.gz
$ wget https://github.com/coreos/coreos-baremetal/releases/download/v0.4.2/coreos-baremetal-v0.4.2-linux-amd64.tar.gz.asc
$ wget https://github.com/coreos/matchbox/releases/download/v0.4.2/matchbox-v0.4.2-linux-amd64.tar.gz
$ wget https://github.com/coreos/matchbox/releases/download/v0.4.2/matchbox-v0.4.2-linux-amd64.tar.gz.asc
```
Verify the release has been signed by the [CoreOS App Signing Key](https://coreos.com/security/app-signing-key/).
```
$ gpg --keyserver pgp.mit.edu --recv-key 18AD5014C99EF7E3BA5F6CE950BDD3E0FC8A365E
$ gpg --verify coreos-baremetal-v0.4.2-linux-amd64.tar.gz.asc coreos-baremetal-v0.4.2-linux-amd64.tar.gz
$ gpg --verify matchbox-v0.4.2-linux-amd64.tar.gz.asc matchbox-v0.4.2-linux-amd64.tar.gz
# gpg: Good signature from "CoreOS Application Signing Key <security@coreos.com>"
```
Untar the release.
```sh
$ tar xzvf coreos-baremetal-v0.4.2-linux-amd64.tar.gz
$ cd coreos-baremetal-v0.4.2-linux-amd64
$ tar xzvf matchbox-v0.4.2-linux-amd64.tar.gz
$ cd matchbox-v0.4.2-linux-amd64
```
## Install
@@ -241,19 +241,19 @@ For large production environments, use a cache proxy or mirror suitable for your
## Network
Review [network setup](https://github.com/coreos/coreos-baremetal/blob/master/Documentation/network-setup.md) with your network administrator to set up DHCP, TFTP, and DNS services on your network. At a high level, your goals are to:
Review [network setup](https://github.com/coreos/matchbox/blob/master/Documentation/network-setup.md) with your network administrator to set up DHCP, TFTP, and DNS services on your network. At a high level, your goals are to:
* Chainload PXE firmwares to iPXE
* Point iPXE client machines to the `matchbox` iPXE HTTP endpoint `http://matchbox.example.com:8080/boot.ipxe`
* Ensure `matchbox.example.com` resolves to your `matchbox` deployment
CoreOS provides [dnsmasq](https://github.com/coreos/coreos-baremetal/tree/master/contrib/dnsmasq) as `quay.io/coreos/dnsmasq`, if you wish to use rkt or Docker.
CoreOS provides [dnsmasq](https://github.com/coreos/matchbox/tree/master/contrib/dnsmasq) as `quay.io/coreos/dnsmasq`, if you wish to use rkt or Docker.
## rkt
Run the container image with rkt.
latest or most recent tagged `matchbox` [release](https://github.com/coreos/coreos-baremetal/releases) ACI. Trust the [CoreOS App Signing Key](https://coreos.com/security/app-signing-key/) for image signature verification.
latest or most recent tagged `matchbox` [release](https://github.com/coreos/matchbox/releases) ACI. Trust the [CoreOS App Signing Key](https://coreos.com/security/app-signing-key/) for image signature verification.
```sh
$ sudo rkt run --net=host --mount volume=data,target=/var/lib/matchbox --volume data,kind=host,source=/var/lib/matchbox quay.io/coreos/matchbox:latest --mount volume=config,target=/etc/matchbox --volume config,kind=host,source=/etc/matchbox,readOnly=true -- -address=0.0.0.0:8080 -rpc-address=0.0.0.0:8081 -log-level=debug
@@ -293,4 +293,4 @@ The example manifests use Kubernetes `emptyDir` volumes to back the `matchbox` F
### Documentation
View the [documentation](https://github.com/coreos/coreos-baremetal#coreos-on-baremetal) for `matchbox` service docs, tutorials, example clusters and Ignition configs, PXE booting guides, or machine lifecycle guides.
View the [documentation](https://github.com/coreos/matchbox#coreos-on-baremetal) for `matchbox` service docs, tutorials, example clusters and Ignition configs, PXE booting guides, or machine lifecycle guides.

View File

@@ -1,7 +1,7 @@
# Release Guide
This guide covers releasing new versions of coreos-baremetal.
This guide covers releasing new versions of matchbox.
## Version
@@ -37,7 +37,7 @@ Build the release tarballs.
Verify the reported version.
./_output/coreos-baremetal-v0.4.2-linux-amd64/matchbox -version
./_output/matchbox-v0.4.2-linux-amd64/matchbox -version
## ACI
@@ -59,18 +59,18 @@ Sign the release tarballs and ACI with a [CoreOS App Signing Key](https://coreos
cd _output
gpg2 -a --default-key FC8A365E --detach-sign matchbox-$VERSION-linux-amd64.aci
gpg2 -a --default-key FC8A365E --detach-sign coreos-baremetal-$VERSION-linux-amd64.tar.gz
gpg2 -a --default-key FC8A365E --detach-sign coreos-baremetal-$VERSION-darwin-amd64.tar.gz
gpg2 -a --default-key FC8A365E --detach-sign coreos-baremetal-$VERSION-linux-arm.tar.gz
gpg2 -a --default-key FC8A365E --detach-sign coreos-baremetal-$VERSION-linux-arm64.tar.gz
gpg2 -a --default-key FC8A365E --detach-sign matchbox-$VERSION-linux-amd64.tar.gz
gpg2 -a --default-key FC8A365E --detach-sign matchbox-$VERSION-darwin-amd64.tar.gz
gpg2 -a --default-key FC8A365E --detach-sign matchbox-$VERSION-linux-arm.tar.gz
gpg2 -a --default-key FC8A365E --detach-sign matchbox-$VERSION-linux-arm64.tar.gz
Verify the signatures.
gpg2 --verify matchbox-$VERSION-linux-amd64.aci.asc matchbox-$VERSION-linux-amd64.aci
gpg2 --verify coreos-baremetal-$VERSION-linux-amd64.tar.gz.asc coreos-baremetal-$VERSION-linux-amd64.tar.gz
gpg2 --verify coreos-baremetal-$VERSION-darwin-amd64.tar.gz.asc coreos-baremetal-$VERSION-darwin-amd64.tar.gz
gpg2 --verify coreos-baremetal-$VERSION-linux-arm.tar.gz.asc coreos-baremetal-$VERSION-linux-arm.tar.gz
gpg2 --verify coreos-baremetal-$VERSION-linux-arm64.tar.gz.asc coreos-baremetal-$VERSION-linux-arm64.tar.gz
gpg2 --verify matchbox-$VERSION-linux-amd64.tar.gz.asc matchbox-$VERSION-linux-amd64.tar.gz
gpg2 --verify matchbox-$VERSION-darwin-amd64.tar.gz.asc matchbox-$VERSION-darwin-amd64.tar.gz
gpg2 --verify matchbox-$VERSION-linux-arm.tar.gz.asc matchbox-$VERSION-linux-arm.tar.gz
gpg2 --verify matchbox-$VERSION-linux-arm64.tar.gz.asc matchbox-$VERSION-linux-arm64.tar.gz
## Publish

View File

@@ -17,10 +17,10 @@ Install the package dependencies and start the Docker daemon.
# check Docker's docs to install Docker 1.8+ on Debian/Ubuntu
sudo apt-get install virt-manager virtinst qemu-kvm
Clone the [coreos-baremetal](https://github.com/coreos/coreos-baremetal) source which contains the examples and scripts.
Clone the [matchbox](https://github.com/coreos/matchbox) source which contains the examples and scripts.
git clone https://github.com/coreos/coreos-baremetal.git
cd coreos-baremetal
git clone https://github.com/coreos/matchbox.git
cd matchbox
Download CoreOS image assets referenced by the `etcd-docker` [example](../examples) to `examples/assets`.

View File

@@ -19,10 +19,10 @@ Next, install the package dependencies.
**Note**: rkt does not yet integrate with SELinux on Fedora. As a workaround, temporarily set enforcement to permissive if you are comfortable (`sudo setenforce Permissive`). Check the rkt [distribution notes](https://github.com/coreos/rkt/blob/master/Documentation/distributions.md) or see the tracking [issue](https://github.com/coreos/rkt/issues/1727).
Clone the [coreos-baremetal](https://github.com/coreos/coreos-baremetal) source which contains the examples and scripts.
Clone the [matchbox](https://github.com/coreos/matchbox) source which contains the examples and scripts.
git clone https://github.com/coreos/coreos-baremetal.git
cd coreos-baremetal
git clone https://github.com/coreos/matchbox.git
cd matchbox
Download CoreOS image assets referenced by the `etcd` [example](../examples) to `examples/assets`.

View File

@@ -24,7 +24,7 @@ Guides and a service for network booting and provisioning CoreOS clusters on vir
* [matchbox with Docker](getting-started-docker.md)
* [Configuration](config.md)
* [HTTP API](api.md)
* [gRPC API](https://godoc.org/github.com/coreos/coreos-baremetal/matchbox/client)
* [gRPC API](https://godoc.org/github.com/coreos/matchbox/matchbox/client)
* Installation
* [CoreOS / Linux distros](deployment.md)
* [rkt](deployment.md#rkt) / [docker](deployment.md#docker)
@@ -43,7 +43,7 @@ Guides and a service for network booting and provisioning CoreOS clusters on vir
### Examples
The [examples](https://github.com/coreos/coreos-baremetal/tree/master/examples) network boot and provision CoreOS clusters. Network boot QEMU/KVM VMs to try the examples on your Linux laptop.
The [examples](https://github.com/coreos/matchbox/tree/master/examples) network boot and provision CoreOS clusters. Network boot QEMU/KVM VMs to try the examples on your Linux laptop.
* Multi-node [Kubernetes cluster](kubernetes.md)
* Multi-node [rktnetes](rktnetes.md) cluster (i.e. Kubernetes with rkt as the container runtime)

View File

@@ -21,7 +21,7 @@ See [configuration](config.md) flags and variables.
## API
* [HTTP API](api.md)
* [gRPC API](https://godoc.org/github.com/coreos/coreos-baremetal/matchbox/client)
* [gRPC API](https://godoc.org/github.com/coreos/matchbox/matchbox/client)
## Data

View File

@@ -1,6 +1,6 @@
export CGO_ENABLED:=0
LD_FLAGS="-w -X github.com/coreos/coreos-baremetal/matchbox/version.Version=$(shell ./git-version)"
LD_FLAGS="-w -X github.com/coreos/matchbox/matchbox/version.Version=$(shell ./git-version)"
LOCAL_BIN=/usr/local/bin
all: build
@@ -13,10 +13,10 @@ codegen: tools
./scripts/codegen
bin/matchbox:
go build -o bin/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/matchbox
go build -o bin/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/matchbox
bin/bootcmd:
go build -o bin/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/bootcmd
go build -o bin/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/bootcmd
test:
./test
@@ -27,42 +27,42 @@ install:
release: \
clean \
_output/coreos-baremetal-linux-amd64.tar.gz \
_output/coreos-baremetal-linux-arm.tar.gz \
_output/coreos-baremetal-linux-arm64.tar.gz \
_output/coreos-baremetal-darwin-amd64.tar.gz \
_output/matchbox-linux-amd64.tar.gz \
_output/matchbox-linux-arm.tar.gz \
_output/matchbox-linux-arm64.tar.gz \
_output/matchbox-darwin-amd64.tar.gz \
# matchbox
bin/linux-amd64/matchbox:
GOOS=linux GOARCH=amd64 go build -o bin/linux-amd64/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/matchbox
GOOS=linux GOARCH=amd64 go build -o bin/linux-amd64/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/matchbox
bin/linux-arm/matchbox:
GOOS=linux GOARCH=arm go build -o bin/linux-arm/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/matchbox
GOOS=linux GOARCH=arm go build -o bin/linux-arm/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/matchbox
bin/linux-arm64/matchbox:
GOOS=linux GOARCH=arm64 go build -o bin/linux-arm64/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/matchbox
GOOS=linux GOARCH=arm64 go build -o bin/linux-arm64/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/matchbox
bin/darwin-amd64/matchbox:
GOOS=darwin GOARCH=amd64 go build -o bin/darwin-amd64/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/matchbox
GOOS=darwin GOARCH=amd64 go build -o bin/darwin-amd64/matchbox -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/matchbox
# bootcmd
bin/linux-amd64/bootcmd:
GOOS=linux GOARCH=amd64 go build -o bin/linux-amd64/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/bootcmd
GOOS=linux GOARCH=amd64 go build -o bin/linux-amd64/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/bootcmd
bin/linux-arm/bootcmd:
GOOS=linux GOARCH=arm go build -o bin/linux-arm/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/bootcmd
GOOS=linux GOARCH=arm go build -o bin/linux-arm/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/bootcmd
bin/linux-arm64/bootcmd:
GOOS=linux GOARCH=arm64 go build -o bin/linux-arm64/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/bootcmd
GOOS=linux GOARCH=arm64 go build -o bin/linux-arm64/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/bootcmd
bin/darwin-amd64/bootcmd:
GOOS=darwin GOARCH=amd64 go build -o bin/darwin-amd64/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/coreos-baremetal/cmd/bootcmd
GOOS=darwin GOARCH=amd64 go build -o bin/darwin-amd64/bootcmd -ldflags $(LD_FLAGS) -a github.com/coreos/matchbox/cmd/bootcmd
_output/coreos-baremetal-%.tar.gz: NAME=coreos-baremetal-$(VERSION)-$*
_output/coreos-baremetal-%.tar.gz: DEST=_output/$(NAME)
_output/coreos-baremetal-%.tar.gz: bin/%/matchbox bin/%/bootcmd
_output/matchbox-%.tar.gz: NAME=matchbox-$(VERSION)-$*
_output/matchbox-%.tar.gz: DEST=_output/$(NAME)
_output/matchbox-%.tar.gz: bin/%/matchbox bin/%/bootcmd
mkdir -p $(DEST)
cp bin/$*/matchbox $(DEST)
cp bin/$*/bootcmd $(DEST)
@@ -75,5 +75,5 @@ clean:
rm -rf _output
.PHONY: all build tools test install release clean
.SECONDARY: _output/coreos-baremetal-linux-amd64 _output/coreos-baremetal-darwin-amd64
.SECONDARY: _output/matchbox-linux-amd64 _output/matchbox-darwin-amd64

View File

@@ -1,11 +1,8 @@
# matchbox [![Build Status](https://travis-ci.org/coreos/matchbox.svg?branch=master)](https://travis-ci.org/coreos/matchbox) [![GoDoc](https://godoc.org/github.com/coreos/matchbox?status.png)](https://godoc.org/github.com/coreos/matchbox) [![Docker Repository on Quay](https://quay.io/repository/coreos/matchbox/status "Docker Repository on Quay")](https://quay.io/repository/coreos/matchbox) [![IRC](https://img.shields.io/badge/irc-%23coreos-449FD8.svg)](https://botbot.me/freenode/coreos)
# CoreOS on Baremetal
Network boot and provision CoreOS clusters on virtual or physical hardware.
[![Build Status](https://travis-ci.org/coreos/coreos-baremetal.svg?branch=master)](https://travis-ci.org/coreos/coreos-baremetal) [![GoDoc](https://godoc.org/github.com/coreos/coreos-baremetal?status.png)](https://godoc.org/github.com/coreos/coreos-baremetal) [![Docker Repository on Quay](https://quay.io/repository/coreos/matchbox/status "Docker Repository on Quay")](https://quay.io/repository/coreos/matchbox) [![IRC](https://img.shields.io/badge/irc-%23coreos-449FD8.svg)](https://botbot.me/freenode/coreos)
Guides and a service for network booting and provisioning CoreOS clusters on virtual or physical hardware.
**Announcement**: coreos-baremetal and `bootcfg` are being renamed to CoreOS `matchbox`, which will be reflected in v0.5.0. Please see [CHANGES](CHANGES.md) or [#400](https://github.com/coreos/coreos-baremetal/issues/400). If you're looking for older docs, be sure to use the branch/tag switcher.
**Announcement**: coreos-baremetal and `bootcfg` have been renamed to CoreOS `matchbox`, which will be reflected in v0.5.0. Please see [CHANGES](CHANGES.md) or [#400](https://github.com/coreos/matchbox/issues/400). If you're looking for older docs, be sure to use the branch/tag switcher.
## Guides
@@ -28,7 +25,7 @@ Guides and a service for network booting and provisioning CoreOS clusters on vir
* [Cloud-Config](Documentation/cloud-config.md)
* [Configuration](Documentation/config.md)
* [HTTP API](Documentation/api.md)
* [gRPC API](https://godoc.org/github.com/coreos/coreos-baremetal/matchbox/client)
* [gRPC API](https://godoc.org/github.com/coreos/matchbox/matchbox/client)
* Installation
* [CoreOS / Linux distros](Documentation/deployment.md)
* [rkt](Documentation/deployment.md#rkt) / [docker](Documentation/deployment.md#docker)

6
build
View File

@@ -1,7 +1,7 @@
#!/bin/bash -e
LD_FLAGS="-w -X github.com/coreos/coreos-baremetal/matchbox/version.Version=$(./git-version)"
CGO_ENABLED=0 go build -o bin/matchbox -ldflags "$LD_FLAGS" -a github.com/coreos/coreos-baremetal/cmd/matchbox
LD_FLAGS="-w -X github.com/coreos/matchbox/matchbox/version.Version=$(./git-version)"
CGO_ENABLED=0 go build -o bin/matchbox -ldflags "$LD_FLAGS" -a github.com/coreos/matchbox/cmd/matchbox
# bootcmd CLI binary
CGO_ENABLED=0 go build -o bin/bootcmd -ldflags "$LD_FLAGS" -a github.com/coreos/coreos-baremetal/cmd/bootcmd
CGO_ENABLED=0 go build -o bin/bootcmd -ldflags "$LD_FLAGS" -a github.com/coreos/matchbox/cmd/bootcmd

View File

@@ -1,6 +1,6 @@
package main
import "github.com/coreos/coreos-baremetal/matchbox/cli"
import "github.com/coreos/matchbox/matchbox/cli"
func main() {
cli.Execute()

View File

@@ -11,13 +11,13 @@ import (
"github.com/Sirupsen/logrus"
"github.com/coreos/pkg/flagutil"
web "github.com/coreos/coreos-baremetal/matchbox/http"
"github.com/coreos/coreos-baremetal/matchbox/rpc"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/sign"
"github.com/coreos/coreos-baremetal/matchbox/storage"
"github.com/coreos/coreos-baremetal/matchbox/tlsutil"
"github.com/coreos/coreos-baremetal/matchbox/version"
web "github.com/coreos/matchbox/matchbox/http"
"github.com/coreos/matchbox/matchbox/rpc"
"github.com/coreos/matchbox/matchbox/server"
"github.com/coreos/matchbox/matchbox/sign"
"github.com/coreos/matchbox/matchbox/storage"
"github.com/coreos/matchbox/matchbox/tlsutil"
"github.com/coreos/matchbox/matchbox/version"
)
var (

View File

@@ -1,6 +1,6 @@
[Unit]
Description=CoreOS matchbox Server
Documentation=https://github.com/coreos/coreos-baremetal
Documentation=https://github.com/coreos/matchbox
[Service]
Environment="IMAGE=quay.io/coreos/matchbox"

View File

@@ -1,6 +1,6 @@
[Unit]
Description=CoreOS matchbox Server
Documentation=https://github.com/coreos/coreos-baremetal
Documentation=https://github.com/coreos/matchbox
[Service]
User=matchbox

View File

@@ -1,6 +1,6 @@
[Unit]
Description=CoreOS matchbox Server
Documentation=https://github.com/coreos/coreos-baremetal
Documentation=https://github.com/coreos/matchbox
[Service]
Environment="IMAGE=quay.io/coreos/matchbox"

View File

@@ -1,6 +1,6 @@
[Unit]
Description=CoreOS matchbox Server
Documentation=https://github.com/coreos/coreos-baremetal
Documentation=https://github.com/coreos/matchbox
[Service]
User=matchbox

View File

@@ -7,7 +7,7 @@ Create FAKE TLS credentials for running the `matchbox` gRPC API examples.
Navigate to the example directory which will be mounted as `/etc/matchbox` in examples:
cd coreos-baremetal/examples/etc/matchbox
cd matchbox/examples/etc/matchbox
Set certificate subject alt names which should be used by exporting `SAN`. Use the DNS name or IP at which `matchbox` is hosted.

View File

@@ -1,4 +1,4 @@
package: github.com/coreos/coreos-baremetal
package: github.com/coreos/matchbox
import:
- package: github.com/golang/protobuf
version: 7cc19b78d562895b13596ddce7aafb59dd789318

View File

@@ -6,8 +6,8 @@ import (
"context"
"github.com/spf13/cobra"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
// groupPutCmd creates and updates Groups.

View File

@@ -7,7 +7,7 @@ import (
"context"
"github.com/spf13/cobra"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// groupDescribeCmd describes a Group.

View File

@@ -7,7 +7,7 @@ import (
"context"
"github.com/spf13/cobra"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// groupListCmd lists Groups.

View File

@@ -7,7 +7,7 @@ import (
"context"
"github.com/spf13/cobra"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// ignitionPutCmd creates and updates Ignition templates.

View File

@@ -6,8 +6,8 @@ import (
"context"
"github.com/spf13/cobra"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
// profilePutCmd creates and updates Profiles.

View File

@@ -7,7 +7,7 @@ import (
"context"
"github.com/spf13/cobra"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// profileDescribeCmd describes a Profile.

View File

@@ -7,7 +7,7 @@ import (
"context"
"github.com/spf13/cobra"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// profileListCmd lists Profiles.

View File

@@ -6,8 +6,8 @@ import (
"github.com/spf13/cobra"
"github.com/coreos/coreos-baremetal/matchbox/client"
"github.com/coreos/coreos-baremetal/matchbox/tlsutil"
"github.com/coreos/matchbox/matchbox/client"
"github.com/coreos/matchbox/matchbox/tlsutil"
)
var (

View File

@@ -8,7 +8,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/matchbox/matchbox/rpc/rpcpb"
)
var (

View File

@@ -10,8 +10,8 @@ import (
"github.com/Sirupsen/logrus"
cloudinit "github.com/coreos/coreos-cloudinit/config"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/server"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// CloudConfig defines a cloud-init config.

View File

@@ -9,9 +9,9 @@ import (
logtest "github.com/Sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
"github.com/coreos/matchbox/matchbox/server"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
fake "github.com/coreos/matchbox/matchbox/storage/testfakes"
)
func TestCloudHandler(t *testing.T) {

View File

@@ -5,7 +5,7 @@ import (
"context"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
// unexported key prevents collisions

View File

@@ -6,7 +6,7 @@ import (
"context"
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
func TestContextProfile(t *testing.T) {

View File

@@ -9,8 +9,8 @@ import (
"context"
"github.com/Sirupsen/logrus"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/server"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// genericHandler returns a handler that responds with the generic config

View File

@@ -9,9 +9,9 @@ import (
logtest "github.com/Sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
"github.com/coreos/matchbox/matchbox/server"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
fake "github.com/coreos/matchbox/matchbox/storage/testfakes"
)
func TestGenericHandler(t *testing.T) {

View File

@@ -6,8 +6,8 @@ import (
"context"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/server"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// homeHandler shows the server name for rooted requests. Otherwise, a 404 is

View File

@@ -10,9 +10,9 @@ import (
logtest "github.com/Sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
"github.com/coreos/matchbox/matchbox/server"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
fake "github.com/coreos/matchbox/matchbox/storage/testfakes"
)
func TestSelectGroup(t *testing.T) {

View File

@@ -10,8 +10,8 @@ import (
fuze "github.com/coreos/fuze/config"
ignition "github.com/coreos/ignition/config"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/server"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// ignitionHandler returns a handler that responds with the Ignition config

View File

@@ -9,9 +9,9 @@ import (
logtest "github.com/Sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
"github.com/coreos/matchbox/matchbox/server"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
fake "github.com/coreos/matchbox/matchbox/storage/testfakes"
)
func TestIgnitionHandler_V2JSON(t *testing.T) {

View File

@@ -9,8 +9,8 @@ import (
logtest "github.com/Sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
fake "github.com/coreos/matchbox/matchbox/storage/testfakes"
)
func TestIPXEInspect(t *testing.T) {

View File

@@ -11,7 +11,7 @@ import (
logtest "github.com/Sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
func TestMetadataHandler(t *testing.T) {

View File

@@ -8,7 +8,7 @@ import (
"github.com/Sirupsen/logrus"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
// collectVariables collects group selectors, metadata, and request-scoped

View File

@@ -7,8 +7,8 @@ import (
"context"
"github.com/Sirupsen/logrus"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/server"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// pixiecoreHandler returns a handler that renders the boot config JSON for

View File

@@ -9,9 +9,9 @@ import (
logtest "github.com/Sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
"github.com/coreos/matchbox/matchbox/server"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
fake "github.com/coreos/matchbox/matchbox/storage/testfakes"
)
func TestPixiecoreHandler(t *testing.T) {

View File

@@ -5,8 +5,8 @@ import (
"github.com/Sirupsen/logrus"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/sign"
"github.com/coreos/matchbox/matchbox/server"
"github.com/coreos/matchbox/matchbox/sign"
)
// Config configures a Server.

View File

@@ -1,7 +1,7 @@
package http
import (
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
var (

View File

@@ -4,7 +4,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/matchbox/matchbox/server"
)
var (

View File

@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/codes"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/matchbox/matchbox/server"
)
func TestGRPCError(t *testing.T) {

View File

@@ -3,9 +3,9 @@ package rpc
import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/rpc/rpcpb"
"github.com/coreos/matchbox/matchbox/server"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// groupServer takes a matchbox Server and implements a gRPC GroupsServer.

View File

@@ -6,8 +6,8 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/matchbox/matchbox/rpc/rpcpb"
"github.com/coreos/matchbox/matchbox/server"
)
// NewServer wraps the matchbox Server to return a new gRPC Server.

View File

@@ -3,9 +3,9 @@ package rpc
import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/rpc/rpcpb"
"github.com/coreos/matchbox/matchbox/server"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// ignitionServer takes a matchbox Server and implements a gRPC IgnitionServer.

View File

@@ -3,9 +3,9 @@ package rpc
import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/rpc/rpcpb"
"github.com/coreos/matchbox/matchbox/server"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// profileServer takes a matchbox Server and implements a gRPC ProfilesServer.

View File

@@ -15,7 +15,7 @@ package rpcpb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import serverpb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
import serverpb "github.com/coreos/matchbox/matchbox/server/serverpb"
import (
context "golang.org/x/net/context"

View File

@@ -1,7 +1,7 @@
syntax = "proto3";
package rpcpb;
import "github.com/coreos/coreos-baremetal/matchbox/server/serverpb/messages.proto";
import "github.com/coreos/matchbox/matchbox/server/serverpb/messages.proto";
service Groups {
// Create a Group.

View File

@@ -3,9 +3,9 @@ package rpc
import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/rpc/rpcpb"
"github.com/coreos/matchbox/matchbox/server"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
)
// selectServer wraps a matchbox Server to be suitable for gRPC registration.

View File

@@ -6,9 +6,9 @@ import (
"context"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/storage"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/storage"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
// Possible service errors

View File

@@ -6,10 +6,10 @@ import (
"context"
"github.com/stretchr/testify/assert"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/storage"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
pb "github.com/coreos/matchbox/matchbox/server/serverpb"
"github.com/coreos/matchbox/matchbox/storage"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
fake "github.com/coreos/matchbox/matchbox/storage/testfakes"
)
func TestSelectGroup(t *testing.T) {

View File

@@ -33,7 +33,7 @@ package serverpb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import storagepb "github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
import storagepb "github.com/coreos/matchbox/matchbox/storage/storagepb"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@@ -1,7 +1,7 @@
syntax = "proto3";
package serverpb;
import "github.com/coreos/coreos-baremetal/matchbox/storage/storagepb/storage.proto";
import "github.com/coreos/matchbox/matchbox/storage/storagepb/storage.proto";
message SelectGroupRequest {
map<string, string> labels = 1;

View File

@@ -5,7 +5,7 @@ import (
"path/filepath"
"strings"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
// Config initializes a fileStore.

View File

@@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
fake "github.com/coreos/matchbox/matchbox/storage/testfakes"
)
func TestGroupPut(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package storage
import (
"errors"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
// Storage errors

View File

@@ -3,7 +3,7 @@ package testfakes
import (
"errors"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
var (

View File

@@ -3,7 +3,7 @@ package testfakes
import (
"fmt"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
// EmptyStore is used for testing purposes.

View File

@@ -3,7 +3,7 @@ package testfakes
import (
"fmt"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
// FixedStore is used for testing purposes.

View File

@@ -1,7 +1,7 @@
package testfakes
import (
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
"github.com/coreos/matchbox/matchbox/storage/storagepb"
)
var (

View File

@@ -11,7 +11,7 @@ extra:
include_toc: yes
show_powered_by: false
extra_nav_links:
Github: https://github.com/coreos/coreos-baremetal
Github: https://github.com/coreos/matchbox
pages:
- Home: 'index.md'
- Tutorials: