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 imagePullScrets #396

Merged
merged 7 commits into from
Aug 5, 2024
Merged

feat: add imagePullScrets #396

merged 7 commits into from
Aug 5, 2024

Conversation

mgarciaLKS
Copy link
Contributor

Description

This work has been done together with @gomezbc

The imagePullSecrets field allows you to specify secrets needed to pull Docker images from private repositories.

Why

In many organizations, container images are stored in private registries rather than public ones for security and compliance reasons. To pull these images, Kubernetes needs credentials, which are provided via imagePullSecrets. This code dynamically includes the necessary secrets for pulling images, based on the configuration provided in the Helm chart's values file.

Next Steps

Would it be interesting to add this implementation to other tractus-x charts?

Checklist

Please delete options that are not relevant.

  • I have performed a self-review of my changes
  • I have successfully tested my changes
  • I have added comments in the default values.yaml file with helm-docs syntax ('# -- ') if relevant for installation
  • I have commented my changes, particularly in hard-to-understand areas

@evegufy evegufy self-requested a review August 2, 2024 13:08
Copy link
Contributor

@evegufy evegufy left a comment

Choose a reason for hiding this comment

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

@mgarciaLKS thank you for the contribution, looks very good in general!
could you please also add values to the values.yaml with an empty array, an commented out example and an install comment, just as an example, similar to to this value

@mgarciaLKS
Copy link
Contributor Author

@evegufy Thanks for the feedback.
I have added the changes you have requested concerning the comments in the values.yaml

charts/portal/values.yaml Outdated Show resolved Hide resolved
@mgarciaLKS
Copy link
Contributor Author

@evegufy Thanks again for the feedback, I think the proposed changes are very good and have been implemented.

charts/portal/templates/deployment-backend-services.yaml Outdated Show resolved Hide resolved
charts/portal/templates/deployment-frontend-portal.yaml Outdated Show resolved Hide resolved
charts/portal/templates/deployment-frontend-assets.yaml Outdated Show resolved Hide resolved
charts/portal/templates/deployment-frontend-portal.yaml Outdated Show resolved Hide resolved
@mgarciaLKS
Copy link
Contributor Author

@evegufy You are totally right, my fault, I've gone overboard with the refactoring. Sorry.

@evegufy
Copy link
Contributor

evegufy commented Aug 5, 2024

@evegufy You are totally right, my fault, I've gone overboard with the refactoring. Sorry.

Hi @mgarciaLKS no worries, it's really awesome that you provided this feature 💯

As you asked under "Next Steps" :) this would be a nice feature also for the charts in the following repos:

@evegufy evegufy merged commit 7bd92d2 into eclipse-tractusx:main Aug 5, 2024
4 checks passed
@evegufy evegufy added this to the Release 2.2.0 milestone Aug 5, 2024
@mgarciaLKS mgarciaLKS mentioned this pull request Sep 18, 2024
4 tasks
evegufy pushed a commit that referenced this pull request Sep 19, 2024
previously deployments have been enabled #396
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.

2 participants