application-operator/

directory
v0.0.0-...-a52e8f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2020 License: Apache-2.0

README

Application Operator

Overview

Application Operator detects changes in Application custom resources and acts accordingly.

Performed operations

Application Operator (AO) performs different operations as a result of the following events:

  • Application created - the AO installs the Helm chart that contains all the necessary Kubernetes resources required for the Application to work.
  • Application updated - the AO updates the Status of the Application Helm Release.
  • Application deleted - the AO deletes Helm chart corresponding to the given Application.

Usage

The Application Operator has the following parameters:

  • appName is the name used in controller registration. The default value is application-operator.
  • domainName is the domain name of the cluster. The default domain name is kyma.local.
  • namespace is the Namespace where the AO deploys the charts of the Application. The default Namespace is kyma-integration.
  • tillerUrl is the Tiller release server URL. The default value is tiller-deploy.kube-system.svc.cluster.local:44134.
  • helmTLSKeyFile is the path to the TLS key used for secure communication with Tiller. The default value is /etc/certs/tls.key.
  • helmTLSCertificateFile is the path to the TLS certificate used for secure communication with Tiller. The default value is /etc/certs/tls.crt.
  • tillerTLSSkipVerify disables TLS verification in communication with Tiller. The default value is true.
  • syncPeriod is the time period between resyncing existing resources. The default value is 30 seconds.
  • installationTimeout is the time after which the release installation will time out. The default value is 240 seconds.
  • applicationGatewayImage is the Application Gateway image version to use in the Application chart.
  • applicationGatewayTestsImage is the Application Gateway Tests image version to use in the Application chart.
  • eventServiceImage is the Event Service image version to use in the Application chart.
  • eventServiceTestsImage is the Event Service Tests image version to use in the Application chart.
  • applicationConnectivityValidatorImage is the Application Connectivity Validator image version to use in the Application chart.

Testing on a local deployment

When you develop the Application Connector components, you can test the changes you introduced on a local Kyma deployment before you push them to a production cluster. To test the component you modified, run the run-with-local-tests.sh script located in the scripts directory.

Running the script builds the Docker image of the component, pushes it to the Minikube registry, and updates the component deployment in the Minikube cluster. It then triggers the run-local-tests.sh script, which builds the image of the acceptance tests to the Minikube registry, creates a Pod with the tests, and fetches the logs from that Pod.

Alternatively, you can run only the run-local-tests.sh script for the given component to build the image of the component's acceptance tests to the Minikube registry, create a Pod with the tests, and fetch the logs from that Pod.

Directories

Path Synopsis
cmd
pkg
apis/applicationconnector/v1alpha1
+groupName=applicationconnector.kyma-project.io
+groupName=applicationconnector.kyma-project.io
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/applicationconnector/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/applicationconnector/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
controller/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL