spring-cloud-dataflow
spring-cloud-dataflow copied to clipboard
When setting schedule using Composed task, platform is not working
Description: I have a composed task, and set schedule in one of platforms (not default ns) in k8s. actually manual launching is ok, I checked that be added argument '--platform-name=platform1' but in case of schedule as cronjob, the platform is not set, so composed runner tries to call dependent task using default platform. only composed runner uses desired platform. dependent task can not be launched desired platform through schedule.
but If I forcibly add '--platform-name=platform1' args, it works well. we need to discuss about that. :(
Release versions: spring dataflow 2.11
Steps to reproduce:
- make composed task
- set schedule in platform1. not default platform
Screenshots: attached composed runner log
org.springframework.cloud.dataflow.rest.client.DataFlowClientException: Failure executing: POST at: https://10.100.0.1/api/v1/namespaces/default/pods. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. pods "app1" is forbidden: error looking up service account default/app1: serviceaccount "sapp1" not found.
Additional context: Add any other context about the problem here.