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

Fix Dir volumes #1213

Closed
vietanhtwdk opened this issue Jul 10, 2024 · 0 comments · Fixed by #1214
Closed

Fix Dir volumes #1213

vietanhtwdk opened this issue Jul 10, 2024 · 0 comments · Fixed by #1214
Labels
kind/bug Something isn't working

Comments

@vietanhtwdk
Copy link
Contributor

What happened?

If there are multiple containers, the later container volumes (sort by alphabet) config will overwrite all volumes.

What did you expect to happen?

deployment volume map correctly

How can we reproduce it (as minimally and precisely as possible)?

import kam.v1.app_configuration as ac
import service
import service.container as c
import network as n
import monitoring as m
import mysql
import service.container.probe as p

score_compose: ac.AppConfiguration {
    workload: service.Service {
        annotations: {
            "prefix.com/Another-Key_Annotation.2": "something else"
            "compose.score.dev/workload-name": "example-workload-name123"
        }
        replicas: 1
        containers: {
            container_one1: c.Container {
                image: "localhost:4000/repo/my-image:tag"
                dirs: {
                    "/abcd": "secret://sec-name/key"
                }
            }
            hello2: c.Container {
                image: "busybox2"
            }
        }
    }
}

hello2 don't have dirs so generated deployment for container_one1 won't have volumes

Anything else we need to know?

No response

Kusion version

$ kusion version
releaseVersion: 0.12.0
gitInfo:
    latestTag: v0.12.0
    commit: 88c4a179f71eb67b710736434691423213013530
    treeState: clean
buildInfo:
    goVersion: go1.22.4
    GOOS: linux
    GOARCH: amd64
    numCPU: 4
    compiler: gc
    buildTime: "2024-06-12 12:48:49"

OS version

# On Linux:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

$ uname -a
Linux vietanht-16Z90Q-GA56K 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux


# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

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

Successfully merging a pull request may close this issue.

1 participant