Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetCommonTlsContext (0.16 sec)

  1. pilot/test/xdstest/extract.go

    			continue
    		}
    		tl := UnmarshalAny[tls.UpstreamTlsContext](t, s.GetTypedConfig())
    		resourceNames.Insert(tl.GetCommonTlsContext().GetCombinedValidationContext().GetValidationContextSdsSecretConfig().GetName())
    		for _, s := range tl.GetCommonTlsContext().GetTlsCertificateSdsSecretConfigs() {
    			resourceNames.Insert(s.GetName())
    		}
    	}
    	return resourceNames.UnsortedList()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  2. pilot/pkg/simulation/traffic.go

    		sim.t.Fatal(err)
    	}
    
    	if len(t.GetCommonTlsContext().GetTlsCertificateSdsSecretConfigs()) == 0 {
    		return false
    	}
    	// This is a lazy heuristic, we could check for explicit default resource or spiffe if it becomes necessary
    	if t.GetCommonTlsContext().GetTlsCertificateSdsSecretConfigs()[0].Name != mTLSSecretConfigName {
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. pilot/pkg/xds/cds_test.go

    				tl := xdstest.UnmarshalAny[tls.UpstreamTlsContext](t, cluster.GetTransportSocket().GetTypedConfig())
    				names := sets.New[string]()
    				// nolint: staticcheck
    				for _, n := range tl.GetCommonTlsContext().GetCombinedValidationContext().GetDefaultValidationContext().GetMatchSubjectAltNames() {
    					names.Insert(n.GetExact())
    				}
    				assert.Equal(t, sets.SortedList(names), sets.SortedList(sets.New(sans...)))
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 02:06:39 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. pilot/pkg/xds/eds_test.go

    		t.Fatal(err)
    	}
    	transport := &tls.UpstreamTlsContext{}
    	ads.GetEdsClusters()["outbound|80||test1"].GetTransportSocketMatches()[0].GetTransportSocket().GetTypedConfig().UnmarshalTo(transport)
    	sans := transport.GetCommonTlsContext().GetCombinedValidationContext().GetDefaultValidationContext().GetMatchSubjectAltNames() //nolint: staticcheck
    	if len(sans) != 1 {
    		t.Fatalf("expected 1 san, got %v", sans)
    	}
    }
    
    func TestEds(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
Back to top