Documentation ¶
Index ¶
- func AWSCredentialFactory(base *consulv1alpha1.AWSCredential, traits ...Trait) *consulv1alpha1.AWSCredential
- func BackupMinIOStorageFactory(base *consulv1alpha1.BackupStorageMinIOSpec, traits ...Trait) *consulv1alpha1.BackupStorageMinIOSpec
- func ClearOwnerReference(object any)
- func ClusterIP(object any)
- func ConfigMapFactory(base *corev1.ConfigMap, traits ...Trait) *corev1.ConfigMap
- func ConsulBackupFactory(base *consulv1alpha1.ConsulBackup, traits ...Trait) *consulv1alpha1.ConsulBackup
- func ContainerFactory(base *corev1.Container, traits ...Trait) *corev1.Container
- func Created(object any)
- func CronJobFactory(base *batchv1.CronJob, traits ...Trait) *batchv1.CronJob
- func DefaultNamespace(object any)
- func Delete(object any)
- func DeploymentFactory(base *appsv1.Deployment, traits ...Trait) *appsv1.Deployment
- func DisableCreatingIndexFile(object any)
- func EnableCreatingIndexFile(object any)
- func EventFactory(base *corev1.Event, traits ...Trait) *corev1.Event
- func ExecProbe(command ...string) corev1.ProbeHandler
- func Factory(base any, traits ...Trait) any
- func GrafanaFactory(base *grafanav1alpha1.Grafana, traits ...Trait) *grafanav1alpha1.Grafana
- func GrafanaUserFactory(base *grafanav1alpha1.GrafanaUser, traits ...Trait) *grafanav1alpha1.GrafanaUser
- func HTTPProbe(port int, path string) corev1.ProbeHandler
- func HarborProjectFactory(base *harborv1alpha1.HarborProject, traits ...Trait) *harborv1alpha1.HarborProject
- func HarborRobotAccountFactory(base *harborv1alpha1.HarborRobotAccount, traits ...Trait) *harborv1alpha1.HarborRobotAccount
- func IPNone(object any)
- func IngressClassFactory(base *networkingv1.IngressClass, traits ...Trait) *networkingv1.IngressClass
- func IngressFactory(base *networkingv1.Ingress, traits ...Trait) *networkingv1.Ingress
- func IngressPathFactory(base *networkingv1.HTTPIngressPath, traits ...Trait) *networkingv1.HTTPIngressPath
- func IngressRuleFactory(base *networkingv1.IngressRule, traits ...Trait) *networkingv1.IngressRule
- func JobFactory(base *batchv1.Job, traits ...Trait) *batchv1.Job
- func LoadBalancer(object any)
- func LocalObjectReference(obj metav1.Object) corev1.LocalObjectReference
- func MatchExpression(v ...metav1.LabelSelectorRequirement) *metav1.LabelSelector
- func MatchLabel(v map[string]string) metav1.LabelSelector
- func MinIOBucketFactory(base *miniov1alpha1.MinIOBucket, traits ...Trait) *miniov1alpha1.MinIOBucket
- func MinIOClusterFactory(base *miniov1alpha1.MinIOCluster, traits ...Trait) *miniov1alpha1.MinIOCluster
- func MinIOInstanceFactory(base *miniocontrollerv1beta1.MinIOInstance, traits ...Trait) *miniocontrollerv1beta1.MinIOInstance
- func MinIOUserFactory(base *miniov1alpha1.MinIOUser, traits ...Trait) *miniov1alpha1.MinIOUser
- func NewSecretProviderClassFactory(base *secretsstorev1.SecretProviderClass, traits ...Trait) *secretsstorev1.SecretProviderClass
- func NotReady(v any)
- func ObjectReference(obj metav1.Object) *consulv1alpha1.ObjectReference
- func PersistentVolumeClaimFactory(base *corev1.PersistentVolumeClaim, traits ...Trait) *corev1.PersistentVolumeClaim
- func PodDisruptionBudgetFactory(base *policyv1.PodDisruptionBudget, traits ...Trait) *policyv1.PodDisruptionBudget
- func PodFactory(base *corev1.Pod, traits ...Trait) *corev1.Pod
- func PodFailed(v any)
- func PodSucceeded(v any)
- func ProbeFactory(base *corev1.Probe, traits ...Trait) *corev1.Probe
- func PublishNotReadyAddresses(object any)
- func Ready(v any)
- func RoleBindingFactory(base *rbacv1.RoleBinding, traits ...Trait) *rbacv1.RoleBinding
- func RoleFactory(base *rbacv1.Role, traits ...Trait) *rbacv1.Role
- func SecretFactory(base *corev1.Secret, traits ...Trait) *corev1.Secret
- func SecretKeySelector(secret *corev1.Secret, key string) *corev1.SecretKeySelector
- func ServiceAccountFactory(base *corev1.ServiceAccount, traits ...Trait) *corev1.ServiceAccount
- func ServiceFactory(base *corev1.Service, traits ...Trait) *corev1.Service
- func TCPProbe(port int) corev1.ProbeHandler
- func TrafficPolicyLocal(object any)
- type Trait
- func AWSCredential(creds *consulv1alpha1.AWSCredential) Trait
- func AccessKey(ref *corev1.SecretKeySelector) Trait
- func AccessModes(modes ...corev1.PersistentVolumeAccessMode) Trait
- func AdminPasswordSecret(v *corev1.SecretKeySelector) Trait
- func Annotation(k, v string) Trait
- func Annotations(annotations map[string]string) Trait
- func Args(args ...string) Trait
- func BackoffLimit(limit int32) Trait
- func BackupInterval(seconds int) Trait
- func BackupService(objRef *consulv1alpha1.ObjectReference) Trait
- func BackupStorage(v any) Trait
- func BackupSucceeded(time time.Time) Trait
- func Bucket(bucket string) Trait
- func Container(c *corev1.Container) Trait
- func ControlledBy(v runtime.Object, s *runtime.Scheme) Trait
- func Controller(v string) Trait
- func CreatedAt(now time.Time) Trait
- func Data(key string, value []byte) Trait
- func DockerSecret(s *corev1.Secret) Trait
- func EnvFrom(name string) Trait
- func EnvFromField(k, v string) Trait
- func EnvFromSecret(k, name, secretKey string) Trait
- func EnvVar(k, v string) Trait
- func Finalizer(v string) Trait
- func Generation(v int64) Trait
- func Host(v string) Trait
- func Hostname(v string) Trait
- func Image(image string, cmd []string) Trait
- func IngressClass(v *networkingv1.IngressClass) Trait
- func InitContainer(c *corev1.Container) Trait
- func InitialDelay(s int) Trait
- func Job(j *batchv1.Job) Trait
- func Label(v ...string) Trait
- func Labels(label map[string]string) Trait
- func Limits(lim corev1.ResourceList) Trait
- func LivenessProbe(p *corev1.Probe) Trait
- func LoadBalancerIP(ip string) Trait
- func MatchLabelSelector(label map[string]string) Trait
- func MaxBackup(v int) Trait
- func MinAvailable(v int) Trait
- func MinIOCredential(ref corev1.LocalObjectReference) Trait
- func MinIOSelector(sel metav1.LabelSelector) Trait
- func Name(v string) Trait
- func Namef(format string, a ...interface{}) Trait
- func Namespace(v string) Trait
- func Nodes(n int) Trait
- func OnContainer(name string, t ...Trait) Trait
- func Parameters(params map[string]string) Trait
- func Path(path string, pt networkingv1.PathType, svc *corev1.Service, port string) Trait
- func Pod(p *corev1.Pod) Trait
- func PodFailurePolicy(v batchv1.PodFailurePolicyRule) Trait
- func PolicyRule(apiGroups, resources, verbs []string) Trait
- func Port(name string, protocol corev1.Protocol, port int32) Trait
- func PreferredInterPodAntiAffinity(weight int32, selector *metav1.LabelSelector, key string) Trait
- func ProbeHandler(h corev1.ProbeHandler) Trait
- func ProjectReference(p *harborv1alpha1.HarborProject) Trait
- func Provider(name string) Trait
- func PullPolicy(p corev1.PullPolicy) Trait
- func ReadinessProbe(p *corev1.Probe) Trait
- func ReadyProject(id int) Trait
- func Reason(v string) Trait
- func Replicas(v int32) Trait
- func Requests(req corev1.ResourceList) Trait
- func ResourceLimit(cpu, mem resource.Quantity) Trait
- func ResourceRequest(cpu, mem resource.Quantity) Trait
- func RestartPolicy(policy corev1.RestartPolicy) Trait
- func Role(r *rbacv1.Role) Trait
- func Rule(rule *networkingv1.IngressRule) Trait
- func Schedule(v string) Trait
- func SecretAccessKey(ref *corev1.SecretKeySelector) Trait
- func Selector(v ...string) Trait
- func ServiceAccount(v string) Trait
- func ServiceReference(v corev1.LocalObjectReference) Trait
- func SortVolume() Trait
- func StorageClassName(name string) Trait
- func StoragePath(path string) Trait
- func Subdomain(v string) Trait
- func Subject(v runtime.Object) Trait
- func TargetPort(name string, protocol corev1.Protocol, port int32, ...) Trait
- func Timeout(s int) Trait
- func TotalSize(n int) Trait
- func UID() Trait
- func UserEmail(v string) Trait
- func UserSelector(v metav1.LabelSelector) Trait
- func VaultPath(mountPath, path string) Trait
- func Volume(vol *VolumeSource) Trait
- func WorkDir(dir string) Trait
- type VolumeSource
- func NewConfigMapVolumeSource(name, path, configMapName string) *VolumeSource
- func NewEmptyDirVolumeSource(name, path string) *VolumeSource
- func NewPersistentVolumeClaimVolumeSource(name, path, pvcName string) *VolumeSource
- func NewSecretStoreVolumeSource(name, path string) *VolumeSource
- func NewSecretVolumeSource(name, path string, source *corev1.Secret, items ...corev1.KeyToPath) *VolumeSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSCredentialFactory ¶
func AWSCredentialFactory(base *consulv1alpha1.AWSCredential, traits ...Trait) *consulv1alpha1.AWSCredential
func BackupMinIOStorageFactory ¶
func BackupMinIOStorageFactory(base *consulv1alpha1.BackupStorageMinIOSpec, traits ...Trait) *consulv1alpha1.BackupStorageMinIOSpec
func ClearOwnerReference ¶
func ClearOwnerReference(object any)
func ConfigMapFactory ¶
func ConsulBackupFactory ¶
func ConsulBackupFactory(base *consulv1alpha1.ConsulBackup, traits ...Trait) *consulv1alpha1.ConsulBackup
func ContainerFactory ¶
func DefaultNamespace ¶
func DefaultNamespace(object any)
func DeploymentFactory ¶
func DeploymentFactory(base *appsv1.Deployment, traits ...Trait) *appsv1.Deployment
func DisableCreatingIndexFile ¶
func DisableCreatingIndexFile(object any)
func EnableCreatingIndexFile ¶
func EnableCreatingIndexFile(object any)
func ExecProbe ¶
func ExecProbe(command ...string) corev1.ProbeHandler
func GrafanaFactory ¶
func GrafanaFactory(base *grafanav1alpha1.Grafana, traits ...Trait) *grafanav1alpha1.Grafana
func GrafanaUserFactory ¶
func GrafanaUserFactory(base *grafanav1alpha1.GrafanaUser, traits ...Trait) *grafanav1alpha1.GrafanaUser
func HarborProjectFactory ¶
func HarborProjectFactory(base *harborv1alpha1.HarborProject, traits ...Trait) *harborv1alpha1.HarborProject
func HarborRobotAccountFactory ¶
func HarborRobotAccountFactory(base *harborv1alpha1.HarborRobotAccount, traits ...Trait) *harborv1alpha1.HarborRobotAccount
func IngressClassFactory ¶
func IngressClassFactory(base *networkingv1.IngressClass, traits ...Trait) *networkingv1.IngressClass
func IngressFactory ¶
func IngressFactory(base *networkingv1.Ingress, traits ...Trait) *networkingv1.Ingress
func IngressPathFactory ¶
func IngressPathFactory(base *networkingv1.HTTPIngressPath, traits ...Trait) *networkingv1.HTTPIngressPath
func IngressRuleFactory ¶
func IngressRuleFactory(base *networkingv1.IngressRule, traits ...Trait) *networkingv1.IngressRule
func LoadBalancer ¶
func LoadBalancer(object any)
func LocalObjectReference ¶
func LocalObjectReference(obj metav1.Object) corev1.LocalObjectReference
func MatchExpression ¶
func MatchExpression(v ...metav1.LabelSelectorRequirement) *metav1.LabelSelector
func MatchLabel ¶
func MatchLabel(v map[string]string) metav1.LabelSelector
func MinIOBucketFactory ¶
func MinIOBucketFactory(base *miniov1alpha1.MinIOBucket, traits ...Trait) *miniov1alpha1.MinIOBucket
func MinIOClusterFactory ¶
func MinIOClusterFactory(base *miniov1alpha1.MinIOCluster, traits ...Trait) *miniov1alpha1.MinIOCluster
func MinIOInstanceFactory ¶
func MinIOInstanceFactory(base *miniocontrollerv1beta1.MinIOInstance, traits ...Trait) *miniocontrollerv1beta1.MinIOInstance
func MinIOUserFactory ¶
func MinIOUserFactory(base *miniov1alpha1.MinIOUser, traits ...Trait) *miniov1alpha1.MinIOUser
func NewSecretProviderClassFactory ¶
func NewSecretProviderClassFactory(base *secretsstorev1.SecretProviderClass, traits ...Trait) *secretsstorev1.SecretProviderClass
func NotReady ¶
func NotReady(v any)
NotReady is the trait function for k8sfactory. The object is created but not ready.
func ObjectReference ¶
func ObjectReference(obj metav1.Object) *consulv1alpha1.ObjectReference
func PersistentVolumeClaimFactory ¶
func PersistentVolumeClaimFactory(base *corev1.PersistentVolumeClaim, traits ...Trait) *corev1.PersistentVolumeClaim
func PodDisruptionBudgetFactory ¶
func PodDisruptionBudgetFactory(base *policyv1.PodDisruptionBudget, traits ...Trait) *policyv1.PodDisruptionBudget
func PodSucceeded ¶
func PodSucceeded(v any)
func PublishNotReadyAddresses ¶
func PublishNotReadyAddresses(object any)
func RoleBindingFactory ¶
func RoleBindingFactory(base *rbacv1.RoleBinding, traits ...Trait) *rbacv1.RoleBinding
func SecretKeySelector ¶
func SecretKeySelector(secret *corev1.Secret, key string) *corev1.SecretKeySelector
func ServiceAccountFactory ¶
func ServiceAccountFactory(base *corev1.ServiceAccount, traits ...Trait) *corev1.ServiceAccount
func TCPProbe ¶
func TCPProbe(port int) corev1.ProbeHandler
func TrafficPolicyLocal ¶
func TrafficPolicyLocal(object any)
Types ¶
type Trait ¶
type Trait func(object any)
func AWSCredential ¶
func AWSCredential(creds *consulv1alpha1.AWSCredential) Trait
func AccessKey ¶
func AccessKey(ref *corev1.SecretKeySelector) Trait
func AccessModes ¶
func AccessModes(modes ...corev1.PersistentVolumeAccessMode) Trait
func AdminPasswordSecret ¶
func AdminPasswordSecret(v *corev1.SecretKeySelector) Trait
func Annotation ¶
func Annotations ¶
func BackoffLimit ¶
func BackupInterval ¶
func BackupService ¶
func BackupService(objRef *consulv1alpha1.ObjectReference) Trait
func BackupStorage ¶
func BackupSucceeded ¶
func Controller ¶
func DockerSecret ¶
func EnvFromField ¶
func EnvFromSecret ¶
func Generation ¶
func IngressClass ¶
func IngressClass(v *networkingv1.IngressClass) Trait
func InitContainer ¶
func InitialDelay ¶
func Limits ¶
func Limits(lim corev1.ResourceList) Trait
func LivenessProbe ¶
func LoadBalancerIP ¶
func MatchLabelSelector ¶
func MinAvailable ¶
func MinIOCredential ¶
func MinIOCredential(ref corev1.LocalObjectReference) Trait
func MinIOSelector ¶
func MinIOSelector(sel metav1.LabelSelector) Trait
func OnContainer ¶
func Parameters ¶
func PodFailurePolicy ¶
func PodFailurePolicy(v batchv1.PodFailurePolicyRule) Trait
func PolicyRule ¶
func PreferredInterPodAntiAffinity ¶
func PreferredInterPodAntiAffinity(weight int32, selector *metav1.LabelSelector, key string) Trait
func ProbeHandler ¶
func ProbeHandler(h corev1.ProbeHandler) Trait
func ProjectReference ¶
func ProjectReference(p *harborv1alpha1.HarborProject) Trait
func PullPolicy ¶
func PullPolicy(p corev1.PullPolicy) Trait
func ReadinessProbe ¶
func ReadyProject ¶
func Requests ¶
func Requests(req corev1.ResourceList) Trait
func ResourceLimit ¶
func ResourceRequest ¶
func RestartPolicy ¶
func RestartPolicy(policy corev1.RestartPolicy) Trait
func Rule ¶
func Rule(rule *networkingv1.IngressRule) Trait
func SecretAccessKey ¶
func SecretAccessKey(ref *corev1.SecretKeySelector) Trait
func ServiceAccount ¶
func ServiceReference ¶
func ServiceReference(v corev1.LocalObjectReference) Trait
func SortVolume ¶
func SortVolume() Trait
func StorageClassName ¶
func StoragePath ¶
func TargetPort ¶
func UserSelector ¶
func UserSelector(v metav1.LabelSelector) Trait
func Volume ¶
func Volume(vol *VolumeSource) Trait
type VolumeSource ¶
type VolumeSource struct { Mount corev1.VolumeMount Source corev1.Volume }
func NewConfigMapVolumeSource ¶
func NewConfigMapVolumeSource(name, path, configMapName string) *VolumeSource
func NewEmptyDirVolumeSource ¶
func NewEmptyDirVolumeSource(name, path string) *VolumeSource
func NewPersistentVolumeClaimVolumeSource ¶
func NewPersistentVolumeClaimVolumeSource(name, path, pvcName string) *VolumeSource
func NewSecretStoreVolumeSource ¶
func NewSecretStoreVolumeSource(name, path string) *VolumeSource
func NewSecretVolumeSource ¶
func (*VolumeSource) PathJoin ¶
func (s *VolumeSource) PathJoin(elem ...string) string
Click to show internal directories.
Click to hide internal directories.