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 configurable caInjectionAnnotations for cert-manager support #2671

Closed
wants to merge 10 commits into from

Conversation

aryasoni98
Copy link

@aryasoni98 aryasoni98 commented Dec 12, 2023

Description

Please include a short summary of the changes and the related issue.
Please also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes #2635

How to test

Please describe how to run the tests that you ran to verify your changes.
Provide instructions so we can reproduce.
Please also provide information about any automatic tests that you added.

  • Manual Test A
  • Unit Test B
  • Integration Test C

Checklist

  • My PR fulfills the Definition of Done of the corresponding issue and not more (or parts if the issue is separated
    into multiple PRs)
  • I used descriptive commit messages to help reviewers understand my thought process
  • I signed off all my commits according to the Developer Certificate of Origin (DCO)
    see Contribution Guide
  • My PR title is formatted according to the semantic PR conventions described in
    the Contribution Guide
  • My code follows the style guidelines of this project (golangci-lint passes, YAMLLint passes)
  • I regenerated the auto-generated docs for Helm and the CRD documentation (if applicable)
  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation (if needed)
  • My changes result in all-green PR checks (first-time contributors need to ask a maintainer to approve their test runs)
  • New and existing unit and integration tests pass locally with my changes

Summary

This PR introduces configurable annotations to support a variety of CA injection methods from cert-manager.io within the Keptn lifecycle toolkit. Previously, the annotation cert-manager.io/inject-ca-from: 'helmtests/keptn-certs' was hardcoded, limiting flexibility. The change allows users to specify any annotations for CA injection, enhancing the toolkit's integration capabilities with cert-manager.io.

Motivation: The motivation for this change is to provide users with the ability to tailor cert-manager.io integration to their specific needs, accommodating a broader range of certificate management scenarios.

Context: This change was prompted by user feedback and the need for more dynamic configuration options in cloud-native environments.

Dependencies: No additional dependencies are required for this change; however, users will need to have cert-manager.io configured in their Kubernetes cluster to utilize the new annotations.

Fixes #2635

Checks

  • My PR fulfills the Definition of Done of the corresponding issue and not more (or parts if the issue is separated
    into multiple PRs)
  • I used descriptive commit messages to help reviewers understand my thought process
  • I signed off all my commits according to the Developer Certificate of Origin (DCO)(
    see Contribution Guide)
  • My PR title is formatted according to the semantic PR conventions described in
    the Contribution Guide
  • My content follows the style guidelines of this project (YAMLLint, markdown-lint)
  • I regenerated the auto-generated docs for Helm and the CRD documentation (if applicable)
  • I have performed a self-review of my content including grammar and typo errors and also checked the rendered page
    from the Netlify deploy preview
  • My changes result in all-green PR checks (first-time contributors need to ask a maintainer to approve their test runs)

@aryasoni98 aryasoni98 requested a review from a team as a code owner December 12, 2023 09:56
Copy link

netlify bot commented Dec 12, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 019e84f
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/657b52adc6f0820007e9a2e3
😎 Deploy Preview https://deploy-preview-2671--keptn-lifecycle-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@aryasoni98 aryasoni98 changed the title Add configurable caInjectionAnnotations for cert-manager support fix: Add configurable caInjectionAnnotations for cert-manager support Dec 12, 2023
@aryasoni98 aryasoni98 changed the title fix: Add configurable caInjectionAnnotations for cert-manager support feat: Add configurable caInjectionAnnotations for cert-manager support Dec 12, 2023
@aryasoni98 aryasoni98 changed the title feat: Add configurable caInjectionAnnotations for cert-manager support feat: add configurable caInjectionAnnotations for cert-manager support Dec 12, 2023
@github-actions github-actions bot added documentation Improvements or additions to documentation metrics-operator lifecycle-operator labels Dec 12, 2023
@aryasoni98
Copy link
Author

@odubajDT I just wanted to let you know that I've submitted PR. It would be great if you could take a look at it. Please let me know if there are any changes or improvements needed. Your feedback would be really valuable.

chart/values.yaml Outdated Show resolved Hide resolved
aryasoni98 and others added 6 commits December 13, 2023 15:15
Signed-off-by: Moritz Wiesinger <[email protected]>
Co-authored-by: Meg McRoberts <[email protected]>
Signed-off-by: Arya Soni <[email protected]>
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Arya Soni <[email protected]>
Signed-off-by: Arya Soni <[email protected]>
@github-actions github-actions bot removed the ops label Dec 13, 2023
@aryasoni98
Copy link
Author

@RealAnna I just fixed all the bugs. Please review it.

@aryasoni98 aryasoni98 requested a review from RealAnna December 14, 2023 10:10
Copy link
Member

@mowies mowies left a comment

Choose a reason for hiding this comment

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

on hold since there's an earlier PR open for this, please align with each other and close on of the 2 PRs

@aryasoni98 aryasoni98 closed this Dec 22, 2023
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

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

Successfully merging this pull request may close these issues.

Introduce configurable annotations for cert-manager.io support
3 participants