-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 📦 add separated chart for CRDs
- Loading branch information
1 parent
12fee7e
commit b674cf7
Showing
33 changed files
with
208 additions
and
25 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
|
||
/usr/bin/helm unittest --color ./traefik; | ||
/usr/bin/helm unittest --color ./traefik-crds; |
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,23 @@ | ||
apiVersion: v2 | ||
name: traefik-crds | ||
description: A Traefik based Kubernetes ingress controller | ||
type: application | ||
version: 0.0.1 | ||
kubeVersion: ">=1.22.0-0" | ||
keywords: | ||
- traefik | ||
- ingress | ||
- networking | ||
home: https://traefik.io/ | ||
sources: | ||
- https://github.com/traefik/traefik | ||
- https://github.com/traefik/traefik-helm-chart | ||
maintainers: | ||
- name: mloiseleur | ||
email: [email protected] | ||
- name: charlie-haley | ||
email: [email protected] | ||
- name: darkweaver87 | ||
email: [email protected] | ||
- name: jnoordsij | ||
icon: https://raw.githubusercontent.com/traefik/traefik/v2.3/docs/content/assets/img/traefik.logo.png |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,24 @@ | ||
--- | ||
kind: Kustomization | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
resources: | ||
# curl -o gateway-standard-install-v1.1.0.yaml -L https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.1.0/standard-install.yaml | ||
- crds-files/gateway/gateway-standard-install-v1.1.0.yaml | ||
- crds-files/hub/hub.traefik.io_accesscontrolpolicies.yaml | ||
- crds-files/hub/hub.traefik.io_apiaccesses.yaml | ||
- crds-files/hub/hub.traefik.io_apiportals.yaml | ||
- crds-files/hub/hub.traefik.io_apiratelimits.yaml | ||
- crds-files/hub/hub.traefik.io_apis.yaml | ||
- crds-files/hub/hub.traefik.io_apiversions.yaml | ||
- crds-files/hub/hub.traefik.io_apiplans.yaml | ||
- crds-files/hub/hub.traefik.io_apibundles.yaml | ||
- crds-files/traefik/traefik.io_ingressroutes.yaml | ||
- crds-files/traefik/traefik.io_ingressroutetcps.yaml | ||
- crds-files/traefik/traefik.io_ingressrouteudps.yaml | ||
- crds-files/traefik/traefik.io_middlewares.yaml | ||
- crds-files/traefik/traefik.io_middlewaretcps.yaml | ||
- crds-files/traefik/traefik.io_serverstransports.yaml | ||
- crds-files/traefik/traefik.io_serverstransporttcps.yaml | ||
- crds-files/traefik/traefik.io_tlsoptions.yaml | ||
- crds-files/traefik/traefik.io_tlsstores.yaml | ||
- crds-files/traefik/traefik.io_traefikservices.yaml |
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,42 @@ | ||
{{- if .Values.traefik -}} | ||
{{- $files := .Files }} | ||
{{- range tuple | ||
"crds-files/traefik/traefik.io_ingressroutes.yaml" | ||
"crds-files/traefik/traefik.io_ingressroutetcps.yaml" | ||
"crds-files/traefik/traefik.io_ingressrouteudps.yaml" | ||
"crds-files/traefik/traefik.io_middlewares.yaml" | ||
"crds-files/traefik/traefik.io_middlewaretcps.yaml" | ||
"crds-files/traefik/traefik.io_serverstransports.yaml" | ||
"crds-files/traefik/traefik.io_serverstransporttcps.yaml" | ||
"crds-files/traefik/traefik.io_tlsoptions.yaml" | ||
"crds-files/traefik/traefik.io_tlsstores.yaml" | ||
"crds-files/traefik/traefik.io_traefikservices.yaml" | ||
}} | ||
{{ $files.Get . }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- if .Values.hub -}} | ||
{{- $files := .Files }} | ||
{{- range tuple | ||
"crds-files/hub/hub.traefik.io_accesscontrolpolicies.yaml" | ||
"crds-files/hub/hub.traefik.io_apiaccesses.yaml" | ||
"crds-files/hub/hub.traefik.io_apibundles.yaml" | ||
"crds-files/hub/hub.traefik.io_apiplans.yaml" | ||
"crds-files/hub/hub.traefik.io_apiportals.yaml" | ||
"crds-files/hub/hub.traefik.io_apiratelimits.yaml" | ||
"crds-files/hub/hub.traefik.io_apis.yaml" | ||
"crds-files/hub/hub.traefik.io_apiversions.yaml" | ||
}} | ||
{{ $files.Get . }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- if .Values.gateway_api -}} | ||
{{- $files := .Files }} | ||
{{- range tuple | ||
"crds-files/gateway/gateway-standard-install-v1.1.0.yaml" | ||
}} | ||
{{ $files.Get . }} | ||
{{- end }} | ||
{{- end }} |
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,53 @@ | ||
suite: CRDs | ||
templates: | ||
- crds.yaml | ||
tests: | ||
- it: shouldn't have any crds by default | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
|
||
- it: should have all Traefik crds | ||
set: | ||
traefik: true | ||
asserts: | ||
- hasDocuments: | ||
count: 10 | ||
- isKind: | ||
of: CustomResourceDefinition | ||
- equal: | ||
path: spec.group | ||
value: traefik.io | ||
- matchRegex: | ||
path: spec.names.kind | ||
pattern: ^(IngressRoute|IngressRouteTCP|IngressRouteUDP|Middleware|MiddlewareTCP|ServersTransport|ServersTransportTCP|TLSOption|TLSStore|TraefikService)$ | ||
|
||
- it: should have all Traefik Hub crds | ||
set: | ||
hub: true | ||
asserts: | ||
- hasDocuments: | ||
count: 8 | ||
- isKind: | ||
of: CustomResourceDefinition | ||
- equal: | ||
path: spec.group | ||
value: hub.traefik.io | ||
- matchRegex: | ||
path: spec.names.kind | ||
pattern: ^(AccessControlPolicy|APIAccess|APIBundle|APIPlan|APIPortal|APIRateLimit|API|APIVersion)$ | ||
|
||
- it: should have all Gateway API crds | ||
set: | ||
gateway_api: true | ||
asserts: | ||
- hasDocuments: | ||
count: 5 | ||
- isKind: | ||
of: CustomResourceDefinition | ||
- equal: | ||
path: spec.group | ||
value: gateway.networking.k8s.io | ||
- matchRegex: | ||
path: spec.names.kind | ||
pattern: ^(GatewayClass|Gateway|GRPCRoute|HTTPRoute|ReferenceGrant)$ |
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,3 @@ | ||
traefik: false | ||
gateway_api: false | ||
hub: false |
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,6 @@ | ||
dependencies: | ||
- name: traefik-crds | ||
repository: file://../traefik-crds | ||
version: 0.0.1 | ||
digest: sha256:03a8641bfa1d261b699d166dea5aaa21d9e27bfc2328d157dae3809375709260 | ||
generated: "2024-10-11T17:04:46.473483814+02:00" |
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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