*Another question*: when I specify `projectRepo` w...
# pulumi-kubernetes-operator
b
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?
Copy code
unable to clone repo: invalid pkt-len found
@sparse-park-68967 could you please help here?
s
Can you post the stack CR you are using?
b
Copy code
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
Copy code
const stackProjectRepo = config.get("stackProjectRepo") || "<https://git.private.repo.com/DX-ACP-UIPS-SRE/infra-pulumi/projects/test-s3-op-project>";
so `
Copy code
<https://git.private.repo.com/DX-ACP-UIPS-SRE/infra-pulumi/>
is git repo and `
Copy code
/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
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
perfect, thank you very much )
👍 1