glamorous-family-11920
11/13/2024, 5:10 PMglamorous-family-11920
11/13/2024, 5:23 PMglamorous-family-11920
11/13/2024, 5:31 PMglamorous-family-11920
11/13/2024, 5:47 PM- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
that is required on the bootstrap imagehallowed-photographer-31251
11/13/2024, 6:31 PMglamorous-family-11920
11/13/2024, 6:32 PMglamorous-family-11920
11/13/2024, 6:34 PM│ pulumi E1113 18:31:29.194478 7 webhook.go:154] Failed to make webhook authenticator request: <http://tokenreviews.authentication.k8s.io|tokenreviews.authentication.k8s.io> is forbidden: User "system:serviceaccount:pulumi-operator:pulumi-operator-pulumi-kubernetes-operator" cannot create resource "tokenreviews" in API group "authentication.k8 │
I'm overriding the OPERATOR_NAME in the env vars, checking that now.glamorous-family-11920
11/13/2024, 6:34 PMglamorous-family-11920
11/13/2024, 6:36 PMglamorous-family-11920
11/13/2024, 6:37 PMpulumi-operator:pulumi-operator-pulumi-kubernetes-operator:system:auth-delegator
that isn't set in the chartglamorous-family-11920
11/13/2024, 6:37 PM│ apiVersion: <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1> │
│ kind: ClusterRoleBinding │
│ metadata: │
│ name: pulumi-operator:pulumi-operator-pulumi-kubernetes-operator:system:auth-delegator │
│ roleRef: │
│ apiGroup: <http://rbac.authorization.k8s.io|rbac.authorization.k8s.io> │
│ kind: ClusterRole │
│ name: system:auth-delegator
when cluster crds are turned onhallowed-photographer-31251
11/13/2024, 6:38 PMkubectl apply -f <https://raw.githubusercontent.com/pulumi/pulumi-kubernetes-operator/refs/tags/v2.0.0-beta.2/deploy/yaml/install.yaml>
glamorous-family-11920
11/13/2024, 6:39 PMglamorous-family-11920
11/13/2024, 6:45 PMglamorous-family-11920
11/13/2024, 6:46 PMglamorous-family-11920
11/13/2024, 6:47 PMglamorous-family-11920
11/13/2024, 6:58 PMglamorous-family-11920
11/13/2024, 7:00 PMerror: installing dependencies: determining go version: exit st....
glamorous-family-11920
11/13/2024, 7:17 PM/share/tini /share/agent -- serve --workspace /share/workspace --skip-install --auth-mode kube --kube-workspace-namespace pulumi-operator --kube-workspace-name keyumi-dev
wish i knew what that was doing, switching back to helmglamorous-family-11920
11/13/2024, 7:20 PMhelm install pulumi-operator -n pulumi-operator <oci://myversion/charts/pulumi-kubernetes-operator> --version 2.0.0 -f values.yaml
hallowed-photographer-31251
11/13/2024, 7:25 PMfor the workspace pods, can you use the operator image or does it have to be pulumi:latest-nonroot?the operator image doesn’t contain the pulumi cli or language runtimes. if you need to customize the image we suggest using pulumi:latest-nonroot as a base.
also the workspace pod shoudn’t be attempting to download dependencies.please weigh in on https://github.com/pulumi/pulumi-kubernetes-operator/issues/374 if that’s something you’d still like to see.
glamorous-family-11920
11/13/2024, 7:28 PMhallowed-photographer-31251
11/13/2024, 7:30 PMpulumi install
in your stack’s directory to get relevant language plugins. does that succeed for you locally?glamorous-family-11920
11/13/2024, 7:32 PMglamorous-family-11920
11/13/2024, 7:33 PMhallowed-photographer-31251
11/13/2024, 7:34 PMrepoDir
points to the correct path for your stack.hallowed-photographer-31251
11/13/2024, 7:34 PMpulumi install
?glamorous-family-11920
11/13/2024, 7:34 PMglamorous-family-11920
11/13/2024, 7:34 PMhallowed-photographer-31251
11/13/2024, 7:35 PMglamorous-family-11920
11/13/2024, 7:35 PMglamorous-family-11920
11/13/2024, 7:35 PMglamorous-family-11920
11/13/2024, 7:35 PMglamorous-family-11920
11/13/2024, 7:35 PMglamorous-family-11920
11/13/2024, 7:37 PMglamorous-family-11920
11/13/2024, 7:37 PMhallowed-photographer-31251
11/13/2024, 7:38 PMgo version
say, and which go
glamorous-family-11920
11/13/2024, 7:38 PMglamorous-family-11920
11/13/2024, 7:59 PM/usr/local/go/bin/go
glamorous-family-11920
11/13/2024, 8:05 PMpulumi install --logtostderr --logflow -v=9
glamorous-family-11920
11/13/2024, 8:06 PMI1113 20:05:26.446822 14 plugins.go:1896] GetPluginPath(language, go, <nil>): found on $PATH /usr/bin/pulumi-language-go
I1113 20:05:26.446874 14 plugins.go:1919] GetPluginPath(language, go, <nil>): found next to current executable /usr/bin/pulumi-language-go
I1113 20:05:26.446899 14 plugin.go:189] newPlugin(): Launching plugin 'go' from '/usr/bin/pulumi-language-go' with args: -root=/share/source,127.0.0.1:38575
I1113 20:05:26.466380 14 langruntime_plugin.go:251] langhost[go].GetPluginInfo() executing
I1113 20:05:26.466720 14 langruntime_plugin.go:290] langhost[go].InstallDependencies(Info=[root=/share/source, program=/share/source, entryPoint=.], UseLanguageVersionTools=false) executing
I1113 20:05:26.467528 14 sink.go:170] defaultSink::Infoerr(I1113 20:05:26.467466 32 executable.go:75] program go found in $PATH
)
I1113 20:05:26.467466 32 executable.go:75] program go found in $PATH
Installing dependencies...
I1113 20:05:26.916998 14 langruntime_plugin.go:325] langhost[go].InstallDependencies(Info=[root=/share/source, program=/share/source, entryPoint=.], UseLanguageVersionTools=false) failed: err=determining go version: exit status 1
I1113 20:05:26.918783 14 sink.go:178] defaultSink::Error(error: installing dependencies: determining go version: exit status 1)
error: installing dependencies: determining go version: exit status 1
glamorous-family-11920
11/13/2024, 8:16 PMglamorous-family-11920
11/13/2024, 8:22 PMglamorous-family-11920
11/13/2024, 8:23 PMglamorous-family-11920
11/13/2024, 8:34 PMfreezing-garage-4831
11/13/2024, 8:40 PMglamorous-family-11920
11/13/2024, 8:42 PMworkspaceTemplate:
spec:
image: localreg/pulumi/pulumi-kubernetes-operator:2.0.0-beta.2
podTemplate:
spec:
containers:
- image: localreg/pulumi/pulumi-kubernetes-operator:2.0.0-beta.2
name: pulumi
initContainers:
- image: localreg/pulumi/pulumi-kubernetes-operator:2.0.0-beta.2
name: bootstrap
- image: localreg/pulumi/pulumi-kubernetes-operator:2.0.0-beta.2
name: fetch
glamorous-family-11920
11/13/2024, 8:52 PMhallowed-photographer-31251
11/13/2024, 9:25 PMglamorous-family-11920
11/13/2024, 9:25 PMglamorous-family-11920
11/13/2024, 9:27 PMglamorous-family-11920
11/13/2024, 9:28 PMhallowed-photographer-31251
11/13/2024, 9:33 PM“Fixed it by editing the go.mod file go 1.22 go 1.22.0”not surprising — after go 1.21 this directive needs to point at an actual release identifier (including patch) for toolchain support.
glamorous-family-11920
11/14/2024, 1:48 PMhallowed-photographer-31251
11/14/2024, 5:18 PMglamorous-family-11920
11/14/2024, 5:26 PM