Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for function (0.2 sec)

  1. common/scripts/tracing.sh

        --attrs "$(_genattrs)"
      if [[ $was_execution_trace == 1 ]]; then
        { set -x; } 2>/dev/null
      fi
      return "$result"
    }
    
    # Usage: tracing::decorate <function>
    # Automatically makes a function traced.
    function tracing::decorate() {
    eval "\
    function $1() {
    _$(typeset -f "$1")
    tracing::run '$1' _$1
    }
    "
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jul 28 15:25:47 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  2. common/scripts/check_clean_repo.sh

    #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    #   See the License for the specific language governing permissions and
    #   limitations under the License.
    
    function write_patch_file() {
        if [ -z "${ARTIFACTS}" ]; then
          return 0
        fi
    
        PATCH_NAME="check-clean-repo-diff.patch"
        PATCH_OUT="${ARTIFACTS}/${PATCH_NAME}"
        git diff > "${PATCH_OUT}"
    
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Jan 11 22:57:12 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  3. bin/update_deps.sh

    UPDATE_BRANCH=${UPDATE_BRANCH:-"master"}
    
    SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
    ROOTDIR=$(dirname "${SCRIPTPATH}")
    cd "${ROOTDIR}"
    
    # Get the sha of top commit
    # $1 = repo
    function getSha() {
      git ls-remote "https://github.com/istio/${1}.git" "refs/heads/${UPDATE_BRANCH}" | cut -f 1
    }
    
    make update-common
    
    export GO111MODULE=on
    go get -u "istio.io/api@${UPDATE_BRANCH}"
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Sep 12 14:07:30 GMT 2023
    - 2K bytes
    - Viewed (0)
  4. cni/pkg/iptables/iptables.go

    				log.Debugf("ignoring error deleting optional iptables rule: %v", err)
    			}
    		}
    	}
    	return errors.Join(delErrs...)
    }
    
    // Setup iptables rules for in-pod mode. Ideally this should be an idempotent function.
    // NOTE that this expects to be run from within the pod network namespace!
    func (cfg *IptablesConfigurator) CreateInpodRules(hostProbeSNAT *netip.Addr) error {
    	// Append our rules here
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  5. common/scripts/kind_provisioner.sh

    DEFAULT_KIND_IMAGE="gcr.io/istio-testing/kind-node:v1.28.4"
    
    # COMMON_SCRIPTS contains the directory this file is in.
    COMMON_SCRIPTS=$(dirname "${BASH_SOURCE:-$0}")
    
    function log() {
      echo -e "$(date -u '+%Y-%m-%dT%H:%M:%S.%NZ')\t$*"
    }
    
    function retry() {
      local n=1
      local max=5
      local delay=5
      while true; do
        "$@" && break
        if [[ $n -lt $max ]]; then
          ((n++))
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 08 19:12:55 GMT 2024
    - 17.3K bytes
    - Viewed (1)
  6. istioctl/pkg/util/handlers/handlers.go

    // Otherwise uses the namespace value passed into the function
    func InferPodInfo(name, defaultNS string) (string, string) {
    	return inferNsInfo(name, defaultNS)
    }
    
    // inferNsInfo Uses name to infer namespace if the passed name contains namespace information.
    // Otherwise uses the namespace value passed into the function
    func inferNsInfo(name, namespace string) (string, string) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. bin/retry.sh

    # This will run "my-flaky-script.sh", retrying any failed runs that output "connection timed out" up
    # to 5 times.
    
    function fail {
      echo "${1}" >&2
      exit 1
    }
    
    function isatty() {
     if [ -t 1 ] ; then
       return 0
      else
       return 1
      fi
    }
    
    function retry {
      local tmpFile
      tmpFile=$(mktemp)
      trap 'rm -f "${tmpFile}"' EXIT
    
      local failureRegex="$1"
      shift
      local n=1
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jun 11 16:08:08 GMT 2021
    - 2K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil_test.go

    		},
    		// TODO: when there exists a means for users to signal the intent to exclude a pod from ambient without requiring the use of
    		// the ambient redirection annotation, this annotation should no longer be checked by this function and this case should return 'true'
    		{
    			name: "pod has annotation to disable ambient redirection",
    			args: args{
    				namespace: namespaceWithAmbientEnabledLabel,
    				pod:       podWithAmbientDisabledAnnotation,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 18:04:40 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/policies.go

    	"fmt"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    // PolicyFilter is used to pass filter information into service based config writer print functions
    type PolicyFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *PolicyFilter) Verify(pol *ZtunnelPolicy) bool {
    	if wf.Namespace != "" {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/pilot/status.go

    	if clientConfig.GetGenericXdsConfigs() != nil {
    		configs = clientConfig.GetGenericXdsConfigs()
    		return configs
    	}
    
    	// FIXME: currently removing the deprecated code below may result in functions not working
    	// if there is a mismatch of versions between istiod and istioctl
    	// nolint: staticcheck
    	for _, config := range clientConfig.GetXdsConfig() {
    		var typeURL string
    		switch config.PerXdsConfig.(type) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 04:16:55 GMT 2024
    - 6.1K bytes
    - Viewed (0)
Back to top