Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func ConvertRawExtensionToYaml(config runtime.RawExtension) (string, error)
 - func CreateClusterRole(crdName string, crdNamespace string) *rbacv1.ClusterRole
 - func CreateSecret(appConfig runtime.RawExtension, secretName, secretNamespace, filename string) (*corev1.Secret, error)
 - func Ingress(name, namespace string, labels, annotations map[string]string, ...) (*networkingv1.Ingress, error)
 - func Service(name string, namespace string, labels, identityLabel map[string]string, ...) *corev1.Service
 - func ServiceAccount(name, namespace string, labels map[string]string, ...) *corev1.ServiceAccount
 - type CommonApplicationConfig
 - type GRPCConfig
 - type PortConfig
 - type ProfilingConfig
 - type TLSConfig
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var ServiceEnableApplicationPortsOnly = PortConfig{ ExposeHTTP: true, ExposeGRPC: true, ExposeMetrics: true, }
      View Source
      
  
    var ServiceEnableGRPCWithMetrics = PortConfig{ ExposeGRPC: true, ExposeMetrics: true, }
      View Source
      
  
    var ServiceEnableHTTPWithMetrics = PortConfig{ ExposeHTTP: true, ExposeMetrics: true, }
      View Source
      
  
    var ServiceEnableMetricsPortOnly = PortConfig{ ExposeMetrics: true, }
      View Source
      
  
var ServiceEnableProfilingPortOnly = PortConfig{ ExposeProfiling: true, }
Functions ¶
func ConvertRawExtensionToYaml ¶
func ConvertRawExtensionToYaml(config runtime.RawExtension) (string, error)
ConvertRawExtensionToYaml converts a RawExtension input to Yaml
func CreateClusterRole ¶
func CreateClusterRole(crdName string, crdNamespace string) *rbacv1.ClusterRole
func CreateSecret ¶
func Service ¶
func Service( name string, namespace string, labels, identityLabel map[string]string, appConfig *CommonApplicationConfig, portConfig PortConfig, ) *corev1.Service
func ServiceAccount ¶ added in v0.4.1
func ServiceAccount(name, namespace string, labels map[string]string, serviceAccountConfig *installv1alpha1.ServiceAccountConfig) *corev1.ServiceAccount
Types ¶
type CommonApplicationConfig ¶ added in v0.4.1
type CommonApplicationConfig struct {
	HTTPPort     int32           `json:"httpPort"`
	HTTPNodePort int32           `json:"httpNodePort,omitempty"`
	GRPCPort     int32           `json:"grpcPort"`
	GRPCNodePort int32           `json:"grpcNodePort,omitempty"`
	MetricsPort  int32           `json:"metricsPort"`
	Profiling    ProfilingConfig `json:"profiling"`
	GRPC         GRPCConfig      `json:"grpc"`
}
    func ParseCommonApplicationConfig ¶ added in v0.4.1
func ParseCommonApplicationConfig(rawAppConfig runtime.RawExtension) (*CommonApplicationConfig, error)
ParseCommonApplicationConfig parses the raw application config into a CommonApplicationConfig.
type GRPCConfig ¶ added in v0.4.1
type PortConfig ¶ added in v0.4.1
PortConfig specifies which ports should be exposed by the service
type ProfilingConfig ¶ added in v0.4.1
type ProfilingConfig struct {
	Port int32 `json:"port"`
}
     Click to show internal directories. 
   Click to hide internal directories.