Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for function (0.17 sec)

  1. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jun 11 16:08:08 GMT 2021
    - 2K bytes
    - Viewed (0)
  2. bin/build_ztunnel.sh

      exit 1
    fi
    
    # Gets the download command supported by the system (currently either curl or wget)
    DOWNLOAD_COMMAND=""
    function set_download_command () {
      # Try curl.
      if command -v curl > /dev/null; then
        if curl --version | grep Protocols  | grep https > /dev/null; then
    Shell Script
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 21:46:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. cni/pkg/repair/repaircontroller.go

    	m.With(resultLabel.Value(resultSuccess)).Increment()
    	return nil
    }
    
    // MatchesFilter returns true if the pod matches the repair filter criteria
    func (c *Controller) matchesFilter(pod *corev1.Pod) bool {
    	// Helper function; checks that a container's termination message matches filter
    	matchTerminationMessage := func(state *corev1.ContainerStateTerminated) bool {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. cni/README.md

    - CAP_SYS_ADMIN
    - CAP_NET_ADMIN
    - CAP_NET_RAW
    
    ## Ambient mode details
    
    Fundamentally, this component is responsible for the following:
    
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Feb 28 17:29:38 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  5. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jul 28 15:25:47 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  6. manifests/charts/istio-control/istio-discovery/values.yaml

          # minAvailable: 1
    
        # A minimal set of requested resources to applied to all deployments so that
        # Horizontal Pod Autoscaler will be able to function (if set).
        # Each component can overwrite these default values by adding its own resources
        # block in the relevant section below and setting the desired resources values.
        defaultResources:
          requests:
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 16:58:23 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  7. istioctl/pkg/util/formatting/msg_threshold.go

    type MessageThreshold struct {
    	diag.Level
    }
    
    // String is a function declared in the pflag.Value interface
    func (m *MessageThreshold) String() string {
    	return m.Level.String()
    }
    
    // Type is a function declared in the pflag.Value interface
    func (m *MessageThreshold) Type() string {
    	return "Level"
    }
    
    // Set is a function declared in the pflag.Value interface
    func (m *MessageThreshold) Set(s string) error {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Nov 17 12:28:05 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  8. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Jan 11 22:57:12 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  9. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Sep 12 14:07:30 GMT 2023
    - 2K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/ztunnel/configdump/services.go

    	"fmt"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    // ServiceFilter is used to pass filter information into service based config writer print functions
    type ServiceFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *ServiceFilter) Verify(svc *ZtunnelService) bool {
    	if wf.Namespace != "" {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top