deploy

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package deploy provides deployment-related utilities for the control plane.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeEnvVars

func MergeEnvVars(appSecrets, serviceEnvVars map[string]string) map[string]string

MergeEnvVars merges two maps of environment variables. The second map (serviceEnvVars) takes precedence over the first (appSecrets). This is a pure function for easy testing. **Validates: Requirements 3.2, 6.1, 6.3**

Types

type EnvMerger

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

EnvMerger merges app-level secrets with service-level environment variables. Service-level variables take precedence over app-level secrets when both have the same key. **Validates: Requirements 3.2, 6.1, 6.3**

func NewEnvMerger

func NewEnvMerger(st store.Store, sopsService *secrets.SOPSService, logger *slog.Logger) *EnvMerger

NewEnvMerger creates a new EnvMerger instance.

func (*EnvMerger) MergeForDeployment

func (m *EnvMerger) MergeForDeployment(ctx context.Context, appID, serviceName string, serviceEnvVars map[string]string) (map[string]string, error)

MergeForDeployment fetches app-level secrets (decrypted) and service-level env vars, then merges them with service-level taking precedence. **Validates: Requirements 6.1, 6.3**

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL