Documentation
¶
Index ¶
Constants ¶
const AawContainerOwner = "AAW"
const CLOUD_MAIN_GITLAB_HOST = "gitlab.k8s.cloud.statcan.ca"
const CLOUD_MAIN_SYSTEM_NAMESPACE = "cloud-main-system"
const DasNamespaceName = "daaas-system"
const FdiConfigurationCMName = "fdi-aaw-configuration"
const FdiContainerOwner = "FDI"
const HTTPS_PORT = 443
const ISTIO_EGRESS_GATEWAY_SVC = "cloud-main-egress-gateway"
const ISTIO_SERVICE_ENTRY_NAME = "cloud-main-hosts"
const SSH_PORT = 22
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AzureContainerConfig ¶
type AzureContainerConfig struct {
Name string // name of the container
Classification string // unclassified or protected-b
SecretRef string // secret for the container
Capacity int
ReadOnly bool
Owner string // the owner could be AAW or FDI for example
SPNClientID string // Client id of the container's service principal
Subfolder string // name of the subfolder to mount to PV
PVName string // name of PV
}
General Azure Container Configuration This is the bare minimum information for creating PV linked to a container Within Azure portal. Additional configuration can be custom defined and implemented throughout the controller, one such example of configuration is the FDIConfig struct.
type BucketData ¶
type Deploymentparams ¶
type Deploymentparams struct {
// contains filtered or unexported fields
}
Parameters specific to the deployment of per-namespace gitea applications
type FDIConfig ¶
type FDIConfig struct {
Classification string // unclassified or prot-b
SPNSecretName string // service principal secret name
SPNSecretNamespace string // service principal secret namespace
PVCapacity int
StorageAccount string // fdi storage account in azure portal
ResourceGroup string // fdi resource group in azure portal
AzureStorageAuthType string // value of spn dictates service principal auth
AzureStorageSPNClientID string // fdi client id for service principal in azure portal
AzureStorageSPNTenantID string // fdi tenant id for service principal in azure portal
}
Configuration for FDI containers If an AzureContainer is of classification FDI, This configuration will be used in the creation of the PV
type FdiConnector ¶
type FdiConnector struct {
FdiConfig FDIConfig
}
High level structure for storing configmap data and metadata
type GiteaConfig ¶
type GiteaConfig struct {
Psqlparams Psqlparams
Deploymentparams Deploymentparams
}
Configuration struct for gitea controller
func NewGiteaConfig ¶
func NewGiteaConfig() (*GiteaConfig, error)
Constructs the controller's config based on classification.
type Psqlparams ¶
type Psqlparams struct {
// contains filtered or unexported fields
}
Parameters specific to the authentication with managed postgres
type S3ProxyConfig ¶
type S3ProxyConfig struct {
// contains filtered or unexported fields
}
Configuration struct for s3proxy controller
func NewS3ProxyConfig ¶
func NewS3ProxyConfig() (*S3ProxyConfig, error)
Constructs the controller's config based on classification.