diff --git a/components/public-api/go/config/config.go b/components/public-api/go/config/config.go index 319c3e1040a123..2e1d435ab18dfa 100644 --- a/components/public-api/go/config/config.go +++ b/components/public-api/go/config/config.go @@ -16,7 +16,3 @@ type Configuration struct { Server *baseserver.Configuration `json:"server,omitempty"` } - -type StripeSecret struct { - WebhookSigningKey string `json:"signingKey"` -} diff --git a/install/installer/pkg/components/public-api-server/configmap.go b/install/installer/pkg/components/public-api-server/configmap.go index 60427fafa830f4..9d17ce1f004f69 100644 --- a/install/installer/pkg/components/public-api-server/configmap.go +++ b/install/installer/pkg/components/public-api-server/configmap.go @@ -9,7 +9,6 @@ import ( "github.com/gitpod-io/gitpod/installer/pkg/config/v1/experimental" "k8s.io/utils/pointer" "net" - "path/filepath" "strconv" "github.com/gitpod-io/gitpod/common-go/baseserver" @@ -81,6 +80,7 @@ func getStripeConfig(cfg *experimental.Config) (corev1.Volume, corev1.VolumeMoun } stripeSecret := cfg.WebApp.PublicAPI.StripeSecretName + path = stripeSecretMountPath volume = corev1.Volume{ Name: "stripe-secret", @@ -98,7 +98,5 @@ func getStripeConfig(cfg *experimental.Config) (corev1.Volume, corev1.VolumeMoun ReadOnly: true, } - path = filepath.Join(secretsDirectory, stripeSecretMountPath) - return volume, mount, path, true } diff --git a/install/installer/pkg/components/public-api-server/constants.go b/install/installer/pkg/components/public-api-server/constants.go index 39e70130ec2aae..a46bcf01ea248b 100644 --- a/install/installer/pkg/components/public-api-server/constants.go +++ b/install/installer/pkg/components/public-api-server/constants.go @@ -14,6 +14,5 @@ const ( HTTPServicePort = 9002 HTTPPortName = "http" - secretsDirectory = "secrets" - stripeSecretMountPath = "stripe-secret" + stripeSecretMountPath = "/secrets/stripe-webhook-secret" )