anusha94 / cluster-api-provider-podman

Cluster API Provider for Podman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cluster-api-provider-podman

Cluster API Provider for Podman

Scaffolding

use kubebuilder to start a project

kubebuilder init --domain cluster.x-k8s.io --repo github.com/anusha94/cluster-api-provider-podman

create apis and controllers

kubebuilder create api --group infrastructure --version v1 --kind PodmanMachineTemplate
kubebuilder create api --group infrastructure --version v1 --kind PodmanMachine
kubebuilder create api --group infrastructure --version v1 --kind PodmanCluster

generate manifests and implementation of runtime.Object

Any change to the APIs, we have to generate the manifests

make manifests
make generate

Implementing CAPI contract

Now that our scaffolded code is ready, we will write the provider logic. CAPI defines certain contract that each infrastructure provider has to follow. For each of our controllers, we will follow the same

Implementing the PodmanCluster

We will follow the flow diagram mentioned in the Cluster API book for implementing the Cluster Infrastructure

Implementing the PodmanMachine

We will follow the flow diagram mentioned in the Cluster API book for implementing the Machine Infrastructure

About

Cluster API Provider for Podman

License:MIT License


Languages

Language:Go 83.0%Language:Makefile 14.7%Language:Dockerfile 2.3%