Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jenkinsci/kubernetes-operator int…
Browse files Browse the repository at this point in the history
…o security-validator

- Refactored code in webhook and main
- Merged changes from master
  • Loading branch information
sharmapulkit04 committed Aug 10, 2021
2 parents 1d2651d + 853f485 commit 2d2cfaf
Show file tree
Hide file tree
Showing 37 changed files with 430 additions and 207 deletions.
4 changes: 4 additions & 0 deletions .devbots/needs-triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Configuration for devbots-needs-triage - https://devbots.xyz/documentation/needs-triage/

enabled: true
label: "needs triage"
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: "📚 Documentation issue"
about: Suggest changes to project's documentation
title: ''
labels: 'documentation'
projects: ''
assignees: ''
---

**Relevant links*
Link(s) to the section(s) of documentation that are outdated or otherwise wrong

**Description**
Description of the changes you would like to see
47 changes: 47 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an issue becomes stale
daysUntilStale: 30

# Number of days of inactivity before a stale Issue or Pull Request is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 60

# Issues with these labels will never be considered stale
exemptLabels:
- frozen

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: true

# Label to use when marking an issue as stale
staleLabel: stale

issues:
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had recent activity.
It will be closed if no further activity occurs.
If this issue is still affecting you, just comment with any updates and we'll keep it open.
Thank you for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
Closing this issue after a prolonged period of inactivity.
If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
pulls:
# Comment to post when marking a pull request as stale.
markComment: >
This pull request has been automatically marked as stale because it has not had recent activity.
It will be closed if no further activity occurs.
If this pull request is still relevant, just comment with any updates and we'll keep it open.
Thank you for your contributions.
# Comment to post when closing a stale pull request. Set to `false` to disable
closeComment: >
Closing this pull request after a prolonged period of inactivity.
If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30
24 changes: 11 additions & 13 deletions .github/workflows/auto-gen-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,51 +23,49 @@ jobs:
submodules: recursive # Fetch the Docsy theme
fetch-depth: 0

# Checks out a copy of your repository on the ubuntu-latest machine
# Checks if the previous commit introduced any changes to website files
- name: Check for changes
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E "^website*"; then
git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E "^website*"
echo "IS_CHANGED=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E "^website*")" >> $GITHUB_ENV
else
echo "IS_CHANGED=empty" >> $GITHUB_ENV
fi
IS_CHANGED=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -Ec "^website*" || :)
[[ $IS_CHANGED -gt 0 ]] && echo "IS_CHANGED=true" >> $GITHUB_ENV || echo "IS_CHANGED=false" >> $GITHUB_ENV
# Sets up the appropriate version of Hugo
- name: Setup Hugo
if: env.IS_CHANGED != 'empty'
if: env.IS_CHANGED == 'true'
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.62.2'
extended: true

# Sets up node - required by Hugo
- name: Setup Node
if: env.IS_CHANGED != 'empty'
if: env.IS_CHANGED == 'true'
uses: actions/setup-node@v1
with:
node-version: '12.x'

# Installs dependencies required by docsy theme
- name: Install docsy dependencies
if: env.IS_CHANGED != 'empty'
if: env.IS_CHANGED == 'true'
run: |
cd website
npm install
npm build
sudo npm install -D --save autoprefixer
sudo npm install -D --save postcss-cli
cd ../
# Runs makefile goal - checks changes to /website folder and generates docs
- name: Run Makefile goal
if: env.IS_CHANGED != 'empty'
if: env.IS_CHANGED == 'true'
env:
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make generate-docs

# Create push request with generated docs
# Creates pull request with generated docs
- name: Create Pull Request
if: env.IS_CHANGED != 'empty'
if: env.IS_CHANGED == 'true'
uses: peter-evans/create-pull-request@v3
with:
commit-message: Auto-updated docs
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,15 @@ Selected content:
## Community

We have a dedicated channel called `#jenkins-operator` on [virtuslab-oss.slack.com](https://virtuslab-oss.slack.com)
Fill out ([Invite form](https://forms.gle/X3X8qA1XMirdBuEH7)) and come say hi !
Fill out ([Invite form](https://forms.gle/X3X8qA1XMirdBuEH7)) and come say hi!

## Snapshots between releases

We are trying our best to resolve issues quickly, but they have to wait to be released. If you can't wait for an official
docker image release and acknowledge the risk, you can use our unofficial images, which are built nightly.

You can find the project's Docker Hub repository [here](https://hub.docker.com/r/virtuslab/jenkins-operator).

Look for the images with tag "{git-hash}", where {git-hash} is the hash of the master commit that interests you.

## Contribution
Expand Down
Loading

0 comments on commit 2d2cfaf

Please sign in to comment.