-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
226 changed files
with
21,999 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,22 @@ permissions: | |
id-token: write | ||
|
||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
outputs: | ||
apps: ${{ steps.filter.outputs.changes }} | ||
steps: | ||
- name: Check-out the repository | ||
uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
game-2048: src/game-2048/** | ||
cow-demo: src/cow-demo/** | ||
rancher-helloworld: src/rancher-helloworld/** | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -32,6 +48,8 @@ jobs: | |
helm repo update | ||
- name: Host charts repository on GitHub Pages | ||
uses: helm/[email protected] | ||
with: | ||
skip_existing: true | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Checkout gh-pages branch | ||
|
@@ -63,3 +81,33 @@ jobs: | |
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
create-image: | ||
if: needs.changes.outputs.apps != '[]' | ||
strategy: | ||
matrix: | ||
app: ${{ fromJSON(needs.changes.outputs.apps) }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
- name: Login to container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.CONTAINER_REGITRY_DOMAIN }} | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build container image | ||
run: | | ||
cd src/${{ matrix.app }} | ||
docker build . --tag $IMAGE_FOLDER/${{ matrix.app }}:${{ env.IMAGE_TAG }} | ||
- name: Push image to container registry | ||
run: docker push $IMAGE_FOLDER/${{ matrix.app }}:${{ env.IMAGE_TAG }} | ||
- name: Push latest tag to container registry | ||
if: ${{ github.ref_name == 'main' }} | ||
run: | | ||
docker tag $IMAGE_FOLDER/${{ matrix.app }}:${{ env.IMAGE_TAG }} $IMAGE_FOLDER/${{ matrix.app }}:latest | ||
docker push $IMAGE_FOLDER/${{ matrix.app }}:latest | ||
env: | ||
CONTAINER_REGITRY_DOMAIN: docker.io | ||
IMAGE_FOLDER: ${{ vars.DOCKERHUB_NAMESPACE }} | ||
IMAGE_TAG: 1.0.${GITHUB_RUN_ID} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
temp*.yaml | ||
temp.sh | ||
/charts/temp/ | ||
values_*.y*ml | ||
values_mine.y*ml | ||
.sass-cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Contribution guide | ||
|
||
## Code lifecycle | ||
|
||
This git repository follows the Gitflow pattern, so make sure to follow the convention. | ||
|
||
For instance, create a branch `feature/my-change-title` from `develop`, once good enough to be shared and reviewed create a Pull Request targetting `develop`. | ||
|
||
## Code convention | ||
|
||
For bash/shell script files, follow the conventions from [Google Style Guide](https://google.github.io/styleguide/shellguide.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,11 @@ Install the app with minimal settings: | |
|
||
```bash | ||
# adds the repo | ||
helm repo add devpro https://devpro.github.io/helm-charts | ||
helm repo add suse-lab-setup https://opensource.suse.com/lab-setup | ||
helm repo update | ||
|
||
# installs the chart (this examples assumes NGINX Ingress Controller is installed) | ||
helm upgrade --install letsencrypt devpro/letsencrypt \ | ||
helm upgrade --install letsencrypt suse-lab-setup/letsencrypt \ | ||
--namespace cert-manager \ | ||
--set [email protected] \ | ||
--set ingress.className=nginx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v2 | ||
name: nfs-ganesha | ||
description: Helm chart for managing NFS-Ganesha | ||
type: application | ||
version: "0.1.0" | ||
appVersion: "1.0.0" | ||
dependencies: [] | ||
home: https://github.com/SUSE/lab-setup/tree/main/charts/nfs-ganesha | ||
maintainers: | ||
- name: devpro | ||
email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# NFS-Ganesha Helm Chart | ||
|
||
This Helm chart will install [NFS-Ganesha](https://nfs-ganesha.github.io/) on a Kubernetes cluster. | ||
|
||
## Quick start | ||
|
||
Install the app with minimal settings: | ||
|
||
```bash | ||
# adds the repo | ||
helm repo add suse-lab-setup https://opensource.suse.com/lab-setup | ||
helm repo update | ||
|
||
# installs the chart with default parameters | ||
helm upgrade --install nfs-ganesha suse-lab-setup/nfs-ganesha --create-namespace --namespace nfs-ganesha | ||
``` | ||
|
||
Clean-up: | ||
|
||
```bash | ||
helm delete nfs-ganesha -n nfs-ganesha | ||
kubectl delete ns nfs-ganesha | ||
``` |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: {{ .Values.name }} | ||
name: {{ .Values.name }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: {{ .Values.name }} | ||
template: | ||
metadata: | ||
labels: | ||
app: nfs-ganesha | ||
spec: | ||
containers: | ||
- name: container-0 | ||
image: {{ .Values.image }}:{{ .Values.tag }} | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 2049 | ||
name: nfsv4 | ||
protocol: TCP | ||
securityContext: | ||
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- DAC_READ_SEARCH | ||
privileged: true | ||
volumeMounts: | ||
- mountPath: /data/nfs | ||
name: share | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
volumes: | ||
- emptyDir: {} | ||
name: share |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .Values.name }}-nodeport | ||
spec: | ||
selector: | ||
app: {{ .Values.name }} | ||
type: NodePort | ||
ports: | ||
- name: nfsv4 | ||
nodePort: 32049 | ||
port: 2049 | ||
protocol: TCP | ||
targetPort: 2049 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .Values.name }} | ||
spec: | ||
selector: | ||
app: {{ .Values.name }} | ||
type: ClusterIP | ||
ports: | ||
- name: nfsv4 | ||
port: 2049 | ||
protocol: TCP | ||
targetPort: 2049 |
Oops, something went wrong.