environment

package
v0.1.2-0...-d142b6f Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: EUPL-1.2 Imports: 28 Imported by: 0

Documentation

Index

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

func ManagePolicies(k8sAPI *k8s.API, namespace config.Namespace, skipPostgresPart bool) error

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 NewCommand

func NewCommand() *cobra.Command

NewCommand creates a new command

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

func SaveHarborPuller

func SaveHarborPuller(k8sAPI *k8s.API, gitlabClient *gitlab.Client, customerConfig *config.Customer, environment config.Environment, namespace config.Namespace) error

SaveHarborPuller create a harbor-puller secret in the namespace

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

type RegistryCredentials

type RegistryCredentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Auth     string `json:"auth"`
}

RegistryCredentials defines the fields stored per registry in an docker config secret

Jump to

Keyboard shortcuts

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