brash-gigabyte-81569
12/05/2024, 3:34 PMbrash-gigabyte-81569
12/05/2024, 3:36 PMhallowed-photographer-31251
12/05/2024, 5:03 PMbrash-gigabyte-81569
12/05/2024, 5:07 PMi think this is essentially https://github.com/pulumi/pulumi-kubernetes-operator/issues/258Yes, reading the description it is
brash-gigabyte-81569
12/05/2024, 5:07 PMas a workaround, if you’re using v2 of the operator, you should be able to mount a configmap into your program’s directory containing whatever structure you wanthmm I’ll look to see how this works. Got a link?
hallowed-photographer-31251
12/05/2024, 5:17 PMbrash-gigabyte-81569
12/06/2024, 8:49 PMcmd.serve unable to get the project settings: unable to find project settings in workspace
any pointers to what the cause may be?hallowed-photographer-31251
12/06/2024, 9:11 PMbrash-gigabyte-81569
12/06/2024, 9:14 PMbrash-gigabyte-81569
12/06/2024, 9:14 PMbrash-gigabyte-81569
12/06/2024, 9:15 PMbrash-gigabyte-81569
12/06/2024, 9:23 PMbrash-gigabyte-81569
12/06/2024, 9:29 PMYou simply inject an init container, mount theThis seems like it might be the issue. I had created an init container dropped in the stack config ie Pulumi.dev.yaml file as a workaround to get structured configs into the program. And then expected the Pulumi.yaml file to get put in there per normal flow. However, the normal flow looks like it fetches the artifact for the programRef and then tries to symlink that dir to /share/workspacevolume toshare
, and then place the project files into/share
/share/workspace
hallowed-photographer-31251
12/06/2024, 9:50 PMbrash-gigabyte-81569
12/06/2024, 9:50 PMbrash-gigabyte-81569
12/06/2024, 9:53 PM---
apiVersion: v1
kind: ConfigMap
metadata:
name: s3-bucket-stack-config
data:
Pulumi.dev.yaml: |
aws:region: us-east-1
s3-bucket:name: my-bucket-test
---
apiVersion: <http://pulumi.com/v1|pulumi.com/v1>
kind: Program
metadata:
name: s3-bucket
program:
outputs:
bucketName: "${bucket.bucket}"
resources:
bucket:
type: aws:s3/Bucket
properties:
bucketPrefix: "${s3-bucket:name}-"
acl: "private"
tags:
Name: "${s3-bucket:name}"
---
apiVersion: <http://pulumi.com/v1|pulumi.com/v1>
kind: Stack
metadata:
name: s3-bucket-stack
spec:
envRefs:
PULUMI_ACCESS_TOKEN:
type: Secret
secret:
name: pulumi-api-secret
key: accessToken
AWS_ACCESS_KEY_ID:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
type: Secret
secret:
name: pulumi-aws-secrets
key: AWS_SECRET_ACCESS_KEY
stack: org/s3-op-project/dev
programRef:
name: s3-bucket
stack: org/s3-op-project/dev
workspaceTemplate:
spec:
image: pulumi/pulumi:3.142.0-arm64
podTemplate:
spec:
initContainers:
- name: extra
image: busybox
command: ["sh", "-c", "mkdir -p /share/workspace && cp /stack-config/Pulumi.dev.yaml /share/workspace/Pulumi.dev.yaml"]
volumeMounts:
- name: share
mountPath: /share
- name: stack-config
mountPath: /stack-config
containers: []
volumes:
- name: stack-config
configMap:
name: s3-bucket-stack-config
hallowed-photographer-31251
12/06/2024, 9:56 PMbrash-gigabyte-81569
12/06/2024, 9:56 PMbrash-gigabyte-81569
12/06/2024, 10:08 PMbrash-gigabyte-81569
12/09/2024, 2:24 PMpulumi error: installing plugin; run pulumi plugin install resource aws v6.64.0 to retry manually: getting current user: user: Current requires cgo or $USER set in environment
hallowed-photographer-31251
12/09/2024, 3:59 PMbrash-gigabyte-81569
12/09/2024, 4:04 PMbrash-gigabyte-81569
12/09/2024, 4:05 PMbrash-gigabyte-81569
12/09/2024, 4:05 PM