Skip to content

Commit c831351

Browse files
easyCZroboquat
authored andcommitted
[public-api] Fix Stripe Webhook Secret mount path
1 parent 8fa7544 commit c831351

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

components/public-api/go/config/config.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,3 @@ type Configuration struct {
1616

1717
Server *baseserver.Configuration `json:"server,omitempty"`
1818
}
19-
20-
type StripeSecret struct {
21-
WebhookSigningKey string `json:"signingKey"`
22-
}

install/installer/pkg/components/public-api-server/configmap.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/gitpod-io/gitpod/installer/pkg/config/v1/experimental"
1010
"k8s.io/utils/pointer"
1111
"net"
12-
"path/filepath"
1312
"strconv"
1413

1514
"github.com/gitpod-io/gitpod/common-go/baseserver"
@@ -81,6 +80,7 @@ func getStripeConfig(cfg *experimental.Config) (corev1.Volume, corev1.VolumeMoun
8180
}
8281

8382
stripeSecret := cfg.WebApp.PublicAPI.StripeSecretName
83+
path = stripeSecretMountPath
8484

8585
volume = corev1.Volume{
8686
Name: "stripe-secret",
@@ -98,7 +98,5 @@ func getStripeConfig(cfg *experimental.Config) (corev1.Volume, corev1.VolumeMoun
9898
ReadOnly: true,
9999
}
100100

101-
path = filepath.Join(secretsDirectory, stripeSecretMountPath)
102-
103101
return volume, mount, path, true
104102
}

install/installer/pkg/components/public-api-server/constants.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ const (
1414
HTTPServicePort = 9002
1515
HTTPPortName = "http"
1616

17-
secretsDirectory = "secrets"
18-
stripeSecretMountPath = "stripe-secret"
17+
stripeSecretMountPath = "/secrets/stripe-webhook-secret"
1918
)

0 commit comments

Comments
 (0)