-
Notifications
You must be signed in to change notification settings - Fork 224
Open
Labels
Description
Environment
OS: Rocky Linux 9.6
App version: v0.67.0
Kubernetes distro being used: k0s
Other: --features=registry-proxy=true --registry-mode=proxy
Steps to reproduce
zarf init --features=registry-proxy=true --registry-mode=proxy --confirm- Deploy fluxcd
- Deploy fluxcd OCI repo resource
Expected result
Webhook mutates to intra-cluster docker registry
Actual Result
Webhook mutates to "original address", or 127.0.0.1:5000
Visual Proof (screenshots, videos, text, etc)
2025-12-14 02:24:05 DBG registry appears to not be a nodeport service, using original address address=127.0.0.1:5000
Code links
| registryAddress, err := cluster.GetServiceInfoFromRegistryAddress(ctx, zarfState.RegistryInfo.Address) |
zarf/src/pkg/cluster/secrets.go
Lines 165 to 179 in 81e5bec
| func (c *Cluster) GetServiceInfoFromRegistryAddress(ctx context.Context, stateRegistryAddress string) (string, error) { | |
| serviceList, err := c.Clientset.CoreV1().Services("").List(ctx, metav1.ListOptions{}) | |
| if err != nil { | |
| return "", err | |
| } | |
| // If this is an internal service then we need to look it up and | |
| svc, port, err := serviceInfoFromNodePortURL(serviceList.Items, stateRegistryAddress) | |
| if err != nil { | |
| logger.From(ctx).Debug("registry appears to not be a nodeport service, using original address", "address", stateRegistryAddress) | |
| return stateRegistryAddress, nil | |
| } | |
| return fmt.Sprintf("%s:%d", svc.Spec.ClusterIP, port), nil | |
| } |
AustinAbro321
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Triage