Documentation ¶
Index ¶
- Constants
- func CreateCapp(k8sClient client.Client, capp *rcsv1alpha1.Capp) *rcsv1alpha1.Capp
- func CreateCappWithLogger(logType string, client client.Client) *v1alpha1.Capp
- func CreateConfigMap(k8sClient client.Client, configMap *corev1.ConfigMap)
- func CreateCredentialsSecret(logType string, client client.Client)
- func CreateSecret(k8sClient client.Client, secret *corev1.Secret)
- func DeleteCapp(k8sClient client.Client, capp *rcsv1alpha1.Capp)
- func DoesResourceExist(k8sClient client.Client, obj client.Object) bool
- func GenerateCappName() string
- func GenerateRouteHostname() string
- func GenerateSecretName() string
- func GetCapp(k8sClient client.Client, name string, namespace string) *rcsv1alpha1.Capp
- func GetDomainMapping(k8sClient client.Client, name string, namespace string) *knativev1beta1.DomainMapping
- func GetFlow(k8sClient client.Client, name string, namespace string) *loggingv1beta1.Flow
- func GetKsvc(k8sClient client.Client, name string, namespace string) *knativev1.Service
- func GetNextRevisionName(currentRevision string) string
- func GetOutput(k8sClient client.Client, name string, namespace string) *loggingv1beta1.Output
- func GetResource(k8sClient client.Client, obj client.Object, name, namespace string)
- func GetRevision(k8sClient client.Client, name string, namespace string) *knativev1.Revision
- func UpdateCapp(k8sClient client.Client, capp *rcsv1alpha1.Capp)
- func UpdateSecret(k8sClient client.Client, secret *corev1.Secret)
Constants ¶
const ( TimeoutCapp = 30 * time.Second CappCreationInterval = 2 * time.Second )
const ( RandStrLength = 10 RouteHostname = "test.dev" RouteTlsSecret = "https-capp-secret" )
Variables ¶
This section is empty.
Functions ¶
func CreateCapp ¶
func CreateCapp(k8sClient client.Client, capp *rcsv1alpha1.Capp) *rcsv1alpha1.Capp
CreateCapp creates a new Capp instance with a unique name and returns it.
func CreateCappWithLogger ¶
CreateCappWithLogger creates a Capp instance with the specified logger type and returns the created Capp object.
func CreateConfigMap ¶ added in v0.1.5
CreateConfigMap creates a new configMap.
func CreateCredentialsSecret ¶
CreateCredentialsSecret creates a Kubernetes secret containing credentials for the specified logger type.
func CreateSecret ¶
CreateSecret creates a new secret.
func DeleteCapp ¶
func DeleteCapp(k8sClient client.Client, capp *rcsv1alpha1.Capp)
DeleteCapp deletes an existing Capp instance.
func DoesResourceExist ¶
DoesResourceExist checks if a given Kubernetes object exists in the cluster.
func GenerateCappName ¶
func GenerateCappName() string
GenerateCappName generates a new secret name by calling generateName with the predefined RouteTlsSecret as the baseName.
func GenerateRouteHostname ¶
func GenerateRouteHostname() string
GenerateRouteHostname generates a new route hostname by calling generateName with the predefined RouteHostname as the baseName.
func GenerateSecretName ¶
func GenerateSecretName() string
GenerateSecretName generates a new secret name by calling generateName with the predefined RouteTlsSecret as the baseName.
func GetDomainMapping ¶
func GetDomainMapping(k8sClient client.Client, name string, namespace string) *knativev1beta1.DomainMapping
GetDomainMapping fetch existing and return an instance of DomainMapping.
func GetNextRevisionName ¶
GetNextRevisionName generates the name for the next revision based on the current revision name.
func GetResource ¶
GetResource fetches an existing resource and returns an instance of it.
func GetRevision ¶
GetRevision retrieves existing instance of Revision and returns it.
func UpdateCapp ¶
func UpdateCapp(k8sClient client.Client, capp *rcsv1alpha1.Capp)
UpdateCapp updates an existing Capp instance.
Types ¶
This section is empty.