- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for OS (9.33 sec)
-
cni/pkg/install/install_test.go
t.Fatal(err) } // Create existing binary files if err := os.WriteFile(filepath.Join(cniBinDir, "istio-cni"), []byte{1, 2, 3}, 0o755); err != nil { t.Fatal(err) } // Create kubeconfig kubeConfigFilePath := filepath.Join(cniNetDir, "kubeconfig") if err := os.WriteFile(kubeConfigFilePath, []byte{1, 2, 3}, 0o755); err != nil { t.Fatal(err) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 11.1K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
if err = validateFlags(); err != nil { return err } var reader io.Reader if inFilename == "-" { reader = os.Stdin } else { var in *os.File if in, err = os.Open(inFilename); err != nil { return err } reader = in defer func() { if errClose := in.Close(); errClose != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 29 02:29:02 GMT 2024 - 21.6K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
var reader io.ReadCloser warningsByFilename := map[string]validation.Warning{} processFile := func(path string) { var err error if path == "-" { reader = io.NopCloser(os.Stdin) } else { reader, err = os.Open(path) if err != nil { errs = multierror.Append(errs, fmt.Errorf("cannot read file %q: %v", path, err)) return } }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Jan 22 17:58:52 GMT 2024 - 15K bytes - Viewed (0) -
cni/test/install_cni.go
if value, ok := os.LookupEnv(key); ok { return value } return fallback } func setEnv(key, value string, t *testing.T) { t.Helper() err := os.Setenv(key, value) if err != nil { t.Fatalf("Couldn't set environment variable, err: %v", err) } } func mktemp(dir, prefix string, t *testing.T) string { t.Helper() tempDir, err := os.MkdirTemp(dir, prefix) if err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 12.5K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
// See the License for the specific language governing permissions and // limitations under the License. package workload import ( "bytes" "context" "fmt" "os" "path" "reflect" "strings" "testing" "github.com/spf13/cobra" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "istio.io/istio/istioctl/pkg/cli"
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 16:59:05 GMT 2024 - 14.6K bytes - Viewed (0) -
operator/cmd/mesh/manifest_shared_test.go
} // readFile reads a file and returns the contents. func readFile(path string) (string, error) { b, err := os.ReadFile(path) return string(b), err } // writeFile writes a file and returns an error if operation is unsuccessful. func writeFile(path string, data []byte) error { return os.WriteFile(path, data, 0o644) } // inFileAbsolutePath returns the absolute path for an input file like "gateways".
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 20 22:39:28 GMT 2024 - 11.7K bytes - Viewed (1) -
istioctl/pkg/multixds/gather.go
package multixds // multixds knows how to target either central Istiod or all the Istiod pods on a cluster. import ( "context" "encoding/json" "errors" "fmt" "io" "net" "net/url" "os" "strings" discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" xdsstatus "github.com/envoyproxy/go-control-plane/envoy/service/status/v3" "google.golang.org/grpc" v1 "k8s.io/api/core/v1"
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 08 08:38:19 GMT 2024 - 13.6K bytes - Viewed (0) -
cni/pkg/install/cniconfig.go
existingCNIConfig, err := os.ReadFile(cniConfigFilepath) if err != nil { return "", err } cniConfig, err = insertCNIConfig(cniConfig, existingCNIConfig) if err != nil { return "", err } } if err = file.AtomicWrite(cniConfigFilepath, cniConfig, os.FileMode(0o644)); err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 10.4K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver.go
return nil, fmt.Errorf("failed to resolve unix addr: %w", err) } // remove potentially existing address // Remove unix socket before use, if one is leftover from previous CNI restart if err := os.Remove(addr); err != nil && !os.IsNotExist(err) { // Anything other than "file not found" is an error. return nil, fmt.Errorf("failed to remove unix://%s: %w", addr, err) } l, err := net.ListenUnix("unixpacket", resolvedAddr)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 12.4K bytes - Viewed (0) -
operator/cmd/mesh/install.go
// See the License for the specific language governing permissions and // limitations under the License. package mesh import ( "context" "fmt" "io" "os" "sort" "strings" "time" "github.com/fatih/color" "github.com/spf13/cobra" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" "istio.io/api/operator/v1alpha1"
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu May 02 14:30:43 GMT 2024 - 15.5K bytes - Viewed (1)