Bottom turtle ha registry tests (#929)

* Bottom turtle ha registry tests

Signed-off-by: Kevin Fox <[email protected]>

* Fix test because of spire-ha-agent

Signed-off-by: Kevin Fox <[email protected]>

* Fix config options

Signed-off-by: Kevin Fox <[email protected]>

* Fix yq issue and log better

Signed-off-by: Kevin Fox <[email protected]>

* Fix some things

Signed-off-by: Kevin Fox <[email protected]>

* Change timeout and fix image

Signed-off-by: Kevin Fox <[email protected]>

* Bump up zot version.

Signed-off-by: Kevin Fox <[email protected]>

* More debugging stuff

Signed-off-by: Kevin Fox <[email protected]>

* More debugging stuff

Signed-off-by: Kevin Fox <[email protected]>

* More fixes

Signed-off-by: Kevin Fox <[email protected]>

* More logging

Signed-off-by: Kevin Fox <[email protected]>

* More logging

Signed-off-by: Kevin Fox <[email protected]>

* More logging

Signed-off-by: Kevin Fox <[email protected]>

* More logging

Signed-off-by: Kevin Fox <[email protected]>

* More logging

Signed-off-by: Kevin Fox <[email protected]>

* Fix test

Signed-off-by: Kevin Fox <[email protected]>

* Log less

Signed-off-by: Kevin Fox <[email protected]>

* Cleanup

Signed-off-by: Kevin Fox <[email protected]>

* Make test less different then real deployment

Signed-off-by: Kevin Fox <[email protected]>

---------

Signed-off-by: Kevin Fox <[email protected]>
Signed-off-by: kfox1111 <[email protected]>
This commit is contained in:
kfox1111
2026-09-04 12:50:34 -07:00
committed by GitHub
parent bb4c73febf
commit 2a8c1b63c4
23 changed files with 1082 additions and 28 deletions
@@ -1,6 +1,14 @@
internal-spire-server-bottom-turtle-ha-a: &server
controllerManager:
identities:
clusterSPIFFEIDs:
zot:
spiffeIDTemplate: spiffe://{{ .TrustDomain }}/zot
podSelector:
matchLabels:
app.kubernetes.io/name: zot
dnsNameTemplates:
- zot.{{ .TrustDomain }}
clusterStaticEntries:
test:
parentID: spiffe://production.other/spire-identity-exchange
@@ -8,6 +16,33 @@ internal-spire-server-bottom-turtle-ha-a: &server
selectors:
- k8s_psat:namespace:default
- k8s_psat:service_account_name:default
image-push:
parentID: spiffe://production.other/spire-identity-exchange
spiffeID: spiffe://production.other/image-push
selectors:
- k8s_psat:namespace:default
- k8s_psat:service_account_name:zot-push
- spiffe:source_path:/ns/default/sa/zot-push
- spire_identity_exchange:stack:name:image_pull
image-pull:
parentID: spiffe://production.other/spire-identity-exchange
spiffeID: spiffe://production.other/image-pull
selectors:
- k8s_psat:namespace:default
- k8s_psat:service_account_name:zot-pull
- spiffe:source_path:/kubelet
- spire_identity_exchange:stack:name:image_pull
image-pull-from-pod:
parentID: spiffe://production.other/spire-identity-exchange
spiffeID: spiffe://production.other/image-pull
selectors:
- k8s_psat:namespace:default
- k8s_psat:service_account_name:zot-pull
- spiffe:source_path:/ns/default/sa/zot-pull
- spire_identity_exchange:stack:name:image_pull
spireIdentityExchange:
enabled: true
@@ -30,6 +65,14 @@ spire-identity-exchange-bottom-turtle-ha-a: &six
config:
allowedServiceAccounts:
- default/default
- default/zot-push
- default/zot-pull
spiffe:
config:
pathPatterns:
- "^/kubelet$"
- "^/ns/default/sa/zot-push$"
- "^/ns/default/sa/zot-pull$"
#Set the same settings on the B side
spire-identity-exchange-bottom-turtle-ha-b: *six