mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 22:00:35 +00:00
Compare commits
17
Commits
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: Broken link detected by CI
|
||||||
|
labels: bug
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- Used by automation to raise an Issue when the periodic link aliveness tests detect a broken link. -->
|
||||||
|
|
||||||
|
Periodic link aliveness CI detected a broken link. Please see the job results for details.
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
---
|
||||||
|
# Configuration for probot-stale - https://github.com/probot/stale
|
||||||
|
|
||||||
|
# Number of days of inactivity before an Issue becomes stale (pull request is overridden later)
|
||||||
|
daysUntilStale: 60
|
||||||
|
|
||||||
|
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
|
||||||
|
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
|
||||||
|
daysUntilClose: 7
|
||||||
|
|
||||||
|
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
|
||||||
|
onlyLabels: []
|
||||||
|
|
||||||
|
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
|
||||||
|
exemptLabels:
|
||||||
|
- security
|
||||||
|
- confirmed
|
||||||
|
|
||||||
|
# Set to true to ignore issues in a project (defaults to false)
|
||||||
|
exemptProjects: false
|
||||||
|
|
||||||
|
# Set to true to ignore issues in a milestone (defaults to false)
|
||||||
|
exemptMilestones: false
|
||||||
|
|
||||||
|
# Set to true to ignore issues with an assignee (defaults to false)
|
||||||
|
exemptAssignees: false
|
||||||
|
|
||||||
|
# Label to use when marking as stale
|
||||||
|
staleLabel: wontfix
|
||||||
|
|
||||||
|
# Comment to post when marking as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
This issue has been automatically marked as stale because it has not had
|
||||||
|
activity for 60 days. It will be closed if no further activity occurs.
|
||||||
|
Please make a comment if this issue/pr is still valid. Thank you
|
||||||
|
for your contributions.
|
||||||
|
|
||||||
|
# Comment to post when removing the stale label.
|
||||||
|
# unmarkComment: >
|
||||||
|
# Your comment here.
|
||||||
|
|
||||||
|
# Comment to post when closing a stale Issue or Pull Request.
|
||||||
|
# closeComment: >
|
||||||
|
# Your comment here.
|
||||||
|
|
||||||
|
# Limit the number of actions per hour, from 1-30. Default is 30
|
||||||
|
limitPerRun: 30
|
||||||
|
|
||||||
|
# Limit to only `issues` or `pulls`
|
||||||
|
# only: issues
|
||||||
|
|
||||||
|
pulls:
|
||||||
|
daysUntilStale: 30
|
||||||
|
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. Thank you
|
||||||
|
for your contributions.
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
name: DCO Check
|
|
||||||
on: pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dco:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: DCO Check
|
|
||||||
steps:
|
|
||||||
- name: Get PR Commits
|
|
||||||
id: 'get-pr-commits'
|
|
||||||
uses: tim-actions/get-pr-commits@master
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: DCO Check
|
|
||||||
uses: tim-actions/dco@master
|
|
||||||
with:
|
|
||||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
---
|
||||||
|
name: Linting
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dco:
|
||||||
|
name: DCO in Commit Message(s)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Get PR commits
|
||||||
|
id: 'get-pr-commits'
|
||||||
|
uses: tim-actions/get-pr-commits@master
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Run DCO check
|
||||||
|
uses: tim-actions/dco@master
|
||||||
|
with:
|
||||||
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||||
|
|
||||||
|
markdown-link-check:
|
||||||
|
name: Markdown Links (modified files)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Run markdown-link-check
|
||||||
|
uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||||
|
with:
|
||||||
|
config-file: ".markdownlinkcheck.json"
|
||||||
|
check-modified-files-only: "yes"
|
||||||
|
|
||||||
|
markdownlint:
|
||||||
|
name: Markdown
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Run markdownlint
|
||||||
|
uses: nosborn/github-action-markdown-cli@v1.1.1
|
||||||
|
with:
|
||||||
|
files: .
|
||||||
|
config_file: ".markdownlint.yml"
|
||||||
|
|
||||||
|
yaml-lint:
|
||||||
|
name: YAML
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Run yamllint
|
||||||
|
uses: ibiqlik/action-yamllint@v1
|
||||||
|
with:
|
||||||
|
file_or_dir: submariner/values.yaml submariner-k8s-broker/values.yaml submariner/Chart.yaml submariner-k8s-broker/Chart.yaml
|
||||||
|
config_file: .yamllint.yml
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
name: Periodic
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * 0"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
markdown-link-check-periodic:
|
||||||
|
name: Markdown Links (all files)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Run markdown-link-check
|
||||||
|
uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||||
|
with:
|
||||||
|
config-file: ".markdownlinkcheck.json"
|
||||||
|
|
||||||
|
- name: Raise an Issue to report broken links
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: JasonEtco/create-an-issue@v2
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
filename: .github/ISSUE_TEMPLATE/broken-link.md
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"ignorePatterns": [
|
||||||
|
{
|
||||||
|
"pattern": "^https://github.com/\\S+/\\S+/(issues|pull)/[0-9]+"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pattern": "^http://localhost:"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
# Breaks reusing MD snippets extracted to files
|
||||||
|
first-line-heading: false
|
||||||
|
|
||||||
|
# Set maximum line Length to 140c to match Go linting
|
||||||
|
line-length:
|
||||||
|
line_length: 140
|
||||||
|
|
||||||
|
# Allow HTML span elements to set font sizes
|
||||||
|
no-inline-html:
|
||||||
|
allowed_elements:
|
||||||
|
- span
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Code of Conduct
|
||||||
|
|
||||||
|
Please see the [Code of Conduct docs on Submariner's website](https://submariner.io/contributing/code-of-conduct/).
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Contributing
|
||||||
|
|
||||||
|
Please see the [Contributing docs on Submariner's website](https://submariner.io/contributing/).
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
# submariner-charts
|
# submariner-charts
|
||||||
|
|
||||||
Please see https://github.com/submariner-io/submariner for more information. This is only a supporting repository for Submariner
|
Please see the [Helm docs on Submariner's website](https://submariner.io/deployment/helm/).
|
||||||
|
|
||||||
# Dev workflow.
|
## Dev workflow
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
- [helm]
|
- [helm]
|
||||||
- [docker] or [podman]
|
- [docker] or [podman]
|
||||||
|
|
||||||
### Create a fork and checkout.
|
### Create a fork and checkout
|
||||||
|
|
||||||
[Create a fork] of the original repository, clone it locally and checkout a new branch from master.
|
[Create a fork] of the original repository, clone it locally and checkout a new branch from master.
|
||||||
|
|
||||||
@@ -31,13 +31,13 @@ Before serving the modified charts, the charts must be packaged for local usage.
|
|||||||
helm package ./submariner
|
helm package ./submariner
|
||||||
helm package ./submariner-k8s-broker
|
helm package ./submariner-k8s-broker
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: if you just installed helm, you have to init the helm, by running
|
Note: if you just installed helm, you have to init the helm, by running
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm init --client-only
|
helm init --client-only
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Serve the packaged charts through a local helm repository:
|
Serve the packaged charts through a local helm repository:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -93,7 +93,7 @@ Search the new repo for submariner charts:
|
|||||||
helm search -l test-repo
|
helm search -l test-repo
|
||||||
```
|
```
|
||||||
|
|
||||||
### Modify submariner e2e tests helm deployment script to use your local test-repo.
|
### Modify submariner e2e tests helm deployment script to use your local test-repo
|
||||||
|
|
||||||
You can test your helm-charts with e2e tests from the [shipyard](https://github.com/submariner-io/shipyard) repository.
|
You can test your helm-charts with e2e tests from the [shipyard](https://github.com/submariner-io/shipyard) repository.
|
||||||
In the file `scripts/shared/lib/deploy_helm` change the line from:
|
In the file `scripts/shared/lib/deploy_helm` change the line from:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: submariner-k8s-broker
|
name: submariner-k8s-broker
|
||||||
version: 0.4.1
|
version: 0.6.0
|
||||||
appVersion: 0.4.1
|
appVersion: 0.6.0
|
||||||
description: Submariner Kubernetes Broker
|
description: Submariner Kubernetes Broker
|
||||||
keywords:
|
keywords:
|
||||||
home: https://submariner-io.github.io/
|
home: https://submariner-io.github.io/
|
||||||
|
|||||||
@@ -27,6 +27,25 @@ spec:
|
|||||||
plural: endpoints
|
plural: endpoints
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
---
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: gateways.submariner.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: submariner.io
|
||||||
|
version: v1
|
||||||
|
names:
|
||||||
|
kind: Gateway
|
||||||
|
plural: gateways
|
||||||
|
scope: Namespaced
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: ha-status
|
||||||
|
type: string
|
||||||
|
description: High Availability Status of the Gateway
|
||||||
|
JSONPath: .status.haStatus
|
||||||
|
---
|
||||||
{{- if .Values.submariner.serviceDiscovery }}
|
{{- if .Values.submariner.serviceDiscovery }}
|
||||||
apiVersion: apiextensions.k8s.io/v1beta1
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
kind: CustomResourceDefinition
|
kind: CustomResourceDefinition
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ rules:
|
|||||||
- apiGroups: ["lighthouse.submariner.io"]
|
- apiGroups: ["lighthouse.submariner.io"]
|
||||||
resources: ["*"]
|
resources: ["*"]
|
||||||
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
|
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
|
||||||
|
- apiGroups: ["discovery.k8s.io"]
|
||||||
|
resources: ["endpointslices"]
|
||||||
|
verbs: ["create", "get", "list", "watch","patch", "update", "delete"]
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: submariner
|
name: submariner
|
||||||
version: 0.4.0
|
version: 0.6.0
|
||||||
appVersion: 0.4.0
|
appVersion: 0.6.0
|
||||||
description: Submariner enables direct networking between Pods and Services in different Kubernetes clusters
|
description: Submariner enables direct networking between Pods and Services in different Kubernetes clusters
|
||||||
keywords:
|
keywords:
|
||||||
home: https://submariner-io.github.io/
|
home: https://submariner-io.github.io/
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ questions:
|
|||||||
group: "Container Images"
|
group: "Container Images"
|
||||||
subquestions:
|
subquestions:
|
||||||
- variable: engine.image.repository
|
- variable: engine.image.repository
|
||||||
default: "rancher/submariner"
|
default: "quay.io/submariner/submariner"
|
||||||
description: "Submariner Engine Image Repository"
|
description: "Submariner Engine Image Repository"
|
||||||
type: string
|
type: string
|
||||||
label: Submariner Engine Image Repository
|
label: Submariner Engine Image Repository
|
||||||
- variable: engine.image.tag
|
- variable: engine.image.tag
|
||||||
default: "v0.0.2"
|
default: "0.6.0"
|
||||||
description: "Submariner Engine Image Tag"
|
description: "Submariner Engine Image Tag"
|
||||||
type: string
|
type: string
|
||||||
label: Submariner Engine Image Tag
|
label: Submariner Engine Image Tag
|
||||||
@@ -26,12 +26,12 @@ questions:
|
|||||||
group: "Container Images"
|
group: "Container Images"
|
||||||
subquestions:
|
subquestions:
|
||||||
- variable: routeAgent.image.repository
|
- variable: routeAgent.image.repository
|
||||||
default: "rancher/submariner-route-agent"
|
default: "quay.io/submariner/submariner-route-agent"
|
||||||
description: "Submariner Route Agent Image Repository"
|
description: "Submariner Route Agent Image Repository"
|
||||||
type: string
|
type: string
|
||||||
label: Submariner Route Agent Image Repository
|
label: Submariner Route Agent Image Repository
|
||||||
- variable: routeAgent.image.tag
|
- variable: routeAgent.image.tag
|
||||||
default: "v0.0.2"
|
default: "0.6.0"
|
||||||
description: "Submariner Route Agent Image Tag"
|
description: "Submariner Route Agent Image Tag"
|
||||||
type: string
|
type: string
|
||||||
label: Submariner Route Agent Image Tag
|
label: Submariner Route Agent Image Tag
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ metadata:
|
|||||||
name: {{ template "submariner.lighthouseDnsName" . }}
|
name: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
data:
|
data:
|
||||||
Corefile: |
|
Corefile: |
|
||||||
supercluster.local:53 {
|
clusterset.local:53 {
|
||||||
{{- if .Values.submariner.debug }}
|
{{- if .Values.submariner.debug }}
|
||||||
log
|
log
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -118,11 +118,17 @@ metadata:
|
|||||||
name: {{ template "submariner.fullname" . }}:lighthouse
|
name: {{ template "submariner.fullname" . }}:lighthouse
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["services", "namespaces", "configmaps"]
|
resources: ["services", "namespaces", "configmaps", "endpoints"]
|
||||||
verbs: ["get", "list", "watch", "update"]
|
verbs: ["get", "list", "watch", "update"]
|
||||||
|
- apiGroups: ["discovery.k8s.io"]
|
||||||
|
resources: ["endpointslices"]
|
||||||
|
verbs: ["create", "get", "list", "watch", "update", "delete", "deletecollection"]
|
||||||
- apiGroups: ["lighthouse.submariner.io"]
|
- apiGroups: ["lighthouse.submariner.io"]
|
||||||
resources: ["*"]
|
resources: ["*"]
|
||||||
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||||
|
- apiGroups: ["submariner.io"]
|
||||||
|
resources: ["gateways"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
app: {{ template "submariner.fullname" . }}-routeagent
|
app: {{ template "submariner.fullname" . }}-routeagent
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
maxUnavailable: 1
|
maxUnavailable: "100%"
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
Reference in New Issue
Block a user