generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Grzegorz Karaluch <[email protected]>
- Loading branch information
Showing
7 changed files
with
87 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Function Operator | ||
|
||
The Function Operator is a Kubernetes controller that install Serverless. | ||
|
||
## Prerequisites | ||
|
||
The Function Operator requires the following components to be installed: | ||
|
||
- [Go](https://go.dev/) | ||
|
||
## Development | ||
|
||
### Installing Locally Built Serverless Operator Image on k3d With Serverless | ||
Prerequisite: | ||
- installed Operator on a cluster | ||
|
||
To install `serverless-manager` from local sources on the k3d cluster run: | ||
|
||
```bash | ||
make install-operator-k3d | ||
``` | ||
|
||
This target: | ||
|
||
- builds local image with `serverless-operator` | ||
- tags local the `serverless-operator` image with its hash to be sure the deployment is updated | ||
- uploads local image to k3d | ||
- updates the image in the `serverless-operator` deployment | ||
|
||
### Running/Debugging `serverless-operator` Locally | ||
|
||
To develop the component as a normal binary, set up environment variables. | ||
|
||
### Environment Variables | ||
|
||
#### The Function Operator Uses These Environment Variables: | ||
|
||
| Variable | Description | Default value | | ||
|----------------------------|---------------------------------------------------------------------------------------------------------------------|-----------------| | ||
| **CHART_PATH** | Location of the Serverless chart | `/module-chart` | | ||
| **SERVERLESS_MANAGER_UID** | Unique ID of operator instance. Used to mark created resources to distinguish which version of the Operator created it. | `` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters