// GetEnv return EnvVar used by the ksvc.
GetEnv return EnvVar used by the ksvc.
// GetEnv return EnvVar used by the ksvc .
func (args *ServiceArgs) GetEnv() []corev1.EnvVar {
	envs := []corev1.EnvVar{{
		Name:  "EVENT_SOURCE",
		Value: args.EventSource,
	}, {
		Name:  "METRICS_DOMAIN",
		Value: "knative.dev/eventing",
	}, {
		Name:  "NAMESPACE",
		Value: args.Source.Namespace,
	}, {
		Name:  "DISABLE_AUTO_CALLBACK",
		Value: strconv.FormatBool(args.Source.Spec.DisableAutoCallback),
	}, {
		Name:  "METRICS_PROMETHEUS_PORT",
		Value: "9089",
	}}
	return append(
		envs,
		args.AdditionalEnvs...,
	)
}
func ( args * ServiceArgs ) GetEnv ( ) [ ] corev1 . EnvVar { envs := [ ] corev1 . EnvVar { { Name : " " , Value : args . EventSource , } , { Name : " " , Value : " " , } , { Name : " " , Value : args . Source . Namespace , } , { Name : " " , Value : strconv . FormatBool ( args . Source . Spec . DisableAutoCallback ) , } , { Name : " " , Value : " " , } } return append ( envs , args . AdditionalEnvs ... , ) }
GetEnv return EnvVar used by the ksvc.
GetEnv return EnvVar used by the ksvc .