builder

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClusterRole

func BuildClusterRole() *rbacv1.ClusterRole

BuildClusterRole constructs a ClusterRole for the NFS provisioner.

func BuildClusterRoleBinding

func BuildClusterRoleBinding(nfs *cachev1alpha1.NFSProvisioner) *rbacv1.ClusterRoleBinding

BuildClusterRoleBinding constructs a ClusterRoleBinding for the NFS provisioner.

func BuildDeployment

func BuildDeployment(nfs *cachev1alpha1.NFSProvisioner) *appsv1.Deployment

BuildDeployment constructs a Deployment resource for the NFS server.

func BuildPVC

BuildPVC constructs a PVC for NFS server storage. Returns nil if hostPathDir or an existing pvc is specified (no PVC creation needed). When scForNFSPvc is set, uses that StorageClass. When no storage option is set, StorageClassName is nil so Kubernetes uses the default SC.

func BuildRole

func BuildRole(nfs *cachev1alpha1.NFSProvisioner) *rbacv1.Role

BuildRole constructs a Role for the NFS provisioner.

func BuildRoleBinding

func BuildRoleBinding(nfs *cachev1alpha1.NFSProvisioner) *rbacv1.RoleBinding

BuildRoleBinding constructs a RoleBinding for the NFS provisioner.

func BuildSCC

BuildSCC constructs a SecurityContextConstraints for the NFS provisioner (OpenShift only).

func BuildService

func BuildService(nfs *cachev1alpha1.NFSProvisioner) *corev1.Service

BuildService constructs a Service resource exposing the NFS server.

func BuildServiceAccount

func BuildServiceAccount(nfs *cachev1alpha1.NFSProvisioner) *corev1.ServiceAccount

BuildServiceAccount constructs a ServiceAccount for the NFS provisioner pod.

func BuildStorageClass

func BuildStorageClass(nfs *cachev1alpha1.NFSProvisioner) *storagev1.StorageClass

BuildStorageClass constructs a StorageClass for end users.

Types

This section is empty.

Jump to

Keyboard shortcuts

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