Documentation ¶
Index ¶
- Constants
- func Delete(c context.Context, containerPreName, containerName string) error
- func DeleteNamespace(ctx context.Context, name string, cfg *config.Configuration) error
- func Deploy(c context.Context, dog *dogger.DeploymentLogger, ...) error
- func GetDeployments(ctx context.Context, namespace string, cfg *config.Configuration) (*kappsv1.DeploymentList, error)
- func ListSecrets(ctx context.Context, namespace, name string, appConfig *config.Configuration) ([]string, error)
- func NewDeleteFacade(ctx context.Context, namespace, name string, cfg *config.Configuration) *deleteFacade
- func NewDeployFacade(params *DeployFacadeParams, cfg *config.Configuration) *deployFacade
- func WaitForRunningDeployment(ctx context.Context, namespace, name string, expectedReplicaCount int32, ...) error
- type Client
- type DeleteFacade
- type DeployFacade
- type DeployFacadeParams
- type DeployIngressOptions
- type IngressPortMap
- type Namespace
- type ResourceError
- type ServiceParams
Constants ¶
View Source
const ( FieldCPU = "CPU" FieldMemory = "Memory" GroupLimits = "Limits" GroupRequests = "Requests" )
View Source
const CraneUpdatedAnnotation = "crane.dyrector.io/restartedAt"
Variables ¶
This section is empty.
Functions ¶
func DeleteNamespace ¶
func Deploy ¶
func Deploy(c context.Context, dog *dogger.DeploymentLogger, deployImageRequest *v1.DeployImageRequest, versionData *v1.VersionData) error
func GetDeployments ¶
func GetDeployments(ctx context.Context, namespace string, cfg *config.Configuration) (*kappsv1.DeploymentList, error)
func ListSecrets ¶
func NewDeleteFacade ¶
func NewDeleteFacade(ctx context.Context, namespace, name string, cfg *config.Configuration) *deleteFacade
func NewDeployFacade ¶
func NewDeployFacade(params *DeployFacadeParams, cfg *config.Configuration) *deployFacade
Types ¶
type Client ¶
type Client struct { InClusterConfig func() (*rest.Config, error) BuildConfigFromFlags func(masterUrl, kubeconfigPath string) (*rest.Config, error) }
func (*Client) GetClientSet ¶
func (c *Client) GetClientSet(cfg *config.Configuration) (*kubernetes.Clientset, error)
type DeleteFacade ¶
type DeployFacade ¶
type DeployFacadeParams ¶
type DeployFacadeParams struct { Ctx context.Context Image util.ImageURI InstanceConfig v1.InstanceConfig ContainerConfig v1.ContainerConfig RuntimeConfig *string Issuer string }
type DeployIngressOptions ¶
type DeployIngressOptions struct {
// contains filtered or unexported fields
}
type IngressPortMap ¶
type IngressPortMap struct { TCP map[uint16]string `yaml:"tcp"` Ports map[string]int `yaml:"ports"` }
9000: "default/example-go:8080" this is/was needed to expose ancient ports - passive ftp
type Namespace ¶
type Namespace struct {
Name string `json:"name" binding:"required"`
}
namespace entity
func GetNamespaces ¶
func GetNamespaces(cfg *config.Configuration) ([]Namespace, error)
type ResourceError ¶
func NewResourceError ¶
func NewResourceError(errorField, errorGroup string, fallback bool) ResourceError
func (ResourceError) Error ¶
func (resourceError ResourceError) Error() string
type ServiceParams ¶
Click to show internal directories.
Click to hide internal directories.