environment

package
v0.1.2-0...-47a3a74 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: EUPL-1.2 Imports: 27 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) error

ManageNamespace creates or updates a namespace

func ManagePolicies

func ManagePolicies(k8sAPI *k8s.API, customerConfig *config.Customer, namespace config.Namespace) error

ManagePolicies manages the network policies

func ManageRBAC

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

ManageRBAC creates roles, 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 SaveGitLabServiceAcounts

func SaveGitLabServiceAcounts(k8sAPI *k8s.API, gitlabClient *gitlab.Client, gitlabConfig config.GitLab, serviceAccount *v1.ServiceAccount) error

SaveGitLabServiceAcounts 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 HarborPullerParams

type HarborPullerParams struct {
	// contains filtered or unexported fields
}

type RBACManager

type RBACManager struct {
	DeveloperResources []string
	DeployerResources  []string
	// 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