Documentation
¶
Index ¶
- func GetGitlabGroupVariable(k8sAPI *k8s.API, gitlabClient *gitlab.Client, groupPath, variableKey string) (string, error)
- func ManageCerts(k8sAPI *k8s.API, customerConfig *config.Customer, namespace config.Namespace) error
- func ManageLimits(k8sAPI *k8s.API, customerConfig *config.Customer, namespace config.Namespace) error
- func ManageNamespace(k8sAPI *k8s.API, customerConfig *config.Customer, ...) error
- func ManagePolicies(k8sAPI *k8s.API, namespace config.Namespace, skipPostgresPart bool) error
- func ManagePostgres(k8sAPI *k8s.API, customerConfig *config.Customer, namespace config.Namespace) error
- func ManageRBAC(k8sAPI *k8s.API, gitlabClient *gitlab.Client, customerConfig *config.Customer, ...) error
- func ManageResourceQuota(k8sAPI *k8s.API, customerConfig *config.Customer, namespace config.Namespace) error
- func NewCommand() *cobra.Command
- func SaveGitLabServiceAccounts(k8sAPI *k8s.API, gitlabClient *gitlab.Client, gitlabConfig config.GitLab, ...) error
- func SaveHarborPuller(k8sAPI *k8s.API, gitlabClient *gitlab.Client, customerConfig *config.Customer, ...) error
- type Client
- type HarborPullerParams
- type RBACManager
- type RegistriesStruct
- type RegistryCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitlabGroupVariable ¶
func GetGitlabGroupVariable(k8sAPI *k8s.API, gitlabClient *gitlab.Client, groupPath, variableKey string) (string, error)
Get gitlab group variable by key, return value as string
func ManageCerts ¶
func ManageCerts(k8sAPI *k8s.API, customerConfig *config.Customer, namespace config.Namespace) error
ManageCerts manages the certificate requests for LetsEncrypt
func ManageLimits ¶
func ManageLimits(k8sAPI *k8s.API, customerConfig *config.Customer, namespace config.Namespace) error
ManageLimits manages the LimitRanges manifest
func ManageNamespace ¶
func ManageNamespace(k8sAPI *k8s.API, customerConfig *config.Customer, environment config.Environment, namespace config.Namespace, skipPostgresPart bool) error
ManageNamespace creates or updates a namespace
func ManagePolicies ¶
ManagePolicies manages the network policies
func ManagePostgres ¶
func ManagePostgres(k8sAPI *k8s.API, customerConfig *config.Customer, namespace config.Namespace) error
ManagePostgres creates rolebindings and service accounts in the namespace
func ManageRBAC ¶
func ManageRBAC(k8sAPI *k8s.API, gitlabClient *gitlab.Client, customerConfig *config.Customer, environment config.Environment, namespace config.Namespace, postfixEnvironmentScope string, groupPrefix string, gitlabIntegration bool, forceRecreateServiceAccount bool) error
ManageRBAC creates rolebindings and service accounts in the namespace
func ManageResourceQuota ¶
func ManageResourceQuota(k8sAPI *k8s.API, customerConfig *config.Customer, namespace config.Namespace) error
ManageResourceQuota manages the resourcequota in the namespace
func SaveGitLabServiceAccounts ¶
func SaveGitLabServiceAccounts(k8sAPI *k8s.API, gitlabClient *gitlab.Client, gitlabConfig config.GitLab, serviceAccount *v1.ServiceAccount, postfixEnvironmentScope string) error
SaveGitLabServiceAccounts saves the token for the deployer service account in GitLab
Types ¶
type Client ¶
type Client struct { FQDN string Username string Password string // contains filtered or unexported fields }
Client struct for PGO Rest API
type HarborPullerParams ¶
type HarborPullerParams struct { DockerAuthConfigJson []byte // contains filtered or unexported fields }
type RBACManager ¶
type RBACManager struct {
// contains filtered or unexported fields
}
RBACManager manages the RBAC in an environment
type RegistriesStruct ¶
type RegistriesStruct map[string]RegistryCredentials
RegistriesStruct is a map of registries to their credentials