Skip to content

Commit af31956

Browse files
stubbiclaude
andauthored
fix: align S3 env var names with server config (#24)
The operator set PAPERCLIP_S3_BUCKET/REGION/ENDPOINT but the server expects PAPERCLIP_STORAGE_S3_BUCKET/REGION/ENDPOINT. S3 storage was silently broken for operator-managed instances. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e2314a9 commit af31956

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/resources/statefulset.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,12 @@ func buildEnvVars(instance *paperclipv1alpha1.Instance) []corev1.EnvVar {
274274
if instance.Spec.ObjectStorage != nil {
275275
os := instance.Spec.ObjectStorage
276276
vars = append(vars, corev1.EnvVar{Name: "PAPERCLIP_STORAGE_PROVIDER", Value: "s3"})
277-
vars = append(vars, corev1.EnvVar{Name: "PAPERCLIP_S3_BUCKET", Value: os.Bucket})
277+
vars = append(vars, corev1.EnvVar{Name: "PAPERCLIP_STORAGE_S3_BUCKET", Value: os.Bucket})
278278
if os.Region != "" {
279-
vars = append(vars, corev1.EnvVar{Name: "PAPERCLIP_S3_REGION", Value: os.Region})
279+
vars = append(vars, corev1.EnvVar{Name: "PAPERCLIP_STORAGE_S3_REGION", Value: os.Region})
280280
}
281281
if os.Endpoint != "" {
282-
vars = append(vars, corev1.EnvVar{Name: "PAPERCLIP_S3_ENDPOINT", Value: os.Endpoint})
282+
vars = append(vars, corev1.EnvVar{Name: "PAPERCLIP_STORAGE_S3_ENDPOINT", Value: os.Endpoint})
283283
}
284284
if os.CredentialsSecretRef != nil {
285285
vars = append(vars,

0 commit comments

Comments
 (0)