home.social

#kubernetesdev — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #kubernetesdev, aggregated by home.social.

  1. Operator works fine against a cluster, testing framework fails.

    Tracked it down and the test call to create my Custom Resource wipes the TypeMeta off it. But...why?

    #KubernetesDev #k8sDev #Kubebuilder

  2. Started wrangling this test framework and the moment I got past just getting it working it revealed a bug to me.

    Now that's instant gratification.

    #KubernetesDev #k8sDev #Kubebuilder

  3. Decided to use my morning quiet/productive hour to start test writing for my operator.

    Immediately hit a brick wall as the provided test harness falls over before even running any tests :neocat_woozy:

    Perhaps we will try again tomorrow.

    #KubernetesDev #k8sDev #KubeBuilder

  4. I'm making an operator that manages arbitrary resources at runtime using `runtime.RawExtension`

    I'd like the resource to be owned using `controllerutil.SetControllerReference` but it takes `metav1.Object` interface, which is understandably broad.

    Is there any way around implementing metav1.Object wrapping basically `[]byte` of JSON?

    Should I be using `runtime.Scheme` here? Any examples anyone knows of?

    #KubernetesDev #Kubernetes #k8sDev #k8s #Kubebuilder