You should have kubeconfig setup to point to your cluster. In case you want to build the Airflow Operator from the source code, e.g., to test a fix or a feature you write, you can do so following the instructions below.
$ mkdir -p $GOPATH/src/k8s.io
$ cd $GOPATH/src/k8s.io
$ git clone git@github.com:GoogleCloudPlatform/airflow-operator.git
# build
make build
# run locally
make run
When working with GCP ensure that gcloud is setup and gcr(container registry) is enabled for the current project. If not set IMG env to point to the desired registry image.
# building docker image
make docker-build
# push docker image
make docker-push
Set IMG env to point to the desired registry image.
# building docker image
make docker-build NOTGCP=true
# push docker image
make docker-push NOTGCP=true
# assumes kubeconfig is setup correctly
make deploy
Runs unit-tests locally
make test
Before running e2e tests ensure that the desrired version is running on the cluster or locally.
# Start controller in cluster:
# make docker-push
# make deploy
# OR locally:
# make install
# make run
# and then run the tests
make e2e-test