Skip to content

Commit

Permalink
Update: Precommit update
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Dec 20, 2022
1 parent 2f1dd9d commit 879ed7d
Show file tree
Hide file tree
Showing 169 changed files with 388 additions and 63 deletions.
2 changes: 2 additions & 0 deletions .github/actions/tools/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: 'portefaix'
description: 'A GitHub Action with tools from the Kubernetes echosystem'
Expand Down
2 changes: 2 additions & 0 deletions .github/issue_label_bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

label-alias:
bug: 'kind/bug'
Expand Down
2 changes: 2 additions & 0 deletions .github/label-commenter-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

comment:
header: Hi, there.
Expand Down
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

# Labels for action/labeler

Expand Down
2 changes: 2 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

# labels to be used with /area command
area:
Expand Down
2 changes: 2 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
Expand Down
2 changes: 2 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/draft-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Project / Draft PR Labels

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/issues-pr-labels-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Project / Issues and PR labels comments

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/issues-pr-labels-required.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Project / Issues and PR labels required

Expand Down Expand Up @@ -64,4 +66,4 @@ jobs:
secret: ${{ github.TOKEN }}
prefix: status
addLabel: true
defaultLabel: needs/status
defaultLabel: needs/status
2 changes: 2 additions & 0 deletions .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

# Labels pull requests based on their branch name
name: Project / PR Branch Labeler
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/prow-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

# name: "Label PRs from globs"
# on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/prow-lgtm-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Prow / Merge on lgtm label
on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/prow-lgtm-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Prow / Run Jobs on PR
on: pull_request
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/prow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Prow / Github Actions
on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Projet / Rebase
on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Project / Release Drafter

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Renovate / Helm releases

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/size.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

name: Project / Size PR

Expand Down
22 changes: 6 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -26,28 +28,16 @@ repos:
exclude: mkdocs.yml
- id: check-added-large-files
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
rev: v1.3.1
hooks:
- id: insert-license
files: \.yaml
args:
- --license-filepath
- hack/config/licence.txt
# - --remove-header
- id: insert-license
files: \.yml
args:
- --license-filepath
- hack/config/licence.txt
# - --remove-header
- id: insert-license
files: \.tf
files: (Makefile|\.yaml|\.yml)
args:
- --license-filepath
- hack/config/licence.txt
# - --remove-header
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
rev: 3.0.0
hooks:
- id: shellcheck
exclude: hack/hooks/pre-commit.git-crypt.sh
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

include hack/commons.mk
-include hack/kind.$(ENV).mk
Expand Down
2 changes: 2 additions & 0 deletions hack/config/licence.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

SPDX-License-Identifier: Apache-2.0
2 changes: 2 additions & 0 deletions hack/kind-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: kind.x-k8s.io/v1alpha4
Expand Down
4 changes: 3 additions & 1 deletion krm/ack/ec2-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

---
metrics:
Expand All @@ -33,7 +35,7 @@ aws:
# Secret stringData key that contains the credentials
secretKey: "credentials"
# Profile used for AWS credentials
# profile: "default"
# profile: "default"

resourceTags:
# Configures the ACK service controller to always set key/value pairs tags on
Expand Down
4 changes: 3 additions & 1 deletion krm/ack/ecr-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

---
metrics:
Expand All @@ -33,7 +35,7 @@ aws:
# Secret stringData key that contains the credentials
secretKey: "credentials"
# Profile used for AWS credentials
# profile: "default"
# profile: "default"

resourceTags:
# Configures the ACK service controller to always set key/value pairs tags on
Expand Down
2 changes: 2 additions & 0 deletions krm/ack/eks-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

---
metrics:
Expand Down
4 changes: 3 additions & 1 deletion krm/ack/iam-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

---
metrics:
Expand All @@ -33,7 +35,7 @@ aws:
# Secret stringData key that contains the credentials
secretKey: "credentials"
# Profile used for AWS credentials
# profile: "default"
# profile: "default"

resourceTags:
# Configures the ACK service controller to always set key/value pairs tags on
Expand Down
2 changes: 2 additions & 0 deletions krm/ack/infra/ecr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: ecr.services.k8s.aws/v1alpha1
Expand Down
2 changes: 2 additions & 0 deletions krm/ack/infra/eip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: ec2.services.k8s.aws/v1alpha1
Expand Down
16 changes: 9 additions & 7 deletions krm/ack/infra/eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: eks.services.k8s.aws/v1alpha1
Expand Down Expand Up @@ -54,9 +56,9 @@ spec:
minSize: 1
maxSize: 3
desiredSize: 1
updateConfig:
updateConfig:
maxUnavailable: 1
maxUnavailablePercentage: 50
maxUnavailablePercentage: 50
---
apiVersion: eks.services.k8s.aws/v1alpha1
kind: Nodegroup
Expand All @@ -80,9 +82,9 @@ spec:
minSize: 1
maxSize: 3
desiredSize: 1
updateConfig:
maxUnavailable: 1
maxUnavailablePercentage: 50
updateConfig:
maxUnavailable: 1
maxUnavailablePercentage: 50
---
apiVersion: eks.services.k8s.aws/v1alpha1
kind: FargateProfile
Expand All @@ -91,7 +93,7 @@ metadata:
spec:
name: portefaix-krm-ack
clusterName: portefaix-krm-ack-eks-cluster
# podExecutionRoleARN: $FARGATE_POD_ROLE
# podExecutionRoleARN: $FARGATE_POD_ROLE
subnetRefs:
- name: portefaix-krm-ack-private
selectors:
Expand All @@ -106,4 +108,4 @@ spec:
# name: $ADDON_NAME
# addonVersion: $ADDON_VERSION
# #https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeAddonVersions.html
# clusterName: $CLUSTER_NAME
# clusterName: $CLUSTER_NAME
4 changes: 3 additions & 1 deletion krm/ack/infra/gateways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: ec2.services.k8s.aws/v1alpha1
Expand Down Expand Up @@ -51,4 +53,4 @@ spec:
name: portefaix-krm-ack
vpcRef:
from:
name: portefaix-krm-ack
name: portefaix-krm-ack
Loading

0 comments on commit 879ed7d

Please sign in to comment.