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

[release-1.11.0] Update node version, and change base image of markdownlint (#182) #262

Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -27,9 +27,9 @@ jobs:
run: cd hack/tools && make golangci-lint

- name: Install npm
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20'

- name: Install markdown-lint tool
run: npm install -g markdownlint-cli
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -21,9 +21,9 @@ jobs:
run: cd hack/tools && make golangci-lint

- name: Install npm
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20'

- name: Install markdown-lint tool
run: npm install -g markdownlint-cli
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -180,7 +180,7 @@ lint-markdown: ## Lint the project's markdown
ifdef GITHUB_ACTIONS
markdownlint -c md-config.json .
else
docker run -i --rm -v "$$(pwd)":/work $(CACHE_IMAGE_REGISTRY)/tmknom/markdownlint -c /work/md-config.json .
docker run -i --rm -v "$$(pwd)":/work ghcr.io/tmknom/dockerfiles/markdownlint -c /work/md-config.json .
endif

.PHONY: lint-shell
15 changes: 9 additions & 6 deletions controllers/machine/machine_controller_intg_test.go
Original file line number Diff line number Diff line change
@@ -93,13 +93,16 @@ func intgTestMachineController() {
})
It("Corresponding Endpoints should be created", func() {
ep := &corev1.Endpoints{}
Eventually(func() bool {
Eventually(func() int {
err := ctx.Client.Get(ctx.Context, client.ObjectKey{Name: cluster.Namespace + "-" + cluster.Name + "-control-plane", Namespace: cluster.Namespace}, ep)
return err == nil
}).Should(BeTrue())
Expect(ep.Subsets).ShouldNot(BeNil())
Expect(ep.Subsets[0].Addresses).ShouldNot(BeNil())
Expect(len(ep.Subsets[0].Addresses)).Should(Equal(1))
if err != nil {
return 0
}
if len(ep.Subsets) == 0 {
return 0
}
return len(ep.Subsets[0].Addresses)
}).Should(Equal(1))
Expect(ep.Subsets[0].Addresses[0].IP).Should(Equal("1.1.1.1"))
})
It("Should add one more machine", func() {