KusionStack / konfig

Shared repository of application models and components, and CI suite for GitOps workflows
Apache License 2.0
27 stars 32 forks source link

app-service not found in http-echo demo #92

Closed jakezhu9 closed 1 year ago

jakezhu9 commented 1 year ago

Bug Report

1. Minimal reproduce step (Required)

cd appops/http-echo/dev/
kusion apply -y
kubectl describe ingress example-ingress -n http-echo

2. What did you expect to see? (Required)

ingress works as expected

3. What did you see instead (Required)

Name:             example-ingress
Labels:           <none>
Namespace:        http-echo
Address:          
Ingress Class:    nginx
Default backend:  <default>
Rules:
  Host        Path  Backends
  ----        ----  --------
  *           
              /apple   app-service:5678 (<error: endpoints "app-service" not found>)
Annotations:  <none>

4. What is your KusionStack components version? (Required)

releaseVersion: v0.7.1
gitInfo:
    latestTag: v0.7.1
    commit: 10eac925825c1bd087ad590d78670d3bcad6d5fd
    treeState: clean
buildInfo:
    goVersion: go1.17.13
    GOOS: linux
    GOARCH: amd64
    numCPU: 2
    compiler: gc
    buildTime: "2022-11-02 13:04:49"
dependency:
    kclvmgoVersion: v0.4.3
    kclPluginVersion: v0.4.1-alpha2
jakezhu9 commented 1 year ago

this is because the backen service name doesn't match service name

https://github.com/KusionStack/konfig/blob/4ab1d7fa4e397fb20b7d875cb0a05e7d7b9a083a/appops/http-echo/base/base.k#L33

https://github.com/KusionStack/konfig/blob/4ab1d7fa4e397fb20b7d875cb0a05e7d7b9a083a/appops/http-echo/base/base.k#L18

I will make a pr to fix it soon