Skip to content

Commit

Permalink
Remove enabled field from cloudSqlProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhny committed Aug 20, 2024
1 parent f23edf1 commit e8d6336
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 14 deletions.
6 changes: 0 additions & 6 deletions api/v1alpha1/podtypes/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ type Auth struct {
}

type CloudSQLProxySettings struct {
// Enables the sidecar for CloudSQL proxy

//+kubebuilder:validation:Optional
//+kubebuilder:default:=false
Enabled bool `json:"enabled"`

// Connection name for the CloudSQL instance. Found in the Google Cloud Console under your CloudSQL resource.
// The format is "projectName:region:instanceName" E.g. "skip-prod-bda1:europe-north1:my-db".
//+kubebuilder:validation:Required
Expand Down
3 changes: 0 additions & 3 deletions config/crd/skiperator.kartverket.no_applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,6 @@ spec:
The format is "projectName:region:instanceName" E.g. "skip-prod-bda1:europe-north1:my-db".
pattern: ^[^:]+:[^:]+:[^:]+$
type: string
enabled:
default: false
type: boolean
ip:
description: The IP address of the CloudSQL instance. This
is used to create a serviceentry for the CloudSQL proxy.
Expand Down
3 changes: 0 additions & 3 deletions config/crd/skiperator.kartverket.no_skipjobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,6 @@ spec:
The format is "projectName:region:instanceName" E.g. "skip-prod-bda1:europe-north1:my-db".
pattern: ^[^:]+:[^:]+:[^:]+$
type: string
enabled:
default: false
type: boolean
ip:
description: The IP address of the CloudSQL instance.
This is used to create a serviceentry for the CloudSQL
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/helperfunctions.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func EnsurePrefix(s string, prefix string) string {
}

func IsCloudSqlProxyEnabled(gcp *podtypes.GCP) bool {
return gcp != nil && gcp.CloudSQLProxy != nil && gcp.CloudSQLProxy.Enabled
return gcp != nil && gcp.CloudSQLProxy != nil
}

func IsGCPAuthEnabled(gcp *podtypes.GCP) bool {
Expand Down
1 change: 0 additions & 1 deletion tests/application/cloudsql-auth-proxy/set-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ spec:
port: 8080
gcp:
cloudSqlProxy:
enabled: true
connectionName: test-project-bda1:europe-north1:pg-01-test
version: 2.8.12
serviceAccount: [email protected]
Expand Down

0 comments on commit e8d6336

Please sign in to comment.