baremetal-operator

module
v0.0.0-...-1c4ddef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2019 License: Apache-2.0

README

Bare Metal Operator

Setup with minishift

  1. Install and launch minishift

    https://docs.okd.io/latest/minishift/getting-started/index.html

  2. Ensure you're logged in to the correct context and login as a normal user called developer.

    oc config use-context minishift
    oc login
    Username: developer
    
  3. Create a project to host the operator

    oc new-project bmo-project
    
  4. Install operator-sdk

    go get github.com/metalkube/baremetal-operator
    cd ~/go/src/github.com/metalkube/baremetal-operator
    oc --as system:admin apply -f deploy/service_account.yaml
    oc --as system:admin apply -f deploy/role.yaml
    oc --as system:admin apply -f deploy/role_binding.yaml
    oc --as system:admin apply -f deploy/crds/metalkube_v1alpha1_baremetalhost_crd.yaml
    
  5. Launch the operator locally

    export OPERATOR_NAME=baremetal-operator
    operator-sdk up local --namespace=bmo-project
    
  6. Create the CR

    oc apply -f deploy/crds/metalkube_v1alpha1_baremetalhost_cr.yaml
    

Testing

Refer to testing for details about running the tests.

API

Refer to the API documentation for details about the custom resources defined by this operator.

Directories

Path Synopsis
cmd
manager command
pkg
apis/metalkube/v1alpha1
Package v1alpha1 contains API Schema definitions for the metalkube v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=metalkube.org Package v1alpha1 contains API Schema definitions for the metalkube v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=metalkube.org
Package v1alpha1 contains API Schema definitions for the metalkube v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=metalkube.org Package v1alpha1 contains API Schema definitions for the metalkube v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=metalkube.org
bmc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL