Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten #692

Merged
merged 12 commits into from
Apr 30, 2020
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,20 @@ version directory, and then changes are introduced.

## [Unreleased]

### Changed

- Flatten directory structure. Only the most recent version lives in this repo now.
Go module version becomes synonymous with cloudconfig version.

### Removed

- All cloudconfig versions prior to v6.0.0.


## [v6.0.2]

### Changed

- Remove init limits from calico-node
- Limit PV per node on AWS
- Hardcode registry domain AWS
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions v_6_0_0/cloudconfig.go → pkg/template/cloudconfig.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_6_0_0
package template

import (
"bytes"
Expand All @@ -9,7 +9,7 @@ import (

"github.com/giantswarm/microerror"

ignition "github.com/giantswarm/k8scloudconfig/v6/ignition/v_2_2_0"
"github.com/giantswarm/k8scloudconfig/v6/pkg/ignition"
)

const (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package v_4_0_0
package template
tfussell marked this conversation as resolved.
Show resolved Hide resolved

import (
"encoding/base64"
"path"
"testing"

ignition "github.com/giantswarm/k8scloudconfig/v6/ignition/v_2_2_0"
"github.com/giantswarm/k8scloudconfig/v6/pkg/ignition"
)

func TestCloudConfig(t *testing.T) {
Expand Down Expand Up @@ -50,7 +50,7 @@ func TestCloudConfig(t *testing.T) {
if err != nil {
t.Errorf("failed to retrieve package path, %v:", err)
}
filesPath := path.Join(packagePath, version, filesDir)
filesPath := path.Join(packagePath, filesDir)
files, err := RenderFiles(filesPath, tc.params)
if err != nil {
t.Errorf("failed to render ignition files, %v:", err)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_3_6_0
package template

type nopWriter struct{}

Expand Down
2 changes: 1 addition & 1 deletion v_4_9_1/error.go → pkg/template/error.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_4_9_1
package template

import "github.com/giantswarm/microerror"

Expand Down
7 changes: 3 additions & 4 deletions v_4_1_1/filemanager.go → pkg/template/filemanager.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_4_1_1
package template

import (
"bytes"
Expand All @@ -12,7 +12,6 @@ import (
)

const (
version = "v_4_1_1"
filesDir = "files"
)

Expand Down Expand Up @@ -59,7 +58,7 @@ func RenderFiles(filesdir string, ctx interface{}) (Files, error) {
// GetIgnitionPath returns path for the ignition assets based on
// base ignition directory and package subdirectory with assets.
func GetIgnitionPath(ignitionDir string) string {
return filepath.Join(ignitionDir, version, filesDir)
return filepath.Join(ignitionDir, filesDir)
}

// GetPackagePath returns top package path for the current runtime file.
Expand All @@ -72,5 +71,5 @@ func GetPackagePath() (string, error) {
return "", microerror.Mask(retrieveRuntimeError)
}

return filepath.Dir(filepath.Dir(filename)), nil
return filepath.Dir(filepath.Dir(filepath.Dir(filename))), nil
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_4_0_1
package template

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_6_0_0
package template

const MasterTemplate = `---
ignition:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_4_0_0
package template

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion v_6_0_0/release.go → pkg/template/release.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_6_0_0
package template

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_4_0_0
package template

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_4_0_0
package template

import (
"strings"
Expand Down
2 changes: 1 addition & 1 deletion v_6_0_0/types.go → pkg/template/types.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_6_0_0
package template

import (
"github.com/giantswarm/apiextensions/pkg/apis/provider/v1alpha1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_6_0_0
package template

const WorkerTemplate = `---
ignition:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v_4_10_0
package template

import (
"testing"
Expand Down
102 changes: 0 additions & 102 deletions v_3_5_2/cloudconfig.go

This file was deleted.

132 changes: 0 additions & 132 deletions v_3_5_2/cloudconfig_test.go

This file was deleted.

Loading