Skip to content
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

[Bug] [K8S] projectname is missing #14651

Closed
2 of 3 tasks
Gallardot opened this issue Jul 28, 2023 · 3 comments
Closed
2 of 3 tasks

[Bug] [K8S] projectname is missing #14651

Gallardot opened this issue Jul 28, 2023 · 3 comments
Labels
backend bug Something isn't working Stale

Comments

@Gallardot
Copy link
Member

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

Create a K8S task. Some parameters of ds are transformed into environment variables passed to the pod of k8s.
But you'll notice that system.project.name is empty in the environment variable.

    spec:
      containers:
        - name: aaa-2
          image: busyboy:latest
          env:
            - name: taskInstanceId
              value: '2'
            - name: system.task.definition.name
              value: aaa
            - name: system.project.name
            - name: system.project.code
              value: '10377893770976'
            - name: system.workflow.instance.id
              value: '2'
            - name: system.biz.curdate
              value: '20230728'
            - name: system.biz.date
              value: '20230727'
            - name: system.task.instance.id
              value: '2'
            - name: system.workflow.definition.name
              value: '1111'
            - name: system.task.definition.code
              value: '10377975344097'
            - name: system.workflow.definition.code
              value: '10377979443552'
            - name: system.datetime
              value: '20230728094029'
          resources:
            limits:
              cpu: '2'
              memory: 40Mi
            requests:
              cpu: '1'
              memory: 20Mi

What you expected to happen

system.project.name should be passed correctly

How to reproduce

As described above

Anything else

No response

Version

dev

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@Gallardot Gallardot added bug Something isn't working Waiting for reply Waiting for reply labels Jul 28, 2023
@SbloodyS SbloodyS added backend and removed Waiting for reply Waiting for reply labels Jul 28, 2023
@Radeity
Copy link
Member

Radeity commented Jul 30, 2023

It seems not only for k8s task, we never set value of projectName for ProcessDefinition. cc @zhongjiajie

@Gallardot Gallardot removed their assignment Aug 4, 2023
@github-actions
Copy link

github-actions bot commented Sep 4, 2023

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Sep 4, 2023
@github-actions
Copy link

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

3 participants