I am running automation tests which apply kubernetes yamls to a kubernetes cluster using the fabric8 kubernetes client.
One of the features I like about kubectl apply -f
is that if I attempt to apply the same yaml twice then the environment simply ignores the action and leaves my deployments, pods etc running as they were. This means that each of my tests can apply the same yaml and lazily create resources on the kubernetes cluster
I would like this same functionality with the fabric8 KubernetesClient
but the createOrReplace()
method seems to behave differently to kubectl apply -f