Skip to content

Commit b42782a

Browse files
committedApr 11, 2021
update to flux2
1 parent 9cdb4a8 commit b42782a

File tree

8 files changed

+2815
-7
lines changed

8 files changed

+2815
-7
lines changed
 

‎.github/workflows/newApplicationVersion.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717

1818
steps:
1919
- name: Wrap Input
20-
run: |
21-
echo "::set-env name=APP_REPO::${{ github.event.inputs.app_repo }}"
22-
echo "::set-env name=TAG_NAME::${{ github.event.inputs.tag_name }}"
23-
echo "::set-env name=IMAGE::${{ github.event.inputs.image }}"
24-
echo "::set-env name=DEPLOY_FILE_PATH::${{ github.event.inputs.app_repo }}/deployment.yaml"
20+
run: |
21+
echo "APP_REPO=${{ github.event.inputs.app_repo }}" >> $GITHUB_ENV
22+
echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
23+
echo "IMAGE=${{ github.event.inputs.image }}" >> $GITHUB_ENV
24+
echo "DEPLOY_FILE_PATH=applications/${{ github.event.inputs.app_repo }}/deployment.yaml" >> $GITHUB_ENV
2525
- uses: actions/checkout@v2
2626
- uses: azure/setup-kubectl@v1
2727
id: install

‎example-application/deployment.yaml ‎applications/example-application/deployment.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: example-application
5-
65
spec:
76
replicas: 1
87
selector:
@@ -18,4 +17,3 @@ spec:
1817
image: <image-name>:<tag>
1918
ports:
2019
- containerPort: 8080
21-
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
apiVersion: source.toolkit.fluxcd.io/v1beta1
3+
kind: GitRepository
4+
metadata:
5+
name: applications
6+
namespace: default
7+
spec:
8+
interval: 30s
9+
ref:
10+
branch: main
11+
url: ssh://git@github.com/gitops-tech/example-environment
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
2+
kind: Kustomization
3+
metadata:
4+
name: example-application
5+
namespace: default
6+
spec:
7+
interval: 5m0s
8+
path: ./applications/example-application
9+
prune: true
10+
sourceRef:
11+
kind: GitRepository
12+
name: applications
13+
validation: client

‎cluster-config/flux-system/gotk-components.yaml

+2,753
Large diffs are not rendered by default.
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
apiVersion: source.toolkit.fluxcd.io/v1beta1
3+
kind: GitRepository
4+
metadata:
5+
name: flux-system
6+
namespace: flux-system
7+
spec:
8+
interval: 1m0s
9+
ref:
10+
branch: main
11+
secretRef:
12+
name: flux-system
13+
url: ssh://git@github.com/gitops-tech/example-environment
14+
---
15+
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
16+
kind: Kustomization
17+
metadata:
18+
name: flux-system
19+
namespace: flux-system
20+
spec:
21+
interval: 10m0s
22+
path: ./cluster-config
23+
prune: true
24+
sourceRef:
25+
kind: GitRepository
26+
name: flux-system
27+
validation: client
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- gotk-components.yaml
5+
- gotk-sync.yaml

0 commit comments

Comments
 (0)