goharbor / harbor-operator

Kubernetes operator for Harbor service components
Apache License 2.0
350 stars 107 forks source link

harborcluster registryctl resources config is not used by registryctl container #1072

Open karaguo opened 1 year ago

karaguo commented 1 year ago

If you are reporting a problem, please make sure the following information are provided:

Expected behavior and actual behavior: A clear and concise description of what you expected to happen and what's the actual behavior. If applicable, add screenshots to help explain your problem.

Expected: The resource config set in harborcluster CR in spec.registryctl.resources is expected to control the real resource configuration in registry deployment registryctl container.

Actual: The resource config in spec.registryctl.resources such as cpu resource request doesn't take effect when the values are different from the ones in spec.registry.resources

Steps to reproduce the problem: Please provide the steps to reproduce this problem.

Versions: Please specify the versions of following systems.

harbor operator version: 1.2.0 harbor version: 2.6.2 kubernetes version: 1.24.2

karaguo commented 1 year ago

It is because all containers including registry and registryctl in deployment registry are populated with the resource configuration values provided by registry component spec, as code and code. The configuration in registryctl component spec is not used