cmd

package
v0.0.0-...-907faa4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const AawContainerOwner = "AAW"
View Source
const CLOUD_MAIN_GITLAB_HOST = "gitlab.k8s.cloud.statcan.ca"
View Source
const CLOUD_MAIN_SYSTEM_NAMESPACE = "cloud-main-system"
View Source
const DasNamespaceName = "daaas-system"
View Source
const FdiConfigurationCMName = "fdi-aaw-configuration"
View Source
const FdiContainerOwner = "FDI"
View Source
const HTTPS_PORT = 443
View Source
const ISTIO_EGRESS_GATEWAY_SVC = "cloud-main-egress-gateway"
View Source
const ISTIO_SERVICE_ENTRY_NAME = "cloud-main-hosts"
View Source
const SSH_PORT = 22

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the root command.

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 BucketData struct {
	BucketName string   `json:"bucketName"`
	PvName     string   `json:"pvName"`
	SubFolder  string   `json:"subfolder"`
	Readers    []string `json:"readers"`
	Writers    []string `json:"writers"`
	SPN        string   `json:"spn"`
	FdiConfig  FDIConfig
}

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 Rules

type Rules struct {
	Schema []Schema `json:"schemas"`
	Table  []Table  `json:"tables"`
}

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.

type Schema

type Schema struct {
	User   string `json:"user"`
	Schema string `json:"schema"`
	Owner  bool   `json:"owner"`
}

Trino Schema format

type Table

type Table struct {
	User   string   `json:"user"`
	Schema string   `json:"schema"`
	Table  string   `json:"table"`
	Priv   []string `json:"privileges"`
}

Trino Schema format

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL