Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ jobs:
- name: Push charts to GHCR
run: |
VERSION=$(helm show chart deploy/helm | grep '^version:' | awk '{print $2}')
# TODO: Uncomment before next release (this is temporary fix)
# if helm show chart oci://ghcr.io/nutanix-cloud-native/chart/ndb-operator --version "$VERSION" 2>/dev/null | grep -q "^version:"; then
# echo "Chart $VERSION already exists on GHCR, skipping push."
# exit 0
# fi
if helm show chart oci://ghcr.io/nutanix-cloud-native/chart/ndb-operator --version "$VERSION" 2>/dev/null | grep -q "^version:"; then
echo "Chart $VERSION already exists on GHCR, skipping push."
exit 0
fi
helm push .cr-release-packages/ndb-operator-${VERSION}.tgz oci://ghcr.io/nutanix-cloud-native/chart
8 changes: 0 additions & 8 deletions automation/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ const (
// cluster-scoped NDBServer without needing access to the secret.
NDB_CREDENTIALS_NAMESPACE = "ndb-credentials"

// Resource paths
NDBSERVER_PATH = "./config/ndb.yaml"
DATABASE_PATH = "./config/database.yaml"
DB_SECRET_PATH = "./config/db-secret.yaml"
NDB_SECRET_PATH = "./config/ndb-secret.yaml"
APP_POD_PATH = "./config/pod.yaml"
APP_SVC_PATH = "./config/service.yaml"

// Environment Variables
KUBECONFIG_ENV = "KUBECONFIG"
DB_SECRET_PASSWORD_ENV = "DB_SECRET_PASSWORD"
Expand Down
21 changes: 0 additions & 21 deletions automation/tests/cloning/mongo-si_test/config/database.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions automation/tests/cloning/mongo-si_test/config/db-secret.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions automation/tests/cloning/mongo-si_test/config/ndb-secret.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions automation/tests/cloning/mongo-si_test/config/ndb.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions automation/tests/cloning/mongo-si_test/config/pod.yaml

This file was deleted.

16 changes: 4 additions & 12 deletions automation/tests/cloning/mongo-si_test/mongo_si_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ func (suite *MongoCloningSingleInstanceTestSuite) SetupSuite() {
suite.T().FailNow()
}

// Setup yaml types
setupTypes, err := util.SetupTypeTemplates(ctx)
if err != nil {
logger.Printf("%s! %s\n", errBaseMsg, err)
suite.T().FailNow()
}
// Build setup types
setupTypes := util.NewMongoCloningSetupTypes()

// Get test suite manager
tsm = util.GetTestSuiteManager(ctx, *setupTypes)
Expand Down Expand Up @@ -102,12 +98,8 @@ func (suite *MongoCloningSingleInstanceTestSuite) TearDownSuite() {
logger.Println("TearDownSuite() starting...")
errBaseMsg := "Error: SetupSuite() ended"

// Setup yaml types
setupTypes, err := util.SetupTypeTemplates(suite.ctx)
if err != nil {
logger.Printf("%s! %s\n", errBaseMsg, err)
suite.T().FailNow()
}
// Build setup types
setupTypes := util.NewMongoCloningSetupTypes()

// Delete resources and de-clone database
if err = suite.tsm.TearDown(suite.ctx, setupTypes, suite.clientset, suite.v1alpha1ClientSet, suite.T()); err != nil {
Expand Down
25 changes: 0 additions & 25 deletions automation/tests/cloning/mssql-si_test/config/database.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions automation/tests/cloning/mssql-si_test/config/db-secret.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions automation/tests/cloning/mssql-si_test/config/ndb-secret.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions automation/tests/cloning/mssql-si_test/config/ndb.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions automation/tests/cloning/mssql-si_test/config/pod.yaml

This file was deleted.

16 changes: 4 additions & 12 deletions automation/tests/cloning/mssql-si_test/mssql_si_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ func (suite *MSSQLCloningSingleInstanceTestSuite) SetupSuite() {
suite.T().FailNow()
}

// Setup yaml types
setupTypes, err := util.SetupTypeTemplates(ctx)
if err != nil {
logger.Printf("%s! %s\n", errBaseMsg, err)
suite.T().FailNow()
}
// Build setup types
setupTypes := util.NewMSSQLCloningSetupTypes()

// Get test suite manager
tsm = util.GetTestSuiteManager(ctx, *setupTypes)
Expand Down Expand Up @@ -102,12 +98,8 @@ func (suite *MSSQLCloningSingleInstanceTestSuite) TearDownSuite() {
logger.Println("TearDownSuite() starting...")
errBaseMsg := "Error: SetupSuite() ended"

// Setup yaml types
setupTypes, err := util.SetupTypeTemplates(suite.ctx)
if err != nil {
logger.Printf("%s! %s\n", errBaseMsg, err)
suite.T().FailNow()
}
// Build setup types
setupTypes := util.NewMSSQLCloningSetupTypes()

// Delete resources and de-clone database
if err = suite.tsm.TearDown(suite.ctx, setupTypes, suite.clientset, suite.v1alpha1ClientSet, suite.T()); err != nil {
Expand Down
22 changes: 0 additions & 22 deletions automation/tests/cloning/mysql-si_test/config/database.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions automation/tests/cloning/mysql-si_test/config/db-secret.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions automation/tests/cloning/mysql-si_test/config/ndb-secret.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions automation/tests/cloning/mysql-si_test/config/ndb.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions automation/tests/cloning/mysql-si_test/config/pod.yaml

This file was deleted.

16 changes: 4 additions & 12 deletions automation/tests/cloning/mysql-si_test/mysql_si_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ func (suite *MySQLCloningSingleInstanceTestSuite) SetupSuite() {
suite.T().FailNow()
}

// Setup yaml types
setupTypes, err := util.SetupTypeTemplates(ctx)
if err != nil {
logger.Printf("%s! %s\n", errBaseMsg, err)
suite.T().FailNow()
}
// Build setup types
setupTypes := util.NewMySQLCloningSetupTypes()

// Get test suite manager
tsm = util.GetTestSuiteManager(ctx, *setupTypes)
Expand Down Expand Up @@ -102,12 +98,8 @@ func (suite *MySQLCloningSingleInstanceTestSuite) TearDownSuite() {
logger.Println("TearDownSuite() starting...")
errBaseMsg := "Error: SetupSuite() ended"

// Setup yaml types
setupTypes, err := util.SetupTypeTemplates(suite.ctx)
if err != nil {
logger.Printf("%s! %s\n", errBaseMsg, err)
suite.T().FailNow()
}
// Build setup types
setupTypes := util.NewMySQLCloningSetupTypes()

// Delete resources and de-clone database
if err = suite.tsm.TearDown(suite.ctx, setupTypes, suite.clientset, suite.v1alpha1ClientSet, suite.T()); err != nil {
Expand Down
Loading
Loading