Skip to content

Commit

Permalink
[public-api] Fix Stripe Webhook Secret mount path
Browse files Browse the repository at this point in the history
  • Loading branch information
easyCZ authored and roboquat committed Aug 29, 2022
1 parent 8fa7544 commit c831351
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions components/public-api/go/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,3 @@ type Configuration struct {

Server *baseserver.Configuration `json:"server,omitempty"`
}

type StripeSecret struct {
WebhookSigningKey string `json:"signingKey"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand All @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ const (
HTTPServicePort = 9002
HTTPPortName = "http"

secretsDirectory = "secrets"
stripeSecretMountPath = "stripe-secret"
stripeSecretMountPath = "/secrets/stripe-webhook-secret"
)

0 comments on commit c831351

Please sign in to comment.