Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karaguo opened this issue Oct 3, 2023 · 1 comment

Comments

@karaguo
Copy link
Contributor

karaguo commented Oct 3, 2023

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.

  • at harbrocluster CR, set resource configuration differently between registry and registryctl
registry:
  resources:
    requests:
      cpu: 1000m
registryctl:
  resources:
    requests:
      cpu: 50m
  • after reconciling, both container registry and registryctl in registry deployment both follow the configuration set for registry

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
Copy link
Contributor Author

karaguo commented Oct 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant