Skip to content

Commit 877a4b8

Browse files
author
Alexander Rogalskiy
committed
Updates on files
Added changeset on workflow
1 parent ff4547f commit 877a4b8

File tree

8 files changed

+221
-9
lines changed

8 files changed

+221
-9
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ updates:
3939
# for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1`
4040
separator: "-"
4141

42+
- package-ecosystem: gitsubmodule
43+
directory: "/"
44+
schedule:
45+
interval: daily
46+
time: '00:00'
47+
timezone: UTC
48+
open-pull-requests-limit: 10
49+
commit-message:
50+
prefix: "chore"
51+
include: "scope"
52+
4253
- package-ecosystem: "pip"
4354
open-pull-requests-limit: 10
4455
directory: "/"
@@ -54,4 +65,4 @@ updates:
5465
- dependency-type: "all"
5566
# Labels on pull requests for version updates only
5667
labels:
57-
- "pip dependencies"
68+
- "pip dependencies"

.github/workflows/cla.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "CLA Assistant"
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_target:
7+
types: [opened,closed,synchronize]
8+
9+
jobs:
10+
CLAssistant:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "CLA Assistant"
14+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
15+
uses: cla-assistant/github-action@v2.1.3-beta
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
19+
with:
20+
path-to-signatures: 'cla/signatures.json'
21+
path-to-document: 'https://github.com/AlexRogalskiy/java-patterns/blob/master/cla/README.md'
22+
# branch should not be protected
23+
branch: 'master'
24+
allowlist: imgbot,dependabot*

Makefile

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
############################################################################
2+
# Variables
3+
############################################################################
4+
15
# Since we rely on paths relative to the makefile location, abort if make isn't being run from there.
26
$(if $(findstring /,$(MAKEFILE_LIST)),$(error Please only invoke this makefile from the directory it resides in))
37

@@ -44,11 +48,53 @@ DIRS := $(shell ls -ad -- */)
4448
# Run all by default when "make" is invoked.
4549
.DEFAULT_GOAL := list
4650

51+
############################################################################
52+
# Common
53+
############################################################################
54+
4755
# Default target (by virtue of being the first non '.'-prefixed in the file).
4856
.PHONY: _no-target-specified
4957
_no-target-specified:
5058
$(error Please specify the target to make - `make list` shows targets)
5159

60+
# Create virtual environment.
61+
.PHONY: _venv
62+
_venv:
63+
virtualenv $(VENV_NAME)
64+
. $(VENV_NAME)/bin/activate
65+
@echo
66+
@echo "Virtual env created. The source pages are in $(VENV_NAME) directory."
67+
68+
# Create help information.
69+
.PHONY: help
70+
help:
71+
@echo
72+
@echo "Please use \`make <target>' where <target> is one of"
73+
@echo " all to run linting & format tasks"
74+
@echo " clean to remove temporary directories"
75+
@echo " deps to install dependencies"
76+
@echo " dirs to list directories"
77+
@echo " docker-build to build docker image"
78+
@echo " docker-start to start docker image"
79+
@echo " docker-stop to stop docker image"
80+
@echo " gh-pages to create new version of documentation and publish on GitHub pages"
81+
@echo " helm-dev to lint and create helm package"
82+
@echo " helm-lint to lint helm charts"
83+
@echo " helm-package to package helm charts"
84+
@echo " helm-start to run k8s cluster"
85+
@echo " helm-stop to stop k8s cluster"
86+
@echo " help to list all make targets with description"
87+
@echo " list to list all make targets"
88+
@echo " local-build to build documentation locally"
89+
@echo " local-run to run documentation locally"
90+
@echo " okteto to build okteto image"
91+
@echo " tilt-start to start development k8s cluster"
92+
@echo " tilt-stop to stop development k8s cluster"
93+
@echo " venv-build to build documentation in virtual environment"
94+
@echo " venv-run to run documentation in virtual environment"
95+
@echo " versions to list commands versions"
96+
@echo
97+
5298
# Lists all targets defined in this makefile.
5399
.PHONY: list
54100
list:
@@ -58,6 +104,8 @@ list:
58104
.PHONY: dirs
59105
dirs:
60106
echo "$(DIRS)"
107+
@echo
108+
@echo "Directory list finished."
61109

62110
# Run version command.
63111
.PHONY: versions
@@ -69,6 +117,8 @@ versions:
69117
$(AT) echo
70118
helm version
71119
$(AT) echo
120+
@echo
121+
@echo "Versions list finished."
72122

