forked from 23technologies/gardener-extension-shoot-flux
-
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.
⚙️ Add flux
providerConfig
API (#23)
Co-authored-by: Kai Kummerer <kai.kummerer@stackit.de> Co-authored-by: Robin Schneider <45321827+robinschneider@users.noreply.github.com>
- Loading branch information
1 parent
3bf38d4
commit 9b9dc56
Showing
23 changed files
with
1,296 additions
and
38 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
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apiVersion: core.gardener.cloud/v1beta1 | ||
kind: Shoot | ||
metadata: | ||
name: flux | ||
namespace: garden-local | ||
annotations: | ||
shoot.gardener.cloud/infrastructure-cleanup-wait-period-seconds: "0" | ||
shoot.gardener.cloud/cloud-config-execution-max-delay-seconds: "0" | ||
spec: | ||
extensions: | ||
- type: shoot-flux | ||
providerConfig: | ||
apiVersion: flux.extensions.gardener.cloud/v1alpha1 | ||
kind: FluxConfig | ||
flux: | ||
version: v2.1.2 # defaults to some current version, not latest! | ||
registry: ghcr.io/fluxcd | ||
namespace: flux-system | ||
source: | ||
template: | ||
apiVersion: source.toolkit.fluxcd.io/v1 | ||
kind: GitRepository | ||
spec: | ||
ref: | ||
branch: main | ||
# secretRef: | ||
# name: flux-system | ||
url: https://github.com/fluxcd/flux2-kustomize-helm-example | ||
# secretResourceName: flux-ssh-secret | ||
kustomization: | ||
template: | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
spec: | ||
path: clusters/production/flux-system | ||
# resources: | ||
# - name: flux-ssh-secret | ||
# resourceRef: | ||
# apiVersion: v1 | ||
# kind: Secret | ||
# name: my-project-secret | ||
|
||
cloudProfileName: local | ||
secretBindingName: local # dummy, doesn't contain any credentials | ||
region: local | ||
networking: | ||
type: calico | ||
provider: | ||
type: local | ||
workers: | ||
- name: local | ||
machine: | ||
type: local | ||
cri: | ||
name: containerd | ||
minimum: 1 | ||
maximum: 2 | ||
maxSurge: 1 | ||
maxUnavailable: 0 | ||
kubernetes: | ||
kubelet: | ||
seccompDefault: true | ||
serializeImagePulls: false | ||
registryPullQPS: 10 | ||
registryBurst: 20 | ||
protectKernelDefaults: true | ||
streamingConnectionIdleTimeout: 5m |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"hideMemberFields": [ | ||
"TypeMeta" | ||
], | ||
"hideTypePatterns": [ | ||
"ParseError$", | ||
"List$" | ||
], | ||
"externalPackages": [ | ||
{ | ||
"typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/", | ||
"docsURLTemplate": "https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}" | ||
}, | ||
{ | ||
"typeMatchPrefix": "^github\\.com/fluxcd/(\\w+)-controller/api", | ||
"docsURLTemplate": "{{ $component := arrIndex .PackageSegments -3 }}{{ if eq $component \"source-controller\" }}{{ $component = \"source\" }}{{ end }}{{ if eq $component \"kustomize-controller\" }}{{ $component = \"kustomize\" }}{{ end }}https://fluxcd.io/flux/components/{{$component}}/api/v1/#{{$component}}.toolkit.fluxcd.io/{{arrIndex .PackageSegments -1}}.{{.TypeIdentifier}}" | ||
} | ||
], | ||
"typeDisplayNamePrefixOverrides": { | ||
"k8s.io/api/": "Kubernetes ", | ||
"k8s.io/apimachinery/pkg/apis/": "Kubernetes ", | ||
"github.com/fluxcd/source-controller/api/": "source.toolkit.fluxcd.io/", | ||
"github.com/fluxcd/kustomize-controller/api/": "kustomize.toolkit.fluxcd.io/" | ||
}, | ||
"markdownDisabled": false | ||
} |
Oops, something went wrong.