php_apache

package module
Version: v0.0.0-...-945e151 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package php_apache installs a simple PHP Apache application. Replace https://github.com/aws/aws-k8s-tester/tree/v1.5.9/eks/php-apache.

Index

Constants

View Source
const (
	DefaultMinimumNodes       int   = 1
	DefaultDeploymentReplicas int32 = 3
)

Variables

This section is empty.

Functions

func Env

func Env() string

func EnvRepository

func EnvRepository() string

func New

func New(cfg *Config) k8s_tester.Tester

Types

type Config

type Config struct {
	Enable bool `json:"enable"`
	Prompt bool `json:"-"`

	Stopc     chan struct{} `json:"-"`
	Logger    *zap.Logger   `json:"-"`
	LogWriter io.Writer     `json:"-"`
	Client    client.Client `json:"-"`

	// MinimumNodes is the minimum number of Kubernetes nodes required for installing this addon.
	MinimumNodes int `json:"minimum_nodes"`
	// Namespace to create test resources.
	Namespace string `json:"namespace"`

	// Repository defines a custom ECR image repository.
	// For "php-apache".
	Repository *aws_v1_ecr.Repository `json:"repository,omitempty"`

	// DeploymentNodeSelector is configured to overwrite existing node selector
	// for PHP Apache deployment. If left empty, tester sets default selector.
	DeploymentNodeSelector map[string]string `json:"deployment_node_selector"`
	// DeploymentReplicas is the number of replicas to deploy using "Deployment" object.
	DeploymentReplicas int32 `json:"deployment_replicas"`
}

func NewDefault

func NewDefault() *Config

func (*Config) ValidateAndSetDefaults

func (cfg *Config) ValidateAndSetDefaults() error

Source Files

Directories

Path Synopsis
cmd
k8s-tester-php-apache
k8s-tester-php-apache installs Kubernetes NLB hello world tester.
k8s-tester-php-apache installs Kubernetes NLB hello world tester.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL