Documentation
¶
Overview ¶
Package externalsecret 은 ExternalSecret 매니페스트를 만든다.
스택 모듈과 CI/CD 모듈이 모두 이 평면을 쓴다 — 스택은 설치 시점에 차트가 참조할 Secret 을, CI/CD 는 파이프라인이 쓸 자격증명 Secret 을 만든다. 모듈 간 직접 import 가 금지되므로 공유가 필요한 이 렌더러를 shared 에 둔다.
매니페스트 모양이 두 곳에 각각 있으면 반드시 갈라진다. 갈라진 쪽은 ESO 가 조용히 무시하고, 그 Secret 을 참조하는 파드는 FailedMount 로 영원히 기동하지 못한다 — 원인이 멀리 떨어진 실패가 된다.
Index ¶
Constants ¶
View Source
const DefaultRefreshInterval = "5m"
DefaultRefreshInterval 은 ESO 가 OpenBao 를 다시 읽는 주기다.
Variables ¶
This section is empty.
Functions ¶
func IndentYAML ¶
IndentYAML 은 여러 줄 값을 블록 스칼라 안에 넣을 수 있게 들여쓴다.
Types ¶
type Entry ¶
type Entry struct {
// SecretKey 는 Kubernetes Secret 안의 키 이름이다.
// 이 Secret 을 참조하는 쪽(차트의 existingSecret, 파드의 secretKeyRef)이
// 요구하는 이름과 정확히 일치해야 한다.
SecretKey string
// RemotePath 는 OpenBao 의 전체 경로다(접두사 포함).
RemotePath string
}
Entry 는 대상 Secret 안의 키 하나와 그것이 올 OpenBao 경로다.
type Spec ¶
type Spec struct {
Name string
Namespace string
// SecretStoreName 은 같은 네임스페이스에 있는 SecretStore 이름이다.
SecretStoreName string
// RefreshInterval 이 비면 DefaultRefreshInterval 을 쓴다.
RefreshInterval string
Entries []Entry
// TemplateData 가 있으면 target.template 으로 렌더링한다.
// 값 안에서 {{ .키 }} 로 Entries 의 SecretKey 를 참조한다.
TemplateData map[string]string
}
Spec 은 ExternalSecret 하나를 기술한다.
Click to show internal directories.
Click to hide internal directories.