Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
feat: update controller versions (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skarlso authored Sep 11, 2023
1 parent 515f24b commit 3644d70
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
40 changes: 21 additions & 19 deletions e2e-cli/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,15 @@ func retrieveBootStrapConfigVars() (string, string, error) {
func bootstrapGithub(owner, token string) (*bootstrap.GithubCmd, error) {
ctx := context.Background()
bootstrapGithubCmd := bootstrap.GithubCmd{
Owner: owner,
Repository: repository,
Token: token,
Path: targetPath,
Registry: registry,
Components: env.Components,
DockerconfigPath: cfg.DockerconfigPath,
DestructiveActions: true,
Owner: owner,
Repository: repository,
Token: token,
Path: targetPath,
Registry: registry,
Components: env.Components,
DockerconfigPath: cfg.DockerconfigPath,
DestructiveActions: true,
GenerateSelfSignedCertificate: true,
}

// set kubeconfig
Expand Down Expand Up @@ -107,17 +108,18 @@ func bootstrapGithub(owner, token string) (*bootstrap.GithubCmd, error) {
func bootstrapGitea(owner, token, hostname string) (*bootstrap.GiteaCmd, error) {
ctx := context.Background()
bootstrapGiteaCmd := bootstrap.GiteaCmd{
Owner: owner,
Repository: repository,
Token: token,
Hostname: hostname,
Personal: true,
Path: targetPath,
Registry: registry,
TestURL: fmt.Sprintf("http://%s/%s/%s", defautHostname, owner, repository),
Components: env.Components,
DockerconfigPath: cfg.DockerconfigPath,
DestructiveActions: true,
Owner: owner,
Repository: repository,
Token: token,
Hostname: hostname,
Personal: true,
Path: targetPath,
Registry: registry,
TestURL: fmt.Sprintf("http://%s/%s/%s", defautHostname, owner, repository),
Components: env.Components,
DockerconfigPath: cfg.DockerconfigPath,
DestructiveActions: true,
GenerateSelfSignedCertificate: true,
}

// set kubeconfig
Expand Down
2 changes: 2 additions & 0 deletions e2e-cli/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ func TestMain(m *testing.M) {

testEnv.Setup(
envfuncs.CreateKindCluster(kindClusterName),
envfuncs.CreateNamespace("ocm-system"),
envfuncs.CreateNamespace("mpas-system"),
envfuncs.CreateNamespace(namespace),
shared.StartGitServer(namespace),
shared.ForwardPortForAppName("gitea", 3000, stopChannelGitea),
Expand Down
10 changes: 5 additions & 5 deletions internal/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ const (
// DefaultFluxVer is the default version of the flux component.
DefaultFluxVer = "v2.1.0"
// DefaultOcmControllerVer is the default version of the ocm-controller component.
DefaultOcmControllerVer = "v0.12.0"
DefaultOcmControllerVer = "v0.12.2"
// DefaultGitControllerVer is the default version of the git-controller component.
DefaultGitControllerVer = "v0.7.0"
DefaultGitControllerVer = "v0.7.1"
// DefaultReplicationVer is the default version of the replication-controller component.
DefaultReplicationVer = "v0.6.1"
DefaultReplicationVer = "v0.6.2"
// DefaultMpasProductControllerVer is the default version of the mpas-product-controller component.
DefaultMpasProductControllerVer = "v0.3.2"
DefaultMpasProductControllerVer = "v0.3.3"
// DefaultMpasProjectControllerVer is the default version of the mpas-project-controller component.
DefaultMpasProjectControllerVer = "v0.1.1"
DefaultMpasProjectControllerVer = "v0.1.2"
// DefaultOcmCliVer is the default version of the ocm-cli component.
DefaultOcmCliVer = "v0.3.0"
)
Expand Down

0 comments on commit 3644d70

Please sign in to comment.