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, 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 SaveGitLabServiceAcounts(k8sAPI *k8s.API, gitlabClient *gitlab.Client, gitlabConfig config.GitLab, ...) error
- func SaveHarborPuller(k8sAPI *k8s.API, gitlabClient *gitlab.Client, customerConfig *config.Customer, ...) error
- 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) 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 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
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
Click to show internal directories.
Click to hide internal directories.