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

fix issues #898 #900

Merged
merged 3 commits into from
Apr 17, 2024
Merged

fix issues #898 #900

merged 3 commits into from
Apr 17, 2024

Conversation

Cloudzp
Copy link
Contributor

@Cloudzp Cloudzp commented Apr 16, 2024

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #898

Special notes for your reviewer:

Copy link
Contributor

github-actions bot commented Apr 16, 2024

🎉 Successfully Build Images.
Now Support ARM Platforms.
Comment Post Time: 2024-04-17 16:21
Git Version: d8d5dd2

Docker Registry

Overview: https://hub.docker.com/u/gocrane

Image Pull Command
crane-agent:pr-900-d8d5dd2 docker pull gocrane/crane-agent:pr-900-d8d5dd2
dashboard:pr-900-d8d5dd2 docker pull gocrane/dashboard:pr-900-d8d5dd2
metric-adapter:pr-900-d8d5dd2 docker pull gocrane/metric-adapter:pr-900-d8d5dd2
craned:pr-900-d8d5dd2 docker pull gocrane/craned:pr-900-d8d5dd2

Quick Deploy - Helm

helm repo add crane https://finops-helm.pkg.coding.net/gocrane/gocrane
helm install crane -n crane-system --create-namespace \
                   --set craned.image.repository=gocrane/craned \
                   --set craned.image.tag=pr-900-d8d5dd2 \
                   --set metricAdapter.image.repository=gocrane/metric-adapter \
                   --set metricAdapter.image.tag=pr-900-d8d5dd2 \
                   --set craneAgent.image.repository=gocrane/crane-agent \
                   --set craneAgent.image.tag=pr-900-d8d5dd2 \
                   --set cranedDashboard.image.repository=gocrane/dashboard \
                   --set cranedDashboard.image.tag=pr-900-d8d5dd2 crane/crane

Coding Registry

Overview: https://finops.coding.net/public-artifacts/gocrane/crane/packages

Image Pull Command
crane-agent:pr-900-d8d5dd2 docker pull finops-docker.pkg.coding.net/gocrane/crane/crane-agent:pr-900-d8d5dd2
dashboard:pr-900-d8d5dd2 docker pull finops-docker.pkg.coding.net/gocrane/crane/dashboard:pr-900-d8d5dd2
metric-adapter:pr-900-d8d5dd2 docker pull finops-docker.pkg.coding.net/gocrane/crane/metric-adapter:pr-900-d8d5dd2
craned:pr-900-d8d5dd2 docker pull finops-docker.pkg.coding.net/gocrane/crane/craned:pr-900-d8d5dd2

Quick Deploy - Helm

helm repo add crane https://finops-helm.pkg.coding.net/gocrane/gocrane
helm install crane -n crane-system --create-namespace \
                   --set craned.image.repository=finops-docker.pkg.coding.net/gocrane/crane/craned \
                   --set craned.image.tag=pr-900-d8d5dd2 \
                   --set metricAdapter.image.repository=finops-docker.pkg.coding.net/gocrane/crane/metric-adapter \
                   --set metricAdapter.image.tag=pr-900-d8d5dd2 \
                   --set craneAgent.image.repository=finops-docker.pkg.coding.net/gocrane/crane/crane-agent \
                   --set craneAgent.image.tag=pr-900-d8d5dd2 \
                   --set cranedDashboard.image.repository=finops-docker.pkg.coding.net/gocrane/crane/dashboard \
                   --set cranedDashboard.image.tag=pr-900-d8d5dd2 crane/crane

Ghcr Registry

Overview: https://github.com/orgs/gocrane/packages?repo_name=crane

Image Pull Command
crane-agent:pr-900-d8d5dd2 docker pull ghcr.io/gocrane/crane/crane-agent:pr-900-d8d5dd2
dashboard:pr-900-d8d5dd2 docker pull ghcr.io/gocrane/crane/dashboard:pr-900-d8d5dd2
metric-adapter:pr-900-d8d5dd2 docker pull ghcr.io/gocrane/crane/metric-adapter:pr-900-d8d5dd2
craned:pr-900-d8d5dd2 docker pull ghcr.io/gocrane/crane/craned:pr-900-d8d5dd2

Quick Deploy - Helm

helm repo add crane https://finops-helm.pkg.coding.net/gocrane/gocrane
helm install crane -n crane-system --create-namespace \
                   --set craned.image.repository=ghcr.io/gocrane/crane/craned \
                   --set craned.image.tag=pr-900-d8d5dd2 \
                   --set metricAdapter.image.repository=ghcr.io/gocrane/crane/metric-adapter \
                   --set metricAdapter.image.tag=pr-900-d8d5dd2 \
                   --set craneAgent.image.repository=ghcr.io/gocrane/crane/crane-agent \
                   --set craneAgent.image.tag=pr-900-d8d5dd2 \
                   --set cranedDashboard.image.repository=ghcr.io/gocrane/crane/dashboard \
                   --set cranedDashboard.image.tag=pr-900-d8d5dd2 crane/crane

Copy link
Contributor

@mfanjie mfanjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

return IndexKey{
Kind: r.Spec.TargetRef.Kind,
APIVersion: r.Spec.TargetRef.APIVersion,
Namespace: r.Spec.TargetRef.Namespace,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed with @Cloudzp, no matter what mode craned is running, namespace is always being set on recommendation obj. so this safe for now, we need to make sure namespace is always being set even recommendation and target is in same namespace, otherwise this would cause
messes

@mfanjie mfanjie merged commit 4f4e3cd into gocrane:main Apr 17, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

craned cpu utilization continues at 100% and resource and replicas recommended values are older
2 participants