<#4954 [BUG] flyte-binary chart: webhook service n...
# flyte-github
c
#4954 [BUG] flyte-binary chart: webhook service name isn't respected Issue created by ldunkum ### Describe the bug We deployed the flyte-binary chart and are having problems mounting secrets from k8s secrets. This is the workflow: secret = Secret( group="dotfile-secret", key=".secret-file", ) @task( requests=Resources(cpu="100m", mem="500Mi"), limits=Resources(cpu="100m", mem="500Mi"), secret_requests=[secret] ) def greeting_length(greeting: str) -> int: """A task the counts the length of a greeting.""" secret_content = context.secrets.get("dotfile-secret", ".secret-file") return len(greeting) This is the full error message in the flyte UI:
Workflow[flytesnacks:development:workflows.example.wf] failed. RuntimeExecutionError: max number of system retry attempts [11/10] exhausted. Last known status message: failed at Node[n1]. RuntimeExecutionError: failed during plugin execution, caused by: failed to execute handle for plugin [container]: [InternalError] failed to create resource, caused by: Internal error occurred: failed calling webhook "flyte-pod-webhook.flyte.org": failed to call webhook: Post "https://flyte-pod-webhook.dev-flyte.svc:443/mutate--v1-pod?timeout=10s": service "flyte-pod-webhook" not found
The service can't be reached, as it doesn't exist under the default name, the service name of the webhook was generated as
flyte-flyte-binary-webhook
. The configuration should be fine, as can be seen by the config file inside the container: #/etc/flyte/config.d/000-core.yaml webhook: serviceName: flyte-flyte-binary-webhook flyte: propeller: disableWebhook: false disabled: false It seems as if the service name from the config file isn't picked up, and instead the default value is used. ### Expected behavior We expect flyte to respect the configured name. ### Additional context to reproduce 1. Set flyte-binary.fullname to anything besides the default 2. Try to mount secrets in a Task and execute said task ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte