Improve array field characteristics in API#7886
Improve array field characteristics in API#7886erikgb wants to merge 1 commit intocert-manager:masterfrom
Conversation
| // Requested DNS subject alternative names. | ||
| // +optional | ||
| // +listType=set | ||
| DNSNames []string `json:"dnsNames,omitempty"` |
There was a problem hiding this comment.
Some users might depend on the ordering of DNS names in their x509 certificates.
There was a problem hiding this comment.
Hmmm, does order of DNS names in a certificate matter? Maybe @SgtCoDFish knows?
There was a problem hiding this comment.
@inteon, I don't think this affects the order at all. This is what ChatGPT responded:
Short answer: No — +listType=set does not affect sorting or ordering.
It affects equality semantics and merge behavior, not order.
And this is exactly what I am trying to improve in this PR.
|
I think we should wait with this PR until the upstream PR (kubernetes-sigs/gateway-api#3964) has landed. /hold |
b46af33 to
94b8cdb
Compare
|
Learning from my upstream PR to do the same thing in Gateway API, I will create a new PR for just adding the missing markers. After that PR is merged, I will rebase this PR to allow us to continue the discussions on this PR. |
94b8cdb to
42f8e26
Compare
42f8e26 to
d4e27ae
Compare
6a5741b to
4fb2ec2
Compare
|
/kind bug |
4fb2ec2 to
a853422
Compare
Signed-off-by: Erik Godding Boye <egboye@gmail.com>
a853422 to
cb3702e
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/retest |
Pull Request Motivation
This is a follow-up after #7872, which included a report of API violations detected by the OpenAPI generator. Missing markers explicitly set to
atomicwere done in #7900. This PR suggests some changes that are technically breaking, but that could be performed as a bugfix.This change will allow server-side apply to do the right thing when users are using SSA to manage cert-manager resources.
Kind
/kind bug
Release Note