Skip to content

Commit

Permalink
Add eks secrets encryption (kubernetes-sigs#171)
Browse files Browse the repository at this point in the history
* Add eks secrets encryption

* Fix merge

* Update changelog

* Add space

* Improve spaces
  • Loading branch information
kahun authored Jul 7, 2023
1 parent b1303e2 commit 56cb98b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 0.17.0-0.3.0 (Upcoming)

* Add EKS secrets encryption support
* Fix wait conditions for unmanaged clusters

## 0.17.0-0.2.0 (2023-07-03)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ spec:
- name: ENI_CONFIG_LABEL_DEF
value: \"topology.kubernetes.io/zone\"
{{- end }}
{{- if ne .KeosCluster.Spec.ControlPlane.AWS.EncryptionKey "" }}
encryptionConfig:
provider: \"{{ .KeosCluster.Spec.ControlPlane.AWS.EncryptionKey }}\"
resources:
- secrets
{{- end }}
{{- range $node := .KeosCluster.Spec.WorkerNodes }}
{{- range $index, $n := loop .AZ .ZoneDistribution .Quantity .NodeGroupMaxSize .NodeGroupMinSize }}
---
Expand Down
3 changes: 2 additions & 1 deletion pkg/commons/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ type Subnets struct {
}

type AWSCP struct {
AssociateOIDCProvider bool `yaml:"associate_oidc_provider" validate:"boolean"`
AssociateOIDCProvider bool `yaml:"associate_oidc_provider" validate:"boolean"`
EncryptionKey string `yaml:"encryption_key"`
Logging struct {
ApiServer bool `yaml:"api_server" validate:"boolean"`
Audit bool `yaml:"audit" validate:"boolean"`
Expand Down

0 comments on commit 56cb98b

Please sign in to comment.