https://pulumi.com logo
Title
b

bitter-carpenter-93554

09/20/2022, 2:27 AM
Another question: when I specify
projectRepo
with subfolder path I am getting the following error. Is there are a way to specify subfolder for the repo?
unable to clone repo: invalid pkt-len found
@sparse-park-68967 could you please help here?
s

sparse-park-68967

09/20/2022, 4:53 PM
Can you post the stack CR you are using?
b

bitter-carpenter-93554

09/20/2022, 4:58 PM
const mystack = new k8s.apiextensions.CustomResource("app1-s3-stack", {
    apiVersion: '<http://pulumi.com/v1|pulumi.com/v1>',
    kind: 'Stack',
    spec: {
        stack: stackName,
        //useLocalStackOnly: true,
        projectRepo: stackProjectRepo,
        gitAuth: {
            accessToken: {
                type: "Secret",
                secret: {
                    name: awsCreds.metadata.name,
                    key: "accessToken",
                },
            }
        },
        branch: "refs/heads/master",
        refresh: true,
        continueResyncOnCommitMatch: true,
        resyncFrequencySeconds: 90,
        envRefs: { ...
where
const stackProjectRepo = config.get("stackProjectRepo") || "<https://git.private.repo.com/DX-ACP-UIPS-SRE/infra-pulumi/projects/test-s3-op-project>";
so `
<https://git.private.repo.com/DX-ACP-UIPS-SRE/infra-pulumi/>
is git repo and `
/projects/test-s3-op-project
is subfolders in them. I was planning to have multiple projects (multiple subfolders) in same git repo
is there a way to specify
projectRepo
and some kind of
path
to subfolder?
s

sparse-park-68967

09/20/2022, 5:03 PM
Yeah you want the project repo to be the base for the repository and the sub directory should be specified with
repoDir
https://github.com/pulumi/pulumi-kubernetes-operator/blob/master/docs/stacks.md - look for repoDir. Sadly the docs generator we use doesn't hyperlink leaf configs.
b

bitter-carpenter-93554

09/20/2022, 5:06 PM
perfect, thank you very much )
👍 1