Skip to content

mercenarysre/forma-operator

Repository files navigation

Form3 Kubernetes Operator

Kubernetes Operator for managing the lifecycle(creation and deletion) of a Form3 Account.

Prerequisites

  • Go version v1.24.0+
  • Docker version 17.03+.
  • Access to a Kind cluster.
  • Kubectl version v1.11.3+.
chmod +x run.sh
./run.sh

Implementation

Testing the Operator

make test

Deploy Kubernetes Manifests To A Kind Cluster, this provisions a Fake Form3 Account API

cd manifests
kubectl apply -f .

Install the Operator

export USERNAME=tomiwa97
make docker-build docker-push IMG=docker.io/$USERNAME/form3-operator:v1.0.0
kind load docker.io/$USERNAME/form3-operator:v1.0.0
make deploy IMG=docker.io/$USERNAME/memcached-operator:v1.0.0

Fetching Operator CRD, Deployments, Pods, ClusterRoles, ClusterRolesBindings, Roles, RoleBindings

kubectl get crds
kubectl get deployments
kubectl get pods
kubectl get clusterroles | grep forma
kubectl get clusterrolebindings | grep forma
kubectl get roles
kubectl get rolebindings

Create instances (Custom Resources) of a Form3 Account by applying samples from the config/samples directory

kubectl apply -k config/samples/

To Uninstall

Delete the instances (Custom Resources) from the cluster

kubectl delete -k config/samples/

Delete the APIs(CRDs) from the cluster

make uninstall

UnDeploy the controller from the cluster

make undeploy

ToDo (Write Tests for the Operator)

About

K8s Operator for managing the lifecyle of a Form3(Financial Cloud) Account

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors