Skip to content

Commit

Permalink
disable namespaceOverride on images push (#2438)
Browse files Browse the repository at this point in the history
Signed-off-by: pixiake <guofeng@yunify.com>
  • Loading branch information
pixiake authored Oct 30, 2024
1 parent 5b3e363 commit 0067d39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/kubernetes-auto-support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Kubernetes-Auto-Support

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

Expand Down
2 changes: 1 addition & 1 deletion cmd/kk/pkg/images/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (c *CopyImagesToRegistry) Execute(runtime connector.Runtime) error {
image := Image{
RepoAddr: repoAddr,
Namespace: namespace,
NamespaceOverride: c.KubeConf.Cluster.Registry.NamespaceOverride,
NamespaceOverride: "",
Repo: imageName,
Tag: imageTag,
}
Expand Down
4 changes: 2 additions & 2 deletions hack/sync-components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ if [ $KUBERNETES_VERSION ]; then
done

chmod +x binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm
binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm config images list --kubernetes-version $KUBERNETES_VERSION | xargs -I {} oras cp {} docker.io/$DOCKERHUB_NAMESPACE/${image##}
binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm config images list --kubernetes-version $KUBERNETES_VERSION | xargs -I {} oras cp {} registry.cn-beijing.aliyuncs.com/$ALIYUNCS_NAMESPACE/${image##}
binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm config images list --kubernetes-version $KUBERNETES_VERSION | xargs -I {} oras cp {} docker.io/$DOCKERHUB_NAMESPACE/$(basename "{}")
binaries/kube/$KUBERNETES_VERSION/amd64/kubeadm config images list --kubernetes-version $KUBERNETES_VERSION | xargs -I {} oras cp {} registry.cn-beijing.aliyuncs.com/$ALIYUNCS_NAMESPACE/$(basename "{}")

rm -rf binaries
fi
Expand Down

0 comments on commit 0067d39

Please sign in to comment.