Skip to content

Commit

Permalink
Merge pull request #137 from bcgov/dev
Browse files Browse the repository at this point in the history
fix for custom certs - kube: default sslCertSerial to None
  • Loading branch information
rustyjux authored Nov 21, 2024
2 parents 118f0ad + a1a4bcf commit 85ee843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microservices/kubeApi/routers/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async def verify_and_create_routes(namespace: str, request: Request):
"dataPlane": route["spec"]["to"]["name"],
"sessionCookieEnabled": True if route["metadata"]["labels"].get("aps-template-version") == "v1" else False,
"dataClass": route["metadata"]["annotations"].get("aviinfrasetting.ako.vmware.com/name").split("-")[-1] if route["metadata"]["annotations"].get("aviinfrasetting.ako.vmware.com/name") else None,
"sslCertificateSerialNumber": route["metadata"]["labels"].get("aps-certificate-serial", "default")
"sslCertificateSerialNumber": route["metadata"]["labels"].get("aps-certificate-serial")
}
)

Expand Down

0 comments on commit 85ee843

Please sign in to comment.