Find certificate with selector
@@ -115,7 +115,9 @@ var _ = Describe("<Scenario3> RKE, Private CA, Service", func() {
// Verify cluster_issuer is used
out, err = proc.RunW("kubectl", "get", "certificate",
- "-n", testenv.DefaultWorkspace, appName, "-o", "jsonpath='{.spec.issuerRef.name}'")
+ "-n", testenv.DefaultWorkspace,
+ "--selector", "app.kubernetes.io/name="+appName,
+ "-o", "jsonpath='{.items[*].spec.issuerRef.name}'")
Expect(err).NotTo(HaveOccurred(), out)
Expect(out).To(Equal("'private-ca'"))
})
