forked from kyma-project/lifecycle-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Bump modulectl version in E2E tests (kyma-project#2017)
* Bump modulectl version * add new required fields for the moduleconfig * remove the ModuleTemplate name overwrite in E2E tests * rename module-config-file to config-file * Add Https server * Debugging ModuleTemplate creation * Remove pattern and min length validation from ModuleTemplate spec.channel to allow nullable channels * fix test * Add channel to old ModuleTemplates * Write channel for old ModuleTemplates and remove it from ModuleConfig * fix status decoupling with statefulset e2e test * remove unneeded make build-manifests * re add new validation pattern * re add test * try sudo -S * try sudo -s * try export SSL_CERT_FILE * try export SSL_CERT_FILE * try mitmproxy * try mitmproxy * try custom cert directory * try custom ca cert * try custom ca cert * fix comments * use default cr with localhost * use golang server * fix script * fix linting
- Loading branch information
Showing
8 changed files
with
201 additions
and
64 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
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,14 @@ | ||
name: Setup HTTPS server | ||
description: Setup an HTTPS server to serve the template operator manifest file. | ||
inputs: | ||
directory_name: | ||
description: The name of the directory which contains the manifest file to serve. | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Serve HTTPs server | ||
working-directory: ./lifecycle-manager | ||
shell: bash | ||
run: | | ||
./scripts/tests/setup_https_server.sh ${{ inputs.directory_name }} |
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,38 @@ | ||
package main | ||
|
||
import ( | ||
"crypto/tls" | ||
"flag" | ||
"log" | ||
"net/http" | ||
"time" | ||
) | ||
|
||
const headerTimeout = 10 * time.Second | ||
|
||
func main() { | ||
directory := flag.String("dir", ".", "Directory to serve files from") | ||
certFile := flag.String("certfile", "cert.crt", "SSL certificate file") | ||
keyFile := flag.String("keyfile", "key.crt", "SSL key file") | ||
port := flag.String("port", "8080", "Port to run the server on") | ||
flag.Parse() | ||
|
||
mux := http.NewServeMux() | ||
fs := http.FileServer(http.Dir(*directory)) | ||
mux.Handle("/", fs) | ||
|
||
addr := ":" + *port | ||
httpsServer := &http.Server{ | ||
Addr: addr, | ||
Handler: mux, | ||
TLSConfig: &tls.Config{ | ||
MinVersion: tls.VersionTLS12, | ||
}, | ||
ReadHeaderTimeout: headerTimeout, | ||
} | ||
|
||
err := httpsServer.ListenAndServeTLS(*certFile, *keyFile) | ||
if err != nil { | ||
log.Fatal("failed to setup http server:", err) | ||
} | ||
} |
Oops, something went wrong.