-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k8s outpost integration: _ in outpost name breaks deployment #12568
Labels
Comments
<html>
<body>
<!--StartFragment-->
Traceback (most recent call last): File "/authentik/outposts/tasks.py", line 153, in outpost_controller logs = getattr(controller, f"{action}_with_logs")() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/authentik/outposts/controllers/kubernetes.py", line 112, in up_with_logs raise ControllerException(str(exc)) from exc authentik.outposts.controllers.base.ControllerException: (422) Reason: Unprocessable Entity HTTP response headers: HTTPHeaderDict({'Audit-Id': '1294919c-daee-4bf0-a274-fd46ca48a520', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Kubernetes-Pf-Flowschema-Uid': 'db51198e-ee5f-42b2-bb90-b594d20affbf', 'X-Kubernetes-Pf-Prioritylevel-Uid': '1687c46b-5bc7-4244-a41d-1d9615bec865', 'Date': 'Mon, 06 Jan 2025 12:27:00 GMT', 'Content-Length': '934'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Secret \"ak-outpost-ldap_outpost\" is invalid: metadata.name: Invalid value: \"ak-outpost-ldap_outpost\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')","reason":"Invalid","details":{"name":"ak-outpost-ldap_outpost","kind":"Secret","causes":[{"reason":"FieldValueInvalid","message":"Invalid value: \"ak-outpost-ldap_outpost\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')","field":"metadata.name"}]},"code":422}
--
<!--EndFragment-->
</body>
</html> I don't know how I did not see this before but it seems that in a k8s env, naming the outpost sith a "_" character breaks the creation of the secret. It worked after renaming "ldap_outpost" to "ldap-outpost" |
rissson
changed the title
Outpost created from blueprint does not start k8s components
k8s outpost integration: _ in outpost name breaks deployment
Jan 8, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When deploying an outpost in a k8s environment using blueprints via helm, the deployments, secrets and other components are not created.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
k8s deployment of the outpost should happen
Screenshots
Consider these two outpost the see logs:
Logs
The outpost created with the blueprint has no k8s resources deployed, even if it is has a service_connection to k8s
Version and Deployment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: