You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// getCASecretAndConfigMapInCluster gets CA secret and configmap of the given name and namespace.
255
-
// it only returns both if they are found and nil if both are not found. In the case if only one of them is found, then we error out because we expect either both CA secret and configmap exit or not.
303
+
// it only returns both if they are found and nil if both are not found. In the case if only one of them is found,
304
+
// then we error out because we expect either both CA secret and configmap exit or not.
305
+
//
306
+
// NOTE: both the CA secret and configmap have the same name with template `<cr-kind>-<cr-name>-ca` which is what the
// TestOnlyAppSecretExist tests a case where the application TLS asset exists but its correspoding CA asset doesn't. In this case, CertGenerator can't genereate a new CA because it won't verify the existing application TLS cert. Therefore, CertGenerator can't proceed and returns an error to the caller.
124
+
// TestOnlyAppSecretExist tests a case where the application TLS asset exists but its
125
+
// correspoding CA asset doesn't. In this case, CertGenerator can't genereate a new CA because
126
+
// it won't verify the existing application TLS cert. Therefore, CertGenerator can't proceed
0 commit comments