Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultResourceCPUCores = float32(0.5) DefaultResourceMemoryMB = int32(256) DefaultResourceRequestFactorCPU = 0.25 DefaultResourceRequestFactorMemory = 0.5 )
TODO: Configure these defaults per stage
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
func CreateDeployment(ctx *core.DeploymentContext) (*appsv1.Deployment, error)
CreateDeployment creates a kubernetes Deployment from a riser deployment
func CreateService ¶
func CreateService(ctx *core.DeploymentContext) (*corev1.Service, error)
Types ¶
type SealedSecret ¶
type SealedSecret struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SealedSecretSpec `json:"spec"`
}
func CreateSealedSecret ¶
func CreateSealedSecret(plaintextSecret string, secretMeta *core.SecretMeta, namespace string, certBytes []byte) (*SealedSecret, error)
TODO: Consider using something like https://github.com/awnumar/memguard instead of passing the secret as a string
type SealedSecretSpec ¶
type VirtualService ¶
type VirtualService struct {
metav1.ObjectMeta `json:"metadata"`
metav1.TypeMeta `json:",inline"`
Spec *istionet.VirtualService `json:"spec"`
}
VirtualService represents an istio VirtualService
func CreateVirtualService ¶
func CreateVirtualService(ctx *core.DeploymentContext) (*VirtualService, error)
Click to show internal directories.
Click to hide internal directories.