px-object-controller

module
v0.0.0-...-cbe8cb9 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0

README

px-object-controller

Building

  1. make all
  2. make container
  3. make deploy

Running

  1. Setup environment variables:
export DOCKER_USER=""
export DOCKER_PASSWORD=""
export S3_ADMIN_ACCESS_KEY_ID=""
export S3_ADMIN_SECRET_ACCESS_KEY=""
export PURE_FB_ADMIN_ACCESS_KEY_ID=""
export PURE_FB_ADMIN_SECRET_ACCESS_KEY=""
  1. Created required secrets:
kubectl -n kube-system create secret docker-registry pwxbuild --docker-username=${DOCKER_USER} --docker-password=${DOCKER_PASSWORD}
kubectl -n kube-system create secret generic px-object-s3-admin-credentials --from-literal=access-key-id=${S3_ADMIN_ACCESS_KEY_ID} --from-literal=secret-access-key=${S3_ADMIN_SECRET_ACCESS_KEY}
kubectl -n kube-system create secret generic px-object-fb-admin-credentials --from-literal=access-key-id=${PURE_FB_ADMIN_ACCESS_KEY_ID} --from-literal=secret-access-key=${PURE_FB_ADMIN_SECRET_ACCESS_KEY}
  1. Create deployment:
 kubecl apply -f deploy/

Running integration tests

  1. Setup environment variable for testing:
export DOCKER_USER=""
export DOCKER_PASSWORD=""
export S3_ADMIN_ACCESS_KEY_ID=""
export S3_ADMIN_SECRET_ACCESS_KEY=""
export PURE_FB_ADMIN_ACCESS_KEY_ID=""
export PURE_FB_ADMIN_SECRET_ACCESS_KEY=""
  1. Run make integration-test-suite

Scripts

Build, deploy, and delete your local pods:

./hack/dev-refresh.sh

Directories

Path Synopsis
client
apis/objectservice/v1alpha1
+kubebuilder:object:generate=true
+kubebuilder:object:generate=true
clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/objectservice/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/objectservice/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
cmd
examples
sample-app Module
pkg
test

Jump to

Keyboard shortcuts

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