Skip to content
Closed
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
15 changes: 6 additions & 9 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
name: Bug Report
about: Report a bug encountered while operating Microshift
about: Report a bug encountered while operating MicroShift
labels: bug
title: '[BUG] <title>'

title: "[BUG] <title>"
modified: "2021-10-27T12:41:31.324+02:00"
---

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
-->


#### What happened:

#### What you expected to happen:
Expand All @@ -21,14 +20,12 @@ title: '[BUG] <title>'

#### Anything else we need to know?:


#### Environment:
- Microshift version (use `microshift version`):

- MicroShift version (use `microshift version`):
- Hardware configuration:
- OS (e.g: `cat /etc/os-release`):
- Kernel (e.g. `uname -a`):
- Others:

#### Relevant Logs


#### Relevant Logs
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/enhancement-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
name: Enhancement Tracking Issue
about: Provide supporting details for a feature in development
labels: feature
title: '[Enhancement]: <title>'

title: "[Enhancement]: <title>"
---

<!-- Feature requests are unlikely to make progress as an issue.

A proposal that works through the design along with the implications of the change should be submitted as a design document in https://github.com/redhat-et/microshift/tree/main/docs/design/

-->

#### Design Document Link

PR: #<PR Number>

#### What would you like to be added:

#### Why is this needed:


3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
If this is your first contribution, read our Contributing guide https://github.com/redhat-et/microshift/CONTRIBUTING.md
If the PR is not yet ready for review, prefix [WIP] in the title. Once prepared, remote the prefix.
-->

**Which issue(s) this PR addresses**:

<!--
*Automatically closes linked issue when PR is merged.
Usage: `Closes #<issue number>`, or `Closes (paste link of issue)`.
-->

Closes #<Issue Number>
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v2

- name: Install required packages
run: sudo apt install build-essential qemu-user qemu-user-static
run: sudo apt install build-essential qemu-user qemu-user-static

- name: launch build
run: make build-containerized-cross-build
Expand All @@ -37,4 +37,4 @@ jobs:
files: |
microshift-linux-amd64
microshift-linux-arm64
release.sha256
release.sha256
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
password: ${{ secrets.REGISTRY_PASS }}

- name: Install required packages
run: sudo apt install build-essential qemu-user qemu-user-static
run: sudo apt install build-essential qemu-user qemu-user-static

- name: Checkout source
uses: actions/checkout@v2

- name: execute release.sh
shell: bash
run: make release TOKEN=${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: sudo apt install build-essential

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v2

- name: make
run: make build
Expand All @@ -33,7 +33,7 @@ jobs:
with:
name: microshift
path: ./microshift

deploy-microshift:
name: Deploy-Microshift
needs: Build-Microshift
Expand All @@ -43,15 +43,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: download archive
uses: actions/download-artifact@v2.0.10
with:
name: microshift
path: /tmp/

- name: sleep then run kubectl
run: chmod +x /tmp/microshift
run: chmod +x /tmp/microshift

- name: install script
run: CONFIG_ENV_ONLY=true ./install.sh
Expand All @@ -64,4 +64,4 @@ jobs:
sudo -i sh -c 'until [ -f /var/lib/microshift/resources/kubeadmin/kubeconfig ]; do sudo sleep 5; done'
sudo cp /var/lib/microshift/resources/kubeadmin/kubeconfig /tmp/kubeconfig
sudo chown `whoami`: /tmp/kubeconfig
make test-e2e
make test-e2e
93 changes: 93 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
fail_fast: true
exclude: ^vendor/|^features/|^scripts/rebase_patches/
repos:
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.4.1
hooks:
- id: prettier
files: \.(css|js|md|markdown|json)
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.9.3
hooks:
- id: isort
- repo: https://github.com/python/black
rev: 21.6b0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: ["--maxkb=10000"]
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
# - id: check-vcs-permalinks
- id: debug-statements # Check for debugger imports and py37+ `breakpoint()` calls in python source.
- id: check-xml
- id: check-yaml
args:
- --unsafe
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: no-commit-to-branch
args:
- --branch
- gh-pages
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: trailing-whitespace
- id: mixed-line-ending
- id: detect-private-key
- id: check-byte-order-marker
- id: check-docstring-first
# - id: detect-aws-credentials
# - id: fix-encoding-pragma
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: local
hooks:
- id: shfmt
name: shfmt
minimum_pre_commit_version: 2.4.0
language: golang
additional_dependencies:
- mvdan.cc/sh/v3/cmd/shfmt@v3.1.1
entry: shfmt
args:
- -w
- -i
- "4"
types:
- shell
- repo: https://github.com/asottile/blacken-docs
rev: v1.11.0
hooks:
- id: blacken-docs
- repo: https://github.com/hcodes/yaspeller.git
rev: v7.2.0
hooks:
- id: yaspeller
types:
- markdown
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.910
# hooks:
# - id: mypy
62 changes: 62 additions & 0 deletions .yaspeller.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"ignoreUrls": true,
"findRepeatWords": true,
"maxRequests": 5,
"ignoreDigits": true,
"lang": "en",
"dictionary": [
"KUBECONFIG",
"MicroShift",
"NetworkManager",
"OpenShift",
"podman",
"RHEL",
"systemd",
"toc",
"workaround",
"Andrés",
"VM",
"Virtualization",
"hostname",
"VSCode",
"dropdown",
"OKD",
"IoT",
"LTE",
"Kubernetes",
"MicroShift's",
"lifecycle",
"SELinux",
"MacOS",
"GPU",
"CentOS",
"CRI-O",
"Non-OKD",
"non-OKD",
"endraw",
"endcomment",
"AIO",
"µShift",
"barebone",
"seamlessly",
"resp",
"firewalled",
"LBN",
"GW",
"OKD's",
"CVE",
"SemVer",
"STIG",
"CI",
"DISA",
"FedRAMP",
"versioning",
"CSI",
"NAT",
"rebasing",
"deployable",
"personas",
"dongle",
"NAT'ed"
]
}
Loading