generated from openmcp-project/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Adding support for Kustomize projects #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
bb033f9
feat: Adding support for Kustomize projects
wchomik 8647013
feat: Adding support for Kustomize projects
wchomik 33a9e18
feat: Adding support for Kustomize projects
wchomik 0683886
chore(ci): Compiled JS Packages
wchomik 47ecc75
feat: Adding support for Kustomize projects
wchomik 1080875
chore(ci): Compiled JS Packages
wchomik 475da24
feat: Adding support for Kustomize projects
wchomik 9691b5e
feat: Adding support for Kustomize projects
wchomik 7f06fd2
feat: Adding support for Kustomize projects
wchomik 4d2a7f7
chore(ci): Compiled JS Packages
wchomik dcbbe7c
feat: Adding support for Kustomize projects
wchomik d75d1b8
chore(ci): Compiled JS Packages
wchomik dd1463b
chore: Added version_bump functionality to the Kustomize workflows
wchomik 8e26400
chore(ci): Compiled JS Packages
wchomik 13233da
chore: Added version_bump functionality to the Kustomize workflows
wchomik bfcaebb
chore: Added version_bump functionality to the Kustomize workflows
wchomik ccec173
chore(ci): Compiled JS Packages
wchomik d2fe56a
chore: Added version_bump functionality to the Kustomize workflows
wchomik 2a0299f
chore(ci): Compiled JS Packages
wchomik ef4237d
chore: Added version_bump functionality to the Kustomize workflows
wchomik 606822b
chore(ci): Compiled JS Packages
wchomik 0776bb7
feat: Cleaning up Kustomize-actions code
wchomik a1e5785
chore: Adding kustomize version-bump to the CI workflow
wchomik 1b49a06
chore: Clean-up kustomize version-bump
wchomik 9d24af3
chore: Fix version-bump
wchomik 5811c23
chore: Fix version-bump
wchomik 1ae69a0
feat: Added test kustomize projects
wchomik 31a385b
fix: Fixed issue where no kustomize projects are found
wchomik 1467a47
chore(ci): k8s manifest templated for Helm Charts and Kustomize Projects
wchomik a89c6bd
chore(ci): Compiled JS Packages
wchomik b555795
fix: Updating README's
wchomik fdbf5d3
chore(ci): Compiled JS Packages
wchomik d607042
Merge branch 'main' into feat/kustomize
wchomik 9e9f354
Merge branch 'main' into feat/kustomize
sk31337 fab4535
Merge branch 'main' into feat/kustomize
wchomik 95876e2
chore(ci): Compiled JS Packages
wchomik 02003f4
Merge branch 'main' into feat/kustomize
sk31337 e346043
feat: Cleaning kustomize-listing.yaml and adding it to .gitignore
wchomik c0e17f8
chore(ci): Compiled JS Packages
wchomik da2efa0
feat: Cleaning kustomize-listing.yaml and adding it to .gitignore
wchomik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
name: 'Kustomize Listing' | ||
description: 'List all Kustomize Projects to be worked on.' | ||
|
||
# Add your action's branding here. This will appear on the GitHub Marketplace. | ||
branding: | ||
icon: 'layers' | ||
color: 'blue' | ||
|
||
runs: | ||
using: node20 | ||
main: ../../../../typescript/packages/kustomize/listing/dist/index.js |
This file contains hidden or 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 @@ | ||
name: 'Kustomize Manifest Validation' | ||
description: 'Validates every Kustomize Project and performs strict manifest validation' | ||
|
||
# Add your action's branding here. This will appear on the GitHub Marketplace. | ||
branding: | ||
icon: 'layers' | ||
color: 'blue' | ||
|
||
runs: | ||
using: node20 | ||
main: ../../../../typescript/packages/kustomize/manifest-validation/dist/index.js |
This file contains hidden or 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,32 @@ | ||
name: 'Version Bump' | ||
description: 'Bumps .version of every modified Kustomize project' | ||
|
||
# Add your action's branding here. This will appear on the GitHub Marketplace. | ||
branding: | ||
icon: 'heart' | ||
color: 'red' | ||
|
||
# Define your inputs here. | ||
inputs: | ||
BRANCH_NAME: | ||
description: 'Local Git Branch that you are currently on!' | ||
required: true | ||
BASE_BRANCH_NAME: | ||
description: 'Git Branch on which Helm Charts Chart.yaml file will be looked up to determin latest version!' | ||
required: true | ||
default: "main" | ||
TARGET_GIT_REPO_URL: | ||
description: 'URL of the target Git Repository to which PR will be merged' | ||
required: true | ||
default: "https://github.com/openmcp-project/blueprint-building-blocks.git" | ||
SOURCE_GIT_REPO_URL: | ||
description: 'URL of the source Git Repository from which PR will be merged' | ||
required: true | ||
default: "https://github.com/openmcp-project/blueprint-building-blocks.git" | ||
TOKEN: | ||
description: 'GitHub Token' | ||
required: false | ||
|
||
runs: | ||
using: node20 | ||
main: ../../../../typescript/packages/kustomize/version-bump/dist/index.js |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,64 @@ | ||
apiVersion: v1 | ||
data: | ||
altGreeting: Good Morning! | ||
enableRisky: "false" | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app: hello2 | ||
name: the-map | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: hello2 | ||
name: the-service | ||
spec: | ||
ports: | ||
- port: 8666 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
app: hello2 | ||
deployment: hello | ||
type: LoadBalancer | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: hello2 | ||
name: the-deployment | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: hello2 | ||
deployment: hello | ||
template: | ||
metadata: | ||
labels: | ||
app: hello2 | ||
deployment: hello | ||
spec: | ||
containers: | ||
- command: | ||
- /hello | ||
- --port=8080 | ||
- --enableRiskyFeature=$(ENABLE_RISKY) | ||
env: | ||
- name: ALT_GREETING | ||
valueFrom: | ||
configMapKeyRef: | ||
key: altGreeting | ||
name: the-map | ||
- name: ENABLE_RISKY | ||
valueFrom: | ||
configMapKeyRef: | ||
key: enableRisky | ||
name: the-map | ||
image: monopole/hello:1 | ||
name: the-container | ||
ports: | ||
- containerPort: 8080 |
This file contains hidden or 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,55 @@ | ||
apiVersion: v1 | ||
data: | ||
password: YWRtaW4= | ||
kind: Secret | ||
metadata: | ||
name: mysql-pass | ||
type: Opaque | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: mysql | ||
name: mysql | ||
spec: | ||
ports: | ||
- port: 3306 | ||
selector: | ||
app: mysql | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: mysql | ||
name: mysql | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: mysql | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: mysql | ||
spec: | ||
containers: | ||
- env: | ||
- name: MYSQL_ROOT_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
key: password | ||
name: mysql-pass | ||
image: mysql:5.6 | ||
name: mysql | ||
ports: | ||
- containerPort: 3306 | ||
name: mysql | ||
volumeMounts: | ||
- mountPath: /var/lib/mysql | ||
name: mysql-persistent-storage | ||
volumes: | ||
- emptyDir: {} | ||
name: mysql-persistent-storage |
This file contains hidden or 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,114 @@ | ||
apiVersion: v1 | ||
data: | ||
password: YWRtaW4= | ||
kind: Secret | ||
metadata: | ||
name: demo-mysql-pass | ||
type: Opaque | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: mysql | ||
name: demo-mysql | ||
spec: | ||
ports: | ||
- port: 3306 | ||
selector: | ||
app: mysql | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: wordpress | ||
name: demo-wordpress | ||
spec: | ||
ports: | ||
- port: 80 | ||
selector: | ||
app: wordpress | ||
type: LoadBalancer | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: mysql | ||
name: demo-mysql | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: mysql | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: mysql | ||
spec: | ||
containers: | ||
- env: | ||
- name: MYSQL_ROOT_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
key: password | ||
name: demo-mysql-pass | ||
image: mysql:5.6 | ||
name: mysql | ||
ports: | ||
- containerPort: 3306 | ||
name: mysql | ||
volumeMounts: | ||
- mountPath: /var/lib/mysql | ||
name: mysql-persistent-storage | ||
volumes: | ||
- emptyDir: {} | ||
name: mysql-persistent-storage | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: wordpress | ||
name: demo-wordpress | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: wordpress | ||
spec: | ||
containers: | ||
- env: | ||
- name: WORDPRESS_DB_HOST | ||
value: demo-mysql | ||
- name: WORDPRESS_DB_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
key: password | ||
name: demo-mysql-pass | ||
image: wordpress:4.8-apache | ||
name: wordpress | ||
ports: | ||
- containerPort: 80 | ||
name: wordpress | ||
volumeMounts: | ||
- mountPath: /var/www/html | ||
name: wordpress-persistent-storage | ||
initContainers: | ||
- args: | ||
- -c | ||
- echo demo-wordpress; echo demo-mysql | ||
command: | ||
- /bin/sh | ||
image: debian | ||
name: init-command | ||
volumes: | ||
- emptyDir: {} | ||
name: wordpress-persistent-storage |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.