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

[Feature] why this workflowrun demo failed. #186

Open
Growing111 opened this issue Mar 11, 2024 · 0 comments
Open

[Feature] why this workflowrun demo failed. #186

Growing111 opened this issue Mar 11, 2024 · 0 comments

Comments

@Growing111
Copy link

Growing111 commented Mar 11, 2024

I use this demo
https://github.com/kubevela/workflow/blob/main/examples/workflow-run/apply-applications.yaml

yaml is

apiVersion: core.oam.dev/v1alpha1
kind: WorkflowRun
metadata:
  name: apply-applications
  namespace: default
  annotations:
    workflowrun.oam.dev/debug: "true"
spec:
  workflowSpec:
    steps:
      - name: apply-app2
        type: apply-app
        properties:
          ref:
            name: my-app
            key: application
            type: configMap
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: my-app
  namespace: default
data:
  application: |
    apiVersion: core.oam.dev/v1beta1
    kind: Application
    metadata:
      name: webservice-app2
    spec:
      components:
        - name: express-server2
          type: webservice
          properties:
            image: crccheck/hello-world
            ports:
              - port: 8000

kubevela version : v1.8.1
workflow version: v0.5.0

result:

the workflowrun status is failed

error message :

 run step(provider=kube,do=apply): the body of the request was in an unknown format - accepted media types include: application/json-patch+json, application/merge-patch+json, application/apply-patch+yaml

but webservice-app2 application is running and have a pod express-server2-58f7474c55-txqxk is runing

the next ,The yaml file I use under configMap is in another namespace test

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
  name: webservice-app2
  namespace: test
spec:
  components:
    - name: express-server2
      type: webservice
      properties:
        image: crccheck/hello-world
        ports:
          - port: 8000

the application in namespace test is successed and running ,

why apply-applications workflowrun prompt messaget is unknown format and status is failed

@Growing111 Growing111 changed the title [Feature] why the workflowrun demo failed. [Feature] why this workflowrun demo failed. Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant