Skip to content

Commit

Permalink
update official image
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Apr 20, 2024
1 parent ae5908f commit c854853
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ env:
GO_VERSION: "1.22.0"
K8S_VERSION: "v1.29.2"
KIND_VERSION: "v0.22.0"
REGISTRY: ghcr.io
IMAGE_NAME: registry.k8s.io/kube-network-policies
IMAGE_NAME: registry.k8s.io/networking/kube-network-policies
KIND_CLUSTER_NAME: kind

permissions: write-all
Expand All @@ -36,9 +35,9 @@ jobs:

- name: Build
run: |
docker build -t registry.k8s.io/kube-network-policies:test -f Dockerfile .
docker build -t registry.k8s.io/networking/kube-network-policies:test -f Dockerfile .
mkdir _output
docker save registry.k8s.io/kube-network-policies:test > _output/kube-network-policies-image.tar
docker save registry.k8s.io/networking/kube-network-policies:test > _output/kube-network-policies-image.tar
- uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -116,8 +115,8 @@ jobs:
run: |
# preload kube-network-policies image
docker load --input kube-network-policies-image.tar
/usr/local/bin/kind load docker-image registry.k8s.io/kube-network-policies:test --name ${{ env.KIND_CLUSTER_NAME}}
sed -i s#registry.k8s.io/kube-network-policies.*#registry.k8s.io/kube-network-policies:test# install.yaml
/usr/local/bin/kind load docker-image registry.k8s.io/networking/kube-network-policies:test --name ${{ env.KIND_CLUSTER_NAME}}
sed -i s#registry.k8s.io/networking/kube-network-policies.*#registry.k8s.io/networking/kube-network-policies:test# install.yaml
/usr/local/bin/kubectl apply -f ./install.yaml
- name: Get Cluster status
Expand Down
2 changes: 1 addition & 1 deletion install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
serviceAccountName: kube-network-policies
containers:
- name: kube-network-policies
image: registry.k8s.io/kube-network-policies:v0.1.0
image: registry.k8s.io/networking/kube-network-policies:v0.1.0
args:
- /bin/netpol
- -v
Expand Down

0 comments on commit c854853

Please sign in to comment.