GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add secretTemplate to Certificate resources created by ingress-shim by mangeshhambarde · Pull Request #6839 · cert-manager/cert-manager

Conversation

@mangeshhambarde

@mangeshhambarde mangeshhambarde commented Mar 7, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Pull Request Motivation

These are the changes for implementing #6838.

This allows ingress-shim users to set the secretTemplate field on generated Certificate resources. This makes using secret sync tools (e.g. kubernetes-reflector) much simpler for ingress-shim users.

Added a new Ingress annotation cert-manager.io/secret-template whose value is a JSON representation of secretTemplate.

Kind

feature

Release Note

Added a new Ingress annotation for copying specific Ingress annotations to Certificate's secretTemplate

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mihaianghel and voron reacted with thumbs up emoji idgenchev reacted with hooray emoji hawksight and antoniolago reacted with rocket emoji
All reactions
  • 👍 2 reactions
  • 🎉 1 reaction
  • 🚀 2 reactions
@jetstack-bot jetstack-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. area/api Indicates a PR directly modifies the 'pkg/apis' directory needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 7, 2024
@jetstack-bot

jetstack-bot commented Mar 7, 2024

Copy link
Copy Markdown
Contributor

Hi @mangeshhambarde. Thanks for your PR.

I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jetstack-bot jetstack-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 7, 2024
This was referenced Mar 12, 2024
Support adding custom annotations to generated secret #2576
Closed
Create a CertificatePreset resource type to allow configurable defaulting #2239
Open
jsoref
jsoref reviewed Mar 12, 2024
View reviewed changes
Comment thread pkg/controller/certificate-shim/helper.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

mangeshhambarde added 2 commits March 13, 2024 14:18
@mangeshhambarde
New Ingress annotation for copying custom annotations to secret template
efe2e06
Signed-off-by: Mangesh Hambarde <[email protected]>
@mangeshhambarde
Add tests
717269e
Signed-off-by: Mangesh Hambarde <[email protected]>
@mangeshhambarde
mangeshhambarde force-pushed the ingress-annotations-for-secret-template branch from 1ff6f6e to 44a0e3f Compare March 13, 2024 14:22
@mangeshhambarde
JSON encoded secretTemplate as Ingress annotation
f3bfc93
Signed-off-by: Mangesh Hambarde <[email protected]>
@mangeshhambarde
mangeshhambarde force-pushed the ingress-annotations-for-secret-template branch from 44a0e3f to f3bfc93 Compare March 13, 2024 14:40
SgtCoDFish
SgtCoDFish approved these changes Mar 14, 2024
View reviewed changes

@SgtCoDFish SgtCoDFish left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

/lgtm
/approve

Looks great, thank you for this! Feels like we can be confident about this with the tests being there 😁 🚀

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SgtCoDFish

SgtCoDFish commented Mar 14, 2024

Copy link
Copy Markdown
Member

/ok-to-test

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jetstack-bot jetstack-bot added ok-to-test lgtm Indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 14, 2024
@jetstack-bot

jetstack-bot commented Mar 14, 2024

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SgtCoDFish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [SgtCoDFish]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 14, 2024
inteon
inteon reviewed Mar 14, 2024
View reviewed changes
Comment thread pkg/controller/certificate-shim/sync_test.go
Namespace: gen.DefaultTestNamespace,
Annotations: map[string]string{
cmapi.IngressClusterIssuerNameAnnotationKey: "issuer-name",
cmapi.IngressSecretTemplate: `{ "annotations": { "example-annotation" : "dummy-value" }, "labels": { "example-label" : "dummy-value" } }`,

@inteon inteon Mar 14, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think it will be easier to read and create these annotations if there was a separate annotation for SecretTemplateAnnotations and SecretTemplateLabels.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SgtCoDFish

SgtCoDFish commented Mar 14, 2024

Copy link
Copy Markdown
Member

/test pull-cert-manager-master-e2e-v1-28-upgrade

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jetstack-bot
jetstack-bot merged commit 5213a53 into cert-manager:master Mar 14, 2024
@mangeshhambarde mangeshhambarde mentioned this pull request May 28, 2024
Allow customizing labels copied from ingresses to certificates #6576
Closed
@inteon inteon mentioned this pull request Jun 18, 2024
ingress-shim: optionally copy specific annotation #7083
Merged
@uhthomas uhthomas mentioned this pull request Oct 23, 2024
cert-manager should not propagate gateway labels to certificates #7306
Closed
@morgoved

morgoved commented Nov 6, 2024

Copy link
Copy Markdown

can you pls help me, i try to add this
cert-manager.io/secret-template: {"annotations": {"reflector.v1.k8s.emberstack.com/reflection-allowed": "true","reflector.v1.k8s.emberstack.com/reflection-allowed-namespaces": "istio-system"}}

in my ingress config but have this error
error converting YAML to JSON: yaml: line 14: found character that cannot start any token

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jsoref

jsoref commented Nov 6, 2024

Copy link
Copy Markdown
Contributor

you might want to wrap the whole thing in '...'

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wallrj wallrj mentioned this pull request Jun 12, 2025
The ingress annotation cert-manager.io/secret-template is not documented cert-manager/website#1715
Open
@wallrj

wallrj commented Jun 12, 2025

Copy link
Copy Markdown
Member

This new annotation has not been documented:

  • The ingress annotation cert-manager.io/secret-template is not documented website#1715
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maelvls maelvls mentioned this pull request Nov 24, 2025
fix: dont copy kapp.k14s.io annotations from Ingress to created resources #8263
Open
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@inteon inteon inteon left review comments
@SgtCoDFish SgtCoDFish SgtCoDFish approved these changes
+1 more reviewer
@jsoref jsoref jsoref left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/api Indicates a PR directly modifies the 'pkg/apis' directory dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. ok-to-test release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@mangeshhambarde @jetstack-bot @SgtCoDFish @morgoved @jsoref @wallrj @inteon
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.