forked from metal3-io/cluster-api-provider-baremetal
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from russellb/merge-upstream
Merge master from metal3-io/cluster-api-provider-baremetal.
- Loading branch information
Showing
142 changed files
with
2,110 additions
and
942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
version: "1" | ||
domain: cluster.k8s.io | ||
repo: github.com/metalkube/cluster-api-provider-baremetal | ||
repo: github.com/metal3-io/cluster-api-provider-baremetal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# API and Resource Definitions | ||
|
||
## Machine | ||
|
||
The `Machine` resource is defined by the | ||
[cluster-api](https://github.com/kubernetes-sigs/cluster-api) project. A | ||
`Machine` includes a `providerSpec` field which includes the data specific to | ||
this `cluster-api` provider. | ||
|
||
## BareMetalMachineProviderSpec | ||
|
||
* **image** -- This includes two sub-fields, `url` and `checksum`, which | ||
include the URL to the image and the URL to a checksum for that image. These | ||
fields are required. The image will be used for provisioning of the | ||
`BareMetalHost` chosen by the `Machine` actuator. | ||
|
||
* **userData** -- This includes two sub-fields, `name` and `namespace`, which | ||
reference a `Secret` that contains base64 encoded user-data to be written to | ||
a config drive on the provisioned `BareMetalHost`. This field is optional. | ||
|
||
## Sample Machine | ||
|
||
```yaml | ||
apiVersion: cluster.k8s.io/v1alpha1 | ||
kind: Machine | ||
metadata: | ||
annotations: | ||
metal3.io/BareMetalHost: metal3/master-0 | ||
creationTimestamp: "2019-05-13T13:00:51Z" | ||
finalizers: | ||
- machine.cluster.k8s.io | ||
generateName: baremetal-machine- | ||
generation: 2 | ||
name: centos | ||
namespace: metal3 | ||
resourceVersion: "1112" | ||
selfLink: /apis/cluster.k8s.io/v1alpha1/namespaces/metal3/machines/centos | ||
uid: 22acee54-757f-11e9-8091-280d3563c053 | ||
spec: | ||
metadata: | ||
creationTimestamp: null | ||
providerSpec: | ||
value: | ||
apiVersion: baremetal.cluster.k8s.io/v1alpha1 | ||
image: | ||
checksum: http://172.22.0.1/images/CentOS-7-x86_64-GenericCloud-1901.qcow2.md5sum | ||
url: http://172.22.0.1/images/CentOS-7-x86_64-GenericCloud-1901.qcow2 | ||
kind: BareMetalMachineProviderSpec | ||
userData: | ||
name: centos-user-data | ||
namespace: metal3 | ||
versions: | ||
kubelet: "" | ||
``` | ||
## Sample userData Secret | ||
```yaml | ||
apiVersion: v1 | ||
data: | ||
userData: BASE64_ENCODED_USER_DATA | ||
kind: Secret | ||
metadata: | ||
annotations: | ||
creationTimestamp: 2019-05-13T13:00:51Z | ||
name: centos-user-data | ||
namespace: metal3 | ||
resourceVersion: "1108" | ||
selfLink: /api/v1/namespaces/metal3/secrets/centos-user-data | ||
uid: 22792b3e-757f-11e9-8091-280d3563c053 | ||
type: Opaque | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Setting up a development environment | ||
|
||
The cluster-api requires two external tools for running the tests | ||
during development. | ||
|
||
## Install kustomize | ||
|
||
```bash | ||
eval $(go env) | ||
export GOPATH | ||
./tools/install_kustomize.sh | ||
``` | ||
|
||
## Install kubebuilder | ||
|
||
```bash | ||
./tools/install_kubebuilder.sh | ||
sudo mv kubebuilder /usr/local | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.