cluster-api-provider-podman

command module
v0.0.0-...-842a2a0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 11 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Package v1 contains API Schema definitions for the infrastructure v1 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io
Package v1 contains API Schema definitions for the infrastructure v1 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

Jump to

Keyboard shortcuts

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