Skip to content

Commit

Permalink
fix: remove unused config of google client id/secret
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtore committed Nov 7, 2024
1 parent e78f10e commit 2325c15
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion charts/hookd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ name: hookd
description: Receives deploy instructions, verifies authenticity and sends to deployd in the desired cluster.
sources:
- https://github.com/nais/deploy/tree/master/charts/hookd
version: 0.0.1
version: 0.0.2
9 changes: 0 additions & 9 deletions charts/hookd/Feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ values:
deploydPreSharedKeys:
computed:
template: '"{{ eachOf .Envs "deployd_pre_shared_key" | join "," }}"'
googleClient.id:
description: Google OAuth 2.0 Client ID, see https://handbook.nais.io/technical/tenant-setup/#set-up-oauth-client
config:
type: string
googleClient.secret:
description: Google OAuth 2.0 Client Secret, see https://handbook.nais.io/technical/tenant-setup/#set-up-oauth-client
config:
type: string
secret: true
ingress.host:
displayName: Ingress URL
computed:
Expand Down
3 changes: 0 additions & 3 deletions charts/hookd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ ingress:
className: "nais-ingress-external"

deploydPreSharedKeys: # mapped by fasit
googleClient:
id: # mapped by fasit
secret: # mapped by fasit

logLinkFormatter: "GCP"
otelExporterOtlpEndpoint: # mapped by fasit
Expand Down
5 changes: 0 additions & 5 deletions pkg/hookd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ type Config struct {
FrontendKeys []string `json:"frontend-keys"`
GRPC GRPC `json:"grpc"`
GoogleAllowedDomains []string `json:"google-allowed-domains"`
GoogleClientId string `json:"google-client-id"`
GoogleClusterProjects []string `json:"google-cluster-projects"`
ListenAddress string `json:"listen-address"`
LogFormat string `json:"log-format"`
Expand All @@ -45,7 +44,6 @@ const (
DeploydKeys = "deployd-keys"
FrontendKeys = "frontend-keys"
GoogleAllowedDomains = "google-allowed-domains"
GoogleClientId = "google-client-id"
GoogleClusterProjects = "google-cluster-projects"
GrpcAddress = "grpc.address"
GrpcCliAuthentication = "grpc.cli-authentication"
Expand All @@ -69,8 +67,6 @@ func bindNAIS() {

viper.BindEnv(DeploydKeys, "DEPLOYD_KEYS")
viper.BindEnv(FrontendKeys, "FRONTEND_KEYS")

viper.BindEnv(GoogleClientId, "GOOGLE_CLIENT_ID")
}

func Initialize() *Config {
Expand Down Expand Up @@ -99,7 +95,6 @@ func Initialize() *Config {
flag.StringSlice(DeploydKeys, nil, "Pre-shared deployd keys, comma separated")
flag.StringSlice(FrontendKeys, nil, "Pre-shared frontend keys, comma separated")

flag.String(GoogleClientId, "", "Google ClientId.")
flag.StringSlice(GoogleAllowedDomains, []string{}, "Allowed Google Domains")
flag.StringSlice(GoogleClusterProjects, []string{}, "Mapping cluster to google project: cluster1=project1,cluster2=project2")

Expand Down

0 comments on commit 2325c15

Please sign in to comment.