Skip to content

safronovD/ppw-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deployment Google Cloud Build and test development

ppw-operator

Operator for https://github.com/safronovD/python-pravega-writer

Setup

# Go 1.13
...

# gcc
sudo apt update
sudo apt install build-essential

# Configure Go
mkdir -p ~/go_projects/{bin,src,pkg}
export GOPATH="$HOME/go_projects"
export GOBIN="$GOPATH/bin"
export PATH=$PATH:"$GOBIN"

Dependencies

make all-dependencies

Deploy controller

make create-dir

# Generate addition files
# With controller-gen
make generate-crds
make generate-deepcopy

# With kustomize
make kustomize-crds
make kustomize-controller IMG=${IMG}


# Docker image
make docker-build IMG=${IMG}
make docker-push IMG=${IMG}


# Deploy into a cluster
make install-crds
make deploy-controller

Check (deploy ppw)

sudo nano config/samples/apps_v1alpha0_ppw.yaml
kubectl apply -f config/samples/apps_v1alpha0_ppw.yaml