Skip to content

Commit

Permalink
Remove unused code (#1371)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
  • Loading branch information
dvaldivia committed Dec 15, 2022
1 parent 15a8eb4 commit 33ae386
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
41 changes: 0 additions & 41 deletions kubectl-minio/cmd/helpers/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,58 +15,26 @@

package helpers

import (
corev1 "k8s.io/api/core/v1"
)

const (
// ClusterRoleBindingName is the name for CRB
ClusterRoleBindingName = "minio-operator-binding"

// ClusterRoleName is the name for Cluster Role for operator
ClusterRoleName = "minio-operator-role"

// ContainerName is the name of operator container
ContainerName = "minio-operator"

// DeploymentName is the name of operator deployment
DeploymentName = "minio-operator"

// DefaultNamespace is the default namespace for all operations
DefaultNamespace = "minio-operator"

// DefaultStorageclass is empty so the cluster pick its own native storage class as default
DefaultStorageclass = ""

// DefaultServiceAccount is the service account for all
DefaultServiceAccount = "minio-operator"

// DefaultClusterDomain is the default domain of the Kubernetes cluster
DefaultClusterDomain = "cluster.local"

// DefaultSecretNameSuffix is the suffix added to tenant name to create the
// credentials secret for this tenant
DefaultSecretNameSuffix = "-creds-secret"

// DefaultServiceNameSuffix is the suffix added to tenant name to create the
// internal clusterIP service for this tenant
DefaultServiceNameSuffix = "-internal-service"

// MinIOPrometheusPath is the path where MinIO tenant exposes Prometheus metrics
MinIOPrometheusPath = "/minio/v2/metrics/cluster"

// MinIOPrometheusPort is the port where MinIO tenant exposes Prometheus metrics
MinIOPrometheusPort = "9000"

// MinIOMountPath is the path where MinIO related PVs are mounted in a container
MinIOMountPath = "/export"

// MinIOAccessMode is the default access mode to be used for PVC / PV binding
MinIOAccessMode = "ReadWriteOnce"

// DefaultImagePullPolicy specifies the policy to image pulls
DefaultImagePullPolicy = corev1.PullIfNotPresent

// DefaultOperatorImage is the default operator image to be used
DefaultOperatorImage = "minio/operator:v4.5.5"

Expand All @@ -75,18 +43,9 @@ const (

// DefaultKESImage is the default KES image used while creating tenant
DefaultKESImage = "minio/kes:v0.18.0"

// DefaultOperatorServiceName is the default service name for operator
DefaultOperatorServiceName = "operator"
)

var (
// DeploymentReplicas is the number of replicas for MinIO Operator
DeploymentReplicas int32 = 1

// KESReplicas is the number of replicas for MinIO KES
KESReplicas int32 = 2

// ConsoleReplicas is the number of replicas for MinIO Console
ConsoleReplicas int32 = 2
)
4 changes: 0 additions & 4 deletions pkg/apis/minio.min.io/v1/globals.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,3 @@ package v1

// ClusterDomain is used to store the Kubernetes cluster domain
var ClusterDomain string

// KESIdentity is the public identity generated for MinIO Server based on
// Used only during KES Deployments
var KESIdentity string

0 comments on commit 33ae386

Please sign in to comment.