We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9723791 + 18b712c commit 79aa96dCopy full SHA for 79aa96d
pkg/certs/cert-inspection/certgraphanalysis/metadata_options.go
@@ -149,6 +149,15 @@ var (
149
return timestampReg.ReplaceAllString(path, "<timestamp>.pem")
150
},
151
}
152
+ RewritePrimaryCertBundleSecret = &metadataOptions{
153
+ rewriteSecretFn: func(secret *corev1.Secret) {
154
+ if secret.Namespace != "openshift-ingress" || !strings.HasSuffix(secret.Name, "-primary-cert-bundle-secret") {
155
+ return
156
+ }
157
+ hash := strings.TrimSuffix(secret.Name, "-primary-cert-bundle-secret")
158
+ secret.Name = strings.ReplaceAll(secret.Name, hash, "<hash>")
159
+ },
160
161
)
162
163
// skipRevisionedInOnDiskLocation returns true if location is for revisioned certificate and needs to be skipped
0 commit comments