Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UserFacingComponentName (0.24 sec)

  1. operator/pkg/util/progress/progress_test.go

    			t.Fatalf("expected '%v', \ngot '%v'", newExpected, buf.String())
    		}
    		expected = newExpected
    	}
    
    	p := NewLog()
    	cnp := name.PilotComponentName
    	cnpo := name.UserFacingComponentName(cnp)
    	cnb := name.IstioBaseComponentName
    	cnbo := name.UserFacingComponentName(cnb)
    	foo := p.NewComponent(string(cnp))
    	foo.ReportProgress()
    	expect(`- Processing resources for ` + cnpo + `.`)
    
    	bar := p.NewComponent(string(cnb))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. operator/pkg/name/name.go

    func TitleCase(n ComponentName) ComponentName {
    	s := string(n)
    	return ComponentName(strings.ToUpper(s[0:1]) + s[1:])
    }
    
    // UserFacingComponentName returns the name of the given component that should be displayed to the user in high
    // level CLIs (like progress log).
    func UserFacingComponentName(name ComponentName) string {
    	ret, ok := userFacingComponentNames[name]
    	if !ok {
    		return "Unknown"
    	}
    	return ret
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. operator/pkg/name/name_test.go

    			n:    IstioBaseComponentName,
    			want: "Istio core",
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := UserFacingComponentName(tt.n); got != tt.want {
    				t.Errorf("UserFacingComponentName() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestNamespace(t *testing.T) {
    	type args struct {
    		componentName    ComponentName
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 05 14:08:11 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. operator/pkg/util/progress/progress.go

    func (p *Log) createStatus(maxWidth int) string {
    	comps := make([]string, 0, len(p.components))
    	wait := make([]string, 0, len(p.components))
    	for c, l := range p.components {
    		comps = append(comps, name.UserFacingComponentName(name.ComponentName(c)))
    		wait = append(wait, l.waitingResources()...)
    	}
    	sort.Strings(comps)
    	sort.Strings(wait)
    	msg := fmt.Sprintf(`Processing resources for %s.`, strings.Join(comps, ", "))
    	if len(wait) > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. operator/cmd/mesh/install.go

    			}
    			if enabled {
    				enabledComponents = append(enabledComponents, name.UserFacingComponentName(c))
    			}
    		}
    		for _, c := range iop.Spec.Components.IngressGateways {
    			if c.Enabled.GetValue() {
    				enabledComponents = append(enabledComponents, name.UserFacingComponentName(name.IngressComponentName))
    				break
    			}
    		}
    		for _, c := range iop.Spec.Components.EgressGateways {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:35 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top