Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate netutil methods into /utils/net.go #7421

Closed
manuelbuil opened this issue May 4, 2023 · 1 comment
Closed

Migrate netutil methods into /utils/net.go #7421

manuelbuil opened this issue May 4, 2023 · 1 comment
Assignees
Milestone

Comments

@manuelbuil
Copy link
Contributor

We have two network related "utils" files: util/net.go and netutil/iface.go. For simplicity, we could merge both and have everything under util/net.go

@VestigeJ
Copy link

VestigeJ commented May 8, 2023

Calling this good

$ k assert pod-ready -v

ASSERT pod(s) should be ready.
INFO   kubectl get pod
NAME                                          READY   STATUS    RESTARTS   AGE
akri-agent-daemonset-5q9zr                    1/1     Running   0          14m
akri-agent-daemonset-5x98b                    1/1     Running   0          14m
akri-agent-daemonset-qh9vd                    1/1     Running   0          14m
akri-agent-daemonset-t4cnv                    1/1     Running   0          14m
akri-controller-deployment-64b48bb59d-klfrp   1/1     Running   0          14m
ASSERT PASS

$ k assert apiservice-available -v

ASSERT apiservices should be available.
INFO   kubectl get apiservices
NAME                                   SERVICE                      AVAILABLE   AGE
v0.akri.sh                             Local                        True        14m
v1.                                    Local                        True        31m
v1.acme.cert-manager.io                Local                        True        14m
v1.admissionregistration.k8s.io        Local                        True        31m
v1.apiextensions.k8s.io                Local                        True        31m
v1.apps                                Local                        True        31m
v1.authentication.k8s.io               Local                        True        31m
v1.authorization.k8s.io                Local                        True        31m
v1.autoscaling                         Local                        True        31m
v1.batch                               Local                        True        31m
v1.cert-manager.io                     Local                        True        14m
v1.certificates.k8s.io                 Local                        True        31m
v1.coordination.k8s.io                 Local                        True        31m
v1.discovery.k8s.io                    Local                        True        31m
v1.events.k8s.io                       Local                        True        31m
v1.helm.cattle.io                      Local                        True        30m
v1.k3s.cattle.io                       Local                        True        30m
v1.networking.k8s.io                   Local                        True        31m
v1.node.k8s.io                         Local                        True        31m
v1.policy                              Local                        True        31m
v1.rbac.authorization.k8s.io           Local                        True        31m
v1.scheduling.k8s.io                   Local                        True        31m
v1.storage.k8s.io                      Local                        True        31m
v1alpha1.sts.min.io                    Local                        True        6m45s
v1alpha1.traefik.containo.us           Local                        True        30m
v1beta1.metrics.k8s.io                 kube-system/metrics-server   True        31m
v1beta2.flowcontrol.apiserver.k8s.io   Local                        True        31m
v1beta3.flowcontrol.apiserver.k8s.io   Local                        True        31m
v2.autoscaling                         Local                        True        31m
v2.minio.min.io                        Local                        True        6m45s
ASSERT PASS

Every 3.0s: kubectl get no,po -A


NAME                    STATUS   ROLES                       AGE   VERSION
node/ip-1-1-1-253       Ready    control-plane,etcd,master   31m   v1.27.1+k3s-3982213f
node/ip-1-1-1-86        Ready    <none>                      32m   v1.27.1+k3s-3982213f
node/ip-1-1-1-143       Ready    control-plane,etcd,master   33m   v1.27.1+k3s-3982213f
node/ip-1-1-1-238       Ready    control-plane,etcd,master   31m   v1.27.1+k3s-3982213f

NAMESPACE        NAME                                              READY   STATUS      RESTARTS   AGE
cert-manager     pod/cert-manager-b47c844fb-mp8pq                  1/1     Running     0          15m
cert-manager     pod/cert-manager-cainjector-5d4d6c9b67-68qwd      1/1     Running     0          15m
cert-manager     pod/cert-manager-webhook-fb9b789c6-tt58d          1/1     Running     0          15m
default          pod/akri-agent-daemonset-5q9zr                    1/1     Running     0          16m
default          pod/akri-agent-daemonset-5x98b                    1/1     Running     0          16m
default          pod/akri-agent-daemonset-qh9vd                    1/1     Running     0          16m
default          pod/akri-agent-daemonset-t4cnv                    1/1     Running     0          16m
default          pod/akri-controller-deployment-64b48bb59d-klfrp   1/1     Running     0          16m
kube-system      pod/coredns-77ccd57875-6qhsg                      1/1     Running     0          32m
kube-system      pod/helm-install-traefik-92tf7                    0/1     Completed   1          32m
kube-system      pod/helm-install-traefik-crd-ln72b                0/1     Completed   0          32m
kube-system      pod/local-path-provisioner-957fdf8bc-gn2tn        1/1     Running     0          32m
kube-system      pod/metrics-server-54dc485875-w5jts               1/1     Running     0          32m
kube-system      pod/svclb-traefik-308a9eef-6s8d6                  2/2     Running     0          31m
kube-system      pod/svclb-traefik-308a9eef-j699v                  2/2     Running     0          32m
kube-system      pod/svclb-traefik-308a9eef-schpq                  2/2     Running     0          31m
kube-system      pod/svclb-traefik-308a9eef-xrl78                  2/2     Running     0          32m
kube-system      pod/traefik-64f55bb67d-jz5b4                      1/1     Running     0          32m
minio-operator   pod/console-6bdf84b844-pcsp9                      1/1     Running     0          8m8s
minio-operator   pod/minio-operator-67c694f5f6-jv9xs               1/1     Running     0          8m8s
minio-operator   pod/minio-operator-67c694f5f6-mgkrb               1/1     Running     0          8m8s

@VestigeJ VestigeJ closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants