Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tryAddFileWatcher (0.14 sec)

  1. security/pkg/nodeagent/cache/secretcache_test.go

    		filePath           string
    		expFilePathToWatch string
    		expErr             error
    	}{
    		{
    			name: "Given a file is expected to be watched, " +
    				"When tryAddFileWatcher is invoked, with file path which does not start with /" +
    				"Then tryAddFileWatcher should watch on the absolute path",
    			filePath:           relativeFilePath,
    			expFilePathToWatch: absFilePathOfRelativeFilePath,
    			expErr:             nil,
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. security/pkg/nodeagent/cache/secretcache.go

    	go func() {
    		b := backoff.NewExponentialBackOff(backoff.DefaultOption())
    		_ = b.RetryWithContext(context.TODO(), func() error {
    			err := sc.tryAddFileWatcher(file, resourceName)
    			return err
    		})
    	}()
    }
    
    func (sc *SecretManagerClient) tryAddFileWatcher(file string, resourceName string) error {
    	// Check if this file is being already watched, if so ignore it. This check is needed here to
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 08:29:46 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top