Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 committed Dec 1, 2023
1 parent 9a0201d commit d0f264f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions operators/cmd/tenant-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ func main() {
flag.Var(&mydrivePVCsSize, "mydrive-pvcs-size", "The dimension of the user's personal space")
flag.StringVar(&mydrivePVCsStorageClassName, "mydrive-pvcs-storage-class-name", "rook-nfs", "The name for the user's storage class")
flag.StringVar(&myDrivePVCsNamespace, "mydrive-pvcs-namespace", "mydrive-pvcs", "The namespace where the PVCs are created")
flag.IntVar(&forge.CapInstance, "cap-instance", 25, "The cap number of instances that can be requested by a Tenant.")
flag.IntVar(&forge.CapCPU, "cap-cpu", 50, "The cap amount of CPU cores that can be requested by a Tenant.")
flag.IntVar(&forge.CapMemoryGiga, "cap-memory-giga", 10, "The cap amount of RAM memory in gigabytes that can be requested by a Tenant.")
flag.IntVar(&forge.CapInstance, "cap-instance", 10, "The cap number of instances that can be requested by a Tenant.")
flag.IntVar(&forge.CapCPU, "cap-cpu", 25, "The cap amount of CPU cores that can be requested by a Tenant.")
flag.IntVar(&forge.CapMemoryGiga, "cap-memory-giga", 50, "The cap amount of RAM memory in gigabytes that can be requested by a Tenant.")

klog.InitFlags(nil)
flag.Parse()
Expand Down
6 changes: 3 additions & 3 deletions operators/pkg/forge/resourcequota.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ const (
)

var (
// CapInstance -> The cap number of instances that can be requested by a Tenant.
// CapInstance -> The maximum number of instances that can be started by a Tenant.
CapInstance int

// CapCPU -> The cap amount of CPU cores that can be requested by a Tenant.
// CapCPU -> The total amount of CPU cores that can be requested by a Tenant.
CapCPU int

// CapMemoryGiga -> The cap amount of RAM memory in gigabytes that can be requested by a Tenant.
// CapMemoryGiga -> The total amount of RAM (in gigabytes) that can be requested by a Tenant.
CapMemoryGiga int

// SandboxCPUQuota -> The maximum amount of CPU cores that can be used by a sandbox namespace.
Expand Down

0 comments on commit d0f264f

Please sign in to comment.