Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Yingrong Zhao <[email protected]>
  • Loading branch information
VinozzZ committed Sep 30, 2022
1 parent 85d9d50 commit 28795f0
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 109 deletions.
16 changes: 0 additions & 16 deletions agent-config.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion api/v1/testdata/credential-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ spec:
credentials:
- name: kubeconfig
source:
secret: ~/.kube/config
secret: test-secret
14 changes: 0 additions & 14 deletions cred.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions kind-config.ymal

This file was deleted.

14 changes: 0 additions & 14 deletions llama.yaml

This file was deleted.

15 changes: 15 additions & 0 deletions mage.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//go:build ignore
// +build ignore

package main

import (
"os"

"github.com/magefile/mage/mage"
)

// This file allows someone to run mage commands without mage installed
// by running `go run mage.go TARGET`.
// See https://magefile.org/zeroinstall/
func main() { os.Exit(mage.Main()) }
19 changes: 0 additions & 19 deletions magefiles/kind.config

This file was deleted.

21 changes: 11 additions & 10 deletions magefile.go → magefiles/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
testNamespace = "test"

// Relative location of the KUBECONFIG for the test cluster
kubeconfig = "kind.config.yaml"
kubeconfig = "kind.config"

// Namespace of the porter operator
operatorNamespace = "porter-operator-system"
Expand All @@ -57,15 +57,18 @@ const (
porterVersion = "v1.0.0-rc.1"
)

var srcDirs = []string{"api", "config", "controllers", "installer", "installer-olm"}
var binDir = "bin"
var (
srcDirs = []string{"api", "config", "controllers", "installer", "installer-olm"}
binDir = "bin"
)

// Porter agent that has k8s plugin included
var porterAgentImgRepository = "ghcr.io/getporter/dev/porter-agent-kubernetes"
var porterAgentImgVersion = "v1.0.0-rc.1"
var (
porterAgentImgRepository = "ghcr.io/getporter/porter-agent"
porterAgentImgVersion = "v1.0.0-rc.3"
)

// Local porter agent image name to use for local testing
var localAgentImgName = "localhost:5000/porter-agent:test"
var localAgentImgName = "localhost:5000/porter-agent:canary-dev"

// Build a command that stops the build on if the command fails
var must = shx.CommandBuilder{StopOnError: true}
Expand Down Expand Up @@ -363,9 +366,7 @@ func Deploy() {
buildPorterCmd("credentials", "apply", "hack/creds.yaml", "-n=operator").Must().RunV()
}
bundleRef := Env.BundlePrefix + meta.Version
//buildPorterCmd("install", "operator", "-r", bundleRef, "-c=kind", "--force", "-n=operator").Must().RunV()

buildPorterCmd("install", "operator", "-r", bundleRef, "--param", "porterRepository=localhost:5000/porter-agent", "--param", "porterVersion=canary-v1", "-c=kind", "--force", "-n=operator").Must().RunV()
buildPorterCmd("install", "operator", "-r", bundleRef, "-c=kind", "--force", "-n=operator").Must().RunV()
}

func isDeployed() bool {
Expand Down
2 changes: 0 additions & 2 deletions notes.md

This file was deleted.

20 changes: 0 additions & 20 deletions porter-config.yaml

This file was deleted.

Empty file removed test
Empty file.
2 changes: 0 additions & 2 deletions test-output

This file was deleted.

1 change: 0 additions & 1 deletion test2

This file was deleted.

2 changes: 1 addition & 1 deletion tests/integration/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func createTestNamespace(ctx context.Context) string {
PorterVersion: agentVersion,
ServiceAccount: svc.Name,
InstallationServiceAccount: "installation-agent",
Plugins: porterv1.PluginList{porterv1.Plugin{Name: "kubernetes", FeedURL: "https://cdn.porter.sh/plugins/atom.xml", Version: "v1.0.0-beta.1"}},
Plugins: porterv1.PluginList{porterv1.Plugin{Name: "kubernetes", FeedURL: "https://cdn.porter.sh/plugins/atom.xml", Version: "v1.0.0-rc.1"}},
},
}
Expect(k8sClient.Create(ctx, agentCfg)).To(Succeed())
Expand Down
3 changes: 0 additions & 3 deletions tests/integration/testdata/Dockerfile.k8s-plugin-agent

This file was deleted.

0 comments on commit 28795f0

Please sign in to comment.