To exclude the files when doing a search in VSCode, one can specify multiple regular expressions in a string like this.
vendor/**,**/*_test.go
The above will exclude all the files under vendor folder and all the files whose name ends with _test.go
To exclude the files when doing a search in VSCode, one can specify multiple regular expressions in a string like this.
vendor/**,**/*_test.go
The above will exclude all the files under vendor folder and all the files whose name ends with _test.go
To use a computer to control (Power on/off) many devices, one may use a system like this.
1. Connect a multi-channel Relay module to a computer via possibly RS485 interface. Something like this.
Modbus RTU 8-Channels Relay Module with RS485 Bus
2. Then use low voltage wire to connect a device via solid state relay to the multi-channel relay. Something like this:
3. Then create a program to manage the multiple channel relay to control device's power.
4. It may be necessary to have a converter for RS485 so that the multi-channel relay can be connected with a computer (PC)
Istiod uses serviceAccount `istiod` and serviceAccountName `istiod` to have gain access to k8s api server. According to how service account works with a pod, this basically mount the token in this directory
/var/run/secrets/kubernetes.io/serviceaccount
this directory contains root ca, namespace and jwt.
in remote case, istiod has to be configured to use istio-kubeconfig secret to gain access to the remote cluster. The secret will be mounted to istiod pod at the following location
/var/run/secrets/remote
the name of the file normally is config which basically contains a content of a kube config file.
annotations.K8sAnalyzer,
auth.AuthorizationPoliciesAnalyzer,
deployment.MultiServiceAnalyzer,
applicationUID.Analyzer,
deprecation.DeprecationAnalyzer,
gateway.IngressGatewayPortAnalyzer,
gateway.CertificateAnalyzer,
gateway.SecretAnalyzer,
gateway.ConflictingGatewayAnalyzer,
injection.Analyzer,
injection.ImageAnalyzer,
injection.ImageAutoAnalyzer,
meshnetworks.MeshNetworksAnalyzer,
service.PortNameAnalyzer,
sidecar.DefaultSelectorAnalyzer,
sidecar.SelectorAnalyzer,
virtualservice.ConflictingMeshGatewayHostsAnalyzer,
virtualservice.DestinationHostAnalyzer,
virtualservice.DestinationRuleAnalyzer,
virtualservice.GatewayAnalyzer,
virtualservice.JWTClaimRouteAnalyzer,
virtualservice.RegexAnalyzer,
destinationrule.CaCertificateAnalyzer,
serviceentry.Analyzer,
webhook.Analyzer,
schema.ValidationAnalyzer.WasmPlugin,
schema.ValidationAnalyzer.MeshConfig,
schema.ValidationAnalyzer.MeshNetworks,
schema.ValidationAnalyzer.DestinationRule,
schema.ValidationAnalyzer.EnvoyFilter,
schema.ValidationAnalyzer.Gateway,
schema.ValidationAnalyzer.ServiceEntry,
schema.ValidationAnalyzer.Sidecar,
schema.ValidationAnalyzer.VirtualService,
schema.ValidationAnalyzer.WorkloadEntry,
schema.ValidationAnalyzer.WorkloadGroup,
schema.ValidationAnalyzer.ProxyConfig,
schema.ValidationAnalyzer.AuthorizationPolicy,
schema.ValidationAnalyzer.PeerAuthentication,
schema.ValidationAnalyzer.RequestAuthentication,
schema.ValidationAnalyzer.Telemetry
To develop Istio locally on your machine can be problematic since Istiod deployment requires Istio pilot image to be available from a container image repository, this can be difficult since as a developer you are making changes to the container which is not in any repo yet. This process will let a developer to do this locally without using any container repo.
1. Build istio using your own version, for example,
export VERSION=1.20-dev export TAG=$VERSION export HUB=istio export DEBUG=1 (optional)
make istioctl docker.pilot docker.proxyv2 docker.operator
Istio source directory has a file named Makefile.core.mk which should have a environment variable named VERSION defined, the value should be something like 1.13-dev, 1.14-dev etc depends on which branch you may have. You can use the above example to set up an Istio version yourself to something in your like.
Alternatively, you can add export
2. Once your istiod, proxyv2, operator images are built, you can now run this script to upload these images to your kind cluster.
3. Then you use the newly built istioctl cli to deploy istio onto your cluster, this way, your kind cluster will have your local image available and running, you then can look at the logs from istiod, or proxyv2 to find issues or test features.
1. Get all the tags (releases most likely)
git fetch --all --tags
2. Then checkout a specific tag
git checkout tags/1.12.5 -b my1.12.5
3. Check you are indeed on the branch
git branch
============
To sync with upstream master branch
1. Fetch upstream branch, for example
git fetch upstream master
2. Switch to the local branch that you like to sync with the upstream branch
git rebase upstream/master
3. Doing the above may produce conflict, then you will need to resolve the conflicts, then run the following command:
git rebase --continue
4. Most likely you will need to do the following to get your branch pushed to your own remote repo.
git push -f origin master
============
To get someone else's pull request for build or test purpose, assume that your local repo is the clone of your own repository, and upstream is the upstream repo. then do the following:
1. git fetch upstream pull/$ID/head:$BRANCHNAME
2. git checkout $BRANCHNAME
Where $ID should be the pull request id which is normally found at the very end of the PR url. $BRANCHNAME should be just a name. Once the fetch command succeeded, you can use git checkout to switch to that branch and do whatever you need to do.
go tool pprof -http=:8888 localhost:8080/debug/pprof/heapOne can use a specific IP address to allow access from outside of the machine which is running the tool
go tool pprof -http=192.168.56.32:8888 localhost:8080/debug/pprof/heap2. When running in the server env. -no_browser option probably will be nice to avoid the warning messages from the process.
go tool pprof -no_browser -http=192.168.56.32:8888 localhost:8080/debug/pprof/heap