wasmCloud / wasmcloud-operator

Kubernetes operator for declaratively deploying wasmCloud applications (via wadm) and hosts on Kubernetes.
Apache License 2.0
28 stars 9 forks source link

Getting a specific application doesn't show deployed version or status #50

Closed liamwh closed 3 months ago

liamwh commented 3 months ago
❯ kubectl get application/tinygo-http-hello-world
APPLICATION               DEPLOYED VERSION   LATEST VERSION               STATUS
tinygo-http-hello-world   N/A                01J178TEAC99KNCD18CXDJQXHP   N/A

❯ kubectl get applications                       
APPLICATION               DEPLOYED VERSION   LATEST VERSION               STATUS
tinygo-http-hello-world   v0.0.3             01J178TEAC99KNCD18CXDJQXHP   Deployed
liamwh commented 3 months ago

kubectl get application/tinygo-http-hello-world -o yaml produces:

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
  annotations:
    description: HTTP hello world demo in Golang (TinyGo), using the WebAssembly Component
      Model and WebAssembly Interfaces Types (WIT)
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"core.oam.dev/v1beta1","kind":"Application","metadata":{"annotations":{"description":"HTTP hello world demo in Golang (TinyGo), using the WebAssembly Component Model and WebAssembly Interfaces Types (WIT)"},"name":"tinygo-http-hello-world","namespace":"wasmcloud"},"spec":{"components":[{"n
ame":"http-hello-world-go","properties":{"config":[{"name":"timezone","properties":{"TZ":"Europe/Amsterdam"}}],"image":"redacted:0.0.2"},"traits":[{"properties":{"replicas":1},"type":"spreadscaler"}],"type":"component"},{"name":"httpserve
r","properties":{"image":"redacted"},"traits":[{"properties":{"interfaces":["incoming-handler"],"namespace":"wasi","package":"http","source_config":[{"name":"default-http","properties":{"address":"0.0.0.0:8062"}}],"target":"http-hello-worl
d-go"},"type":"link"}],"type":"capability"}]}}
    version: 01J178TEAC99KNCD18CXDJQXHP
  labels:
    app.kubernetes.io/instance: tinygo-http-hello-world
  name: tinygo-http-hello-world
  namespace: wasmcloud
  resourceVersion: bc13ddae-da51-5e76-9334-613ec1bd8144
  uid: bc13ddae-da51-5e76-9334-613ec1bd8144
spec:
  components:
  - name: http-hello-world-go
    properties:
      config:
      - name: timezone
        properties:
          TZ: Europe/Amsterdam
      image: redacted
    traits:
    - properties:
        instances: 1
      type: spreadscaler
    type: component
  - name: httpserver
    properties:
      image: redacted
    traits:
    - properties:
        interfaces:
        - incoming-handler
        namespace: wasi
        package: http
        source_config:
        - name: default-http
          properties:
            address: 0.0.0.0:8062
        target: http-hello-world-go
      type: link
    type: capability
status:
  phase: Deployed