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

feat: add cosi transformer for harbor and kubecost #1544

Merged
merged 8 commits into from
Jan 27, 2025

Conversation

takirala
Copy link
Contributor

What type of PR is this?

Add a cosi secret transformer for harbor

What this PR does/ why we need it:

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Checklist

  • If a chart is changed, the chart version is correctly incremented.
  • The commit message explains the changes and why are needed.
  • The code builds and passes lint/style checks locally.
  • The relevant subset of integration tests pass locally.
  • The core changes are covered by tests.
  • The documentation is updated where needed.

Signed-off-by: Tarun Gupta Akirala <[email protected]>
Signed-off-by: Tarun Gupta Akirala <[email protected]>
@takirala takirala marked this pull request as ready for review January 25, 2025 02:43
@takirala takirala requested review from a team as code owners January 25, 2025 02:43
Signed-off-by: Tarun Gupta Akirala <[email protected]>
@takirala takirala force-pushed the tga/cosi-bucket-kit-updates branch from 10508f7 to 351652e Compare January 25, 2025 23:14
@takirala takirala changed the title feat: add harbor cosi transformer feat: add cosi transformer for harbor and kubecost Jan 25, 2025
--from-literal=REGISTRY_STORAGE_S3_SECRETKEY=$(kubectl get secret {{ .credentialsSecretName }} -n {{ $ns }} -o jsonpath="{.data.BucketInfo}" | base64 --decode | jq -r '.spec.secretS3.accessSecretKey') \
--dry-run=client -o yaml | kubectl apply -f -
# Create a configmap with the name of the secret from above.
kubectl create configmap {{ $cmName }} -n {{ $ns }} \
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
kubectl create configmap {{ $cmName }} -n {{ $ns }} \
kubectl create configmap {{ $cmName }} -n kommander \

The overrides CM needs to be created in the ns of the harbor HelmRelease - in the kommander ns.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed offline and since this doesn't work on attached clusters, decided to add a new namespace param (mesosphere/kommander-applications@bd212e4)

Signed-off-by: Tarun Gupta Akirala <[email protected]>
@takirala takirala requested a review from mhrabovcin January 27, 2025 19:17
@takirala takirala merged commit f5a80bb into master Jan 27, 2025
5 checks passed
@takirala takirala deleted the tga/cosi-bucket-kit-updates branch January 27, 2025 20:42
github-actions bot pushed a commit that referenced this pull request Jan 27, 2025
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

Successfully merging this pull request may close these issues.

3 participants