Documentation
¶
Overview ¶
Package configuration implements cloudsql-postgres-operator's TOML-based configuration API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admission ¶
type Admission struct {
// BindAddress is the "host:port" pair where the admission webhook is to be served.
BindAddress string `toml:"bind_address"`
// CloudSQLProxyImage is the image to use when injecting the Cloud SQL proxy in pods requesting access to a CSQLP instance.
CloudSQLProxyImage string `toml:"cloud_sql_proxy_image"`
}
Admission holds admission-related configuration options.
type Cluster ¶
type Cluster struct {
// Kubeconfig holds the path to the kubeconfig file to use (may be empty for in-cluster configuration).
Kubeconfig string `toml:"kubeconfig"`
// Namespace holds the namespace where cloudsql-postgres-operator is deployed.
Namespace string `toml:"namespace"`
}
Cluster holds cluster-related configuration options.
type Configuration ¶
type Configuration struct {
// Admission holds admission-related configuration options.
Admission Admission `toml:"admission"`
// Cluster holds cluster-related configuration options.
Cluster Cluster `toml:"cluster"`
// Controllers holds controller-related configuration options.
Controllers Controllers `toml:"controllers"`
// GCP holds GCP-related configuration options.
GCP GCP `toml:"gcp"`
// Logging holds logging-related configuration options.
Logging Logging `toml:"logging"`
}
Configuration is the root configuration object.
func MustNewConfigurationFromFile ¶
func MustNewConfigurationFromFile(path string) Configuration
MustNewConfigurationFromFile attempts to parse the specified configuration file, exiting the application if it cannot be parsed.
type Controllers ¶
type Controllers struct {
// ResyncPeriodSeconds holds the resync period to use for the controllers, expressed in seconds.
ResyncPeriodSeconds int32 `toml:"resync_period_seconds"`
}
Controllers holds controller-related configuration options.
type GCP ¶
type GCP struct {
// AdminServiceAccountKeyPath holds the path to the file that contains credentials for an IAM service account with the "roles/cloudsql.admin" role.
AdminServiceAccountKeyPath string `toml:"admin_service_account_key_path"`
// ClientServiceAccountKeyPath holds the path to the file that contains credentials for an IAM service account with the "roles/cloudsql.client" role.
ClientServiceAccountKeyPath string `toml:"client_service_account_key_path"`
// ProjectID holds the ID of the Google Cloud Platform project where cloudsql-postgres-operator is managing Cloud SQL instances.
ProjectID string `toml:"project_id"`
}
GCP holds project-related configuration options.
Click to show internal directories.
Click to hide internal directories.