73123
# Clean removes all temporary files.
74124
.PHONY: clean
@@ -80,14 +130,6 @@ clean:
80130
@echo
81131
@echo "Clean finished."
82132

83-
# Create venv.
84-
.PHONY: _venv
85-
_venv:
86-
virtualenv $(VENV_NAME)
87-
. $(VENV_NAME)/bin/activate
88-
@echo
89-
@echo "Virtual env created. The source pages are in $(VENV_NAME) directory."
90-
91133
# Ensures that the git workspace is clean.
92134
.PHONY: _ensure-clean
93135
_ensure-clean:

charts/OWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
approvers:
2+
- alexrogalskiy
3+
reviewers:
4+
- alexrogalskiy

charts/templates/configmap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ data:
1212
SERVER_PORT: {{ default "" .Values.configMaps.data.serverPort | quote }}
1313
APP_NAME: {{ default "" .Values.configMaps.data.appName | quote }}
1414
{{- end }}
15+
credentials: |
16+
#!/bin/bash
17+
echo username=$GIT_TOKEN
18+
echo password=""

cla/README.md

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Contributor Agreement - Individual Contributor Non-Exclusive License Agreement
2+
3+
Thank you for your interest in contributing to `java-patters` ("We" or "Us").
4+
5+
The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to
6+
Us.
7+
8+
### How to use this Contributor Agreement
9+
10+
If You are an employee and have created the Contribution as part of your employment, You need to have Your employer
11+
approve this Agreement. If You do not own the Copyright in the entire work of authorship, any other author of the
12+
Contribution should also sign this – in any event, please contact Us at a.rogalsky@yandex.ru.
13+
14+
### 1. Definitions
15+
16+
**"You"** means the individual Copyright owner who Submits a Contribution to Us.
17+
18+
**"Contribution"** means any original work of authorship, including any original modifications or additions to an
19+
existing work of authorship, Submitted by You to Us, in which You own the Copyright.
20+
21+
**"Copyright"** means all rights protecting works of authorship, including copyright, moral and neighboring rights, as
22+
appropriate, for the full term of their existence.
23+
24+
**"Material"** means the software or documentation made available by Us to third parties. When this Agreement covers
25+
more than one software project, the Material means the software or documentation to which the Contribution was
26+
Submitted. After You Submit the Contribution, it may be included in the Material.
27+
28+
**"Submit"** means any act by which a Contribution is transferred to Us by You by means of tangible or intangible media,
29+
including but not limited to electronic mailing lists, source code control systems, and issue tracking systems that are
30+
managed by, or on behalf of, Us, but excluding any transfer that is conspicuously marked or otherwise designated in
31+
writing by You as "Not a Contribution."
32+
33+
**"Documentation"** means any non-software portion of a Contribution.
34+
35+
### 2. License grant
36+
37+
**2.1 Copyright license to Us**
38+
39+
Subject to the terms and conditions of this Agreement, You hereby grant to Us a worldwide, royalty-free, NON-exclusive,
40+
perpetual and irrevocable (except as stated in Section 8.2) license, with the right to transfer an unlimited number of
41+
non-exclusive licenses or to grant sublicenses to third parties, under the Copyright covering the Contribution to use
42+
the Contribution by all means, including, but not limited to:
43+
44+
- publish the Contribution,
45+
- modify the Contribution,
46+
- prepare derivative works based upon or containing the Contribution and/or to combine the Contribution with other
47+
Materials,
48+
- reproduce the Contribution in original or modified form,
49+
- distribute, to make the Contribution available to the public, display and publicly perform the Contribution in
50+
original or modified form.
51+
52+
**2.2 Moral rights**
53+
54+
Moral Rights remain unaffected to the extent they are recognized and not waivable by applicable law. Notwithstanding,
55+
You may add your name to the attribution mechanism customary used in the Materials you Contribute to, such as the header
56+
of the source code files of Your Contribution, and We will respect this attribution when using Your Contribution.
57+
58+
### 3. Patents
59+
60+
**3.1 Patent license**
61+
62+
Subject to the terms and conditions of this Agreement You hereby grant to Us and to recipients of Materials distributed
63+
by Us a worldwide, royalty-free, non-exclusive, perpetual and irrevocable (except as stated in Section 3.2) patent
64+
license, with the right to transfer an unlimited number of non-exclusive licenses or to grant sublicenses to third
65+
parties, to make, have made, use, sell, offer for sale, import and otherwise transfer the Contribution and the
66+
Contribution in combination with any Material (and portions of such combination). This license applies to all patents
67+
owned or controlled by You, whether already acquired or hereafter acquired, that would be infringed by making, having
68+
made, using, selling, offering for sale, importing or otherwise transferring of Your Contribution(s) alone or by
69+
combination of Your Contribution(s) with any Material.
70+
71+
**3.2 Revocation of patent license**
72+
73+
You reserve the right to revoke the patent license stated in section 3.1 if We make any infringement claim that is
74+
targeted at your Contribution and not asserted for a Defensive Purpose. An assertion of claims of the Patents shall be
75+
considered for a "Defensive Purpose" if the claims are asserted against an entity that has filed, maintained,
76+
threatened, or voluntarily participated in a patent infringement lawsuit against Us or any of Our licensees.
77+
78+
### 4. Disclaimer
79+
80+
THE CONTRIBUTION IS PROVIDED "AS IS". MORE PARTICULARLY, ALL EXPRESS OR IMPLIED WARRANTIES INCLUDING, WITHOUT
81+
LIMITATION, ANY IMPLIED WARRANTY OF SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
82+
EXPRESSLY DISCLAIMED BY YOU TO US AND BY US TO YOU. TO THE EXTENT THAT ANY SUCH WARRANTIES CANNOT BE DISCLAIMED, SUCH
83+
WARRANTY IS LIMITED IN DURATION AND EXTENT TO THE MINIMUM PERIOD AND EXTENT PERMITTED BY LAW.
84+
85+
### 5. Consequential damage waiver
86+
87+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL YOU OR WE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF
88+
ANTICIPATED SAVINGS, LOSS OF DATA, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL AND EXEMPLARY DAMAGES ARISING OUT OF
89+
THIS AGREEMENT REGARDLESS OF THE LEGAL OR EQUITABLE THEORY (CONTRACT, TORT OR OTHERWISE) UPON WHICH THE CLAIM IS BASED.
90+
91+
### 6. Approximation of disclaimer and damage waiver
92+
93+
IF THE DISCLAIMER AND DAMAGE WAIVER MENTIONED IN SECTION 4. AND SECTION 5. CANNOT BE GIVEN LEGAL EFFECT UNDER APPLICABLE
94+
LOCAL LAW, REVIEWING COURTS SHALL APPLY LOCAL LAW THAT MOST CLOSELY APPROXIMATES AN ABSOLUTE WAIVER OF ALL CIVIL OR
95+
CONTRACTUAL LIABILITY IN CONNECTION WITH THE CONTRIBUTION.
96+
97+
### 7. Term
98+
99+
**7.1** This Agreement shall come into effect upon Your acceptance of the terms and conditions.
100+
101+
**7.2** In the event of a termination of this Agreement Sections 4, 5, 6, 7 and 8 shall survive such termination and
102+
shall remain in full force thereafter. For the avoidance of doubt, Free and Open Source Software (sub)licenses that have
103+
already been granted for Contributions at the date of the termination shall remain in full force after the termination
104+
of this Agreement.
105+
106+
### 8. Miscellaneous
107+
108+
**8.1** This Agreement and all disputes, claims, actions, suits or other proceedings arising out of this agreement or
109+
relating in any way to it shall be governed by the laws of United States excluding its private international law
110+
provisions.
111+
112+
**8.2** This Agreement sets out the entire agreement between You and Us for Your Contributions to Us and overrides all
113+
other agreements or understandings.
114+
115+
**8.3** In case of Your death, this agreement shall continue with Your heirs. In case of more than one heir, all heirs
116+
must exercise their rights through a commonly authorized person.
117+
118+
**8.4** If any provision of this Agreement is found void and unenforceable, such provision will be replaced to the
119+
extent possible with a provision that comes closest to the meaning of the original provision and that is enforceable.
120+
The terms and conditions set forth in this Agreement shall apply not withstanding any failure of essential purpose of
121+
this Agreement or any limited remedy to the maximum extent possible under law.
122+
123+
**8.5** You agree to notify Us of any facts or circumstances of which you become aware that would make this Agreement
124+
inaccurate in any respect.

cla/signatures.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

okteto/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ metadata:
4949
app.kubernetes.io/part-of: serverless
5050
app.kubernetes.io/managed-by: okteto
5151
annotations:
52+
# let okteto dynamically generate the ingress hostname
5253
dev.okteto.com/generate-host: "true"
54+
dev.okteto.com/private: "true"
5355
spec:
5456
rules:
5557
- http:

0 commit comments

Comments
 (0)