github.com/verrazzano/verrazzano@v1.7.1/cluster-operator/README.md (about)

     1  [![Go Report Card](https://goreportcard.com/badge/github.com/verrazzano/verrazzano)](https://goreportcard.com/report/github.com/verrazzano/verrazzano)
     2  
     3  # Verrazzano Cluster Operator
     4  
     5  ## Prerequisites
     6  * `kustomize` v3.1.0+
     7  * `kubebuilder` 2.3.1+
     8  * `go` version v1.15.7
     9  * Docker
    10  * `kubectl`
    11  
    12  ## Build the Verrazzano cluster operator
    13  * To generate DeepCopy and DeepCopyInto methods for changes in types in APIs
    14      ```
    15      make generate
    16      ```
    17  
    18  * To generate manifests, for example, CRD, RBAC, and such:
    19      ```
    20      make manifests
    21      ```
    22  
    23  * To do all the source code checks, such as `fmt`, `lint`, and such:
    24      ```
    25      make check
    26      ```
    27  
    28  * To build the operator and generated code:
    29      ```
    30      make go-install
    31      ```
    32  
    33  ## Test the Verrazzano cluster operator
    34  
    35  You need a Kubernetes cluster to run against.
    36  
    37  * Install the CRDs into the cluster:
    38      ```
    39      make install-crds
    40      ```
    41  
    42  * Run the operator. This will run in the foreground, so switch to a new terminal if you want to leave it running.
    43      ```
    44      make run
    45      ```
    46  
    47  * Uninstall the CRDs from the cluster:
    48      ```
    49      make uninstall-crds
    50      ```
    51  
    52  ## Build and push Docker images
    53  
    54  * To build the Docker image:
    55      ```
    56      make docker-build
    57      ```
    58  
    59  * To push the Docker image:
    60      ```
    61      make docker-push
    62      ```