What does the Action ADD in fabric8 watch API mean? My initial understanding of it is to add a resource, but I tested it and a bunch of ADD Actions were triggered.
What does the Action ADD in kubernetes-fabric8 watch API mean?
678 Views Asked by shadowsocks At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
- Google Container Engine (GKE): "Hello Wordpress" tutorial not working (ERR_CONNECTION_REFUSED)
- Kubernetes Pod Creation Speed
- How can i set max count of pods for replication-controller per node?
- Is there a way to tell kubernetes to update your containers?
- Postgres with Kubernetes and persistentDisk
Related Questions in FABRIC8
- How to set up environment for fabric8-cdi
- How to deploy with fabric8 on Jboss Fuse Openshift
- Can I force Fuse Fabric Maven Proxy to push an updated version of the same jar to containers
- How to get kubernetes service account access token using fabric8 java client?
- fabric:profile-refresh and fabric:watch doesn't work with Fuse 6.3
- Docker maven fabric8 plugin (on Windows): building image gives incompatibility issues ?
- Kubernetes fabric8 Java API - How to list StorageClass objects
- Fabric8: Unable to stop the cluster exec: "minikube": executable file not found in $PATH
- Maven / Fabric8 - build an OpenShift container image against a remote OpenShift installation
- SharedIndexInformer (Fabric8 kubernetes-client) watches only pods of its own namespace when run in the cluster
- Trigger Kubernetes from from another kubernetes job
- How to delete Kubernetes Job object in Java via io.fabric8
- fabric8 Informer for all Kubernetes Custom Resources in the cluster
- KubernetesClientException: Configured service account doesn't have access after an ungrade to Spring Cloud 2022.0.3
- Fabric8 exec command in pod: piped commands?
Related Questions in FABRIC8-MAVEN-PLUGIN
- Maven / Fabric8 - build an OpenShift container image against a remote OpenShift installation
- fabric8 maven plugin configuration with image running Java > 8
- Docker healthcheck command always returns healthy
- How to network to my fabric8 docker compose service from cloud build?
- Override default jkube deployment name
- fabric8io docker-maven-plugin assembly and external artifact
- How to push docker images to AWS ECR using fabric8 maven plugin while pulling base images from default registry?
- dynamically or programmatically unmount / detach a persistent volum claim from a kubernetes pod and assign (mount /attach ) it to another pod
- Fabric8io plugin with Gitlab CI
- Save Multiple docker images into one tar.gz file with maven fabric8 plugin
- Fabric8 Maven Plugin - How to pass --rm into build options?
- How to add a custom serializer/format for Java zoneddatetime with fabric8 maven plugin?
- Unable to push docker image with fabric8 plugin
- fabric8-maven-plugin - Generator for Dropwizard app (java-exec?)
- How do I keep the Eureka server url dynamic in the Eureka Client while using docker?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, Fabric8 Kubernetes Client's
WatchEventbasically maps to Kubernetespkg/watch/json. SoEventTypein it is basically aStringvalue which is sent by Kubernetes API server as a response and you need to handle what you need to do on the type of event. It can have these values:ADDED,DELETED,MODIFIED,BOOKMARK,ERROR. When you start the watch without anyresourceVersionas a parameter, it would just start with resource version set to0. It starts watch from the beginning and you seeADDactions being triggered for the resources which are already in the cluster. I think you must have seen this behavior when you usekubectlas well:If you go ahead and create some more resources, you should be able to see more
ADDEDactions being triggered. On modifying, you should be seeingMODIFIEDevents as well. These are sent by Kubernetes APIServer and Fabric8 Kubernetes Client just deserializes them into Java objects.So, while watching I would suggest you to handle all the cases depending upon your situation inside the
eventReceived()call like this:I hope this clears your understanding of Fabric8's WatchEvent types.