-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
1c07fc0
commit 5709f71
Showing
9 changed files
with
779 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
applications/ |
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,25 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: sish-client | ||
namespace: traefik | ||
labels: | ||
app.kubernetes.io/name: "sish-client" | ||
app.kubernetes.io/component: edge | ||
app.kubernetes.io/part-of: autocloud | ||
data: | ||
config: | | ||
PubkeyAcceptedKeyTypes +ssh-rsa | ||
Host sishserver | ||
HostName target.link | ||
Port 2222 | ||
BatchMode yes | ||
IdentityFile ~/.ssh_keys/id_rsa | ||
IdentitiesOnly yes | ||
LogLevel ERROR | ||
ServerAliveInterval 10 | ||
ServerAliveCountMax 2 | ||
RemoteCommand sni-proxy=true | ||
RemoteForward myhost.target.link:443 traefik.traefik.svc:443 | ||
known_hosts: | | ||
[target.link]:2222 ssh-ed25519 AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAID+4/eqtPTLC18TE8ZP7NeF4ZP68/wnY2d7mhH/KVs79AAAABHNzaDo= |
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,62 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: traefik | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
destination: | ||
namespace: traefik | ||
server: https://kubernetes.default.svc | ||
project: default | ||
source: | ||
chart: traefik | ||
helm: | ||
parameters: [] | ||
values: | | ||
ingressClass: | ||
enabled: true | ||
isDefaultClass: true | ||
ingressRoute: | ||
dashboard: | ||
enabled: true | ||
providers: | ||
kubernetesCRD: | ||
allowCrossNamespace: true | ||
allowExternalNameServices: true | ||
kubernetesIngress: | ||
allowExternalNameServices: true | ||
publishedService: | ||
enabled: true | ||
logs: | ||
general: | ||
level: ERROR | ||
access: | ||
enabled: true | ||
tracing: | ||
instana: false | ||
gobalArguments: {} | ||
# BEWARE: use only for debugging | ||
additionalArguments: | ||
- --api.insecure=false | ||
ports: | ||
# BEWARE: use only for debugging | ||
# traefik: | ||
# expose: false | ||
web: | ||
redirectTo: websecure | ||
websecure: | ||
tls: | ||
enabled: true | ||
traefik: | ||
expose: true | ||
repoURL: https://helm.traefik.io/traefik | ||
targetRevision: "10.19.5" | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
ignoreDifferences: [] |
74 changes: 74 additions & 0 deletions
74
tests/multi-replacement/functions/multi-transformation.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,74 @@ | ||
apiVersion: builtin | ||
kind: LocalConfiguration | ||
metadata: | ||
name: configuration-map | ||
annotations: | ||
config.kaweezle.com/inject-local: "true" | ||
config.kubernetes.io/function: | | ||
exec: | ||
path: ../../krmfnbuiltin | ||
data: | ||
sish: | ||
server: target.link | ||
hostname: myhost.target.link | ||
host_key: AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAID+4/eqtPTLC18TE8ZP7NeF4ZP68/wnY2d7mhH/KVs79AAAABHNzaDo= | ||
traefik: | ||
dashboard_enabled: true | ||
expose: true | ||
--- | ||
apiVersion: builtin | ||
kind: ReplacementTransformer | ||
metadata: | ||
name: replacement-transformer | ||
annotations: | ||
config.kubernetes.io/prune-local: "true" | ||
config.kubernetes.io/function: | | ||
exec: | ||
path: ../../krmfnbuiltin | ||
replacements: | ||
- source: | ||
kind: LocalConfiguration | ||
fieldPath: data.sish.server | ||
targets: | ||
- select: | ||
kind: ConfigMap | ||
name: sish-client | ||
fieldPaths: | ||
- data.config.!!regex.^\s+HostName\s+(\S+)\s*$.1 | ||
- data.known_hosts.!!regex.^\[(\S+)\].1 | ||
- source: | ||
kind: LocalConfiguration | ||
fieldPath: data.sish.hostname | ||
targets: | ||
- select: | ||
kind: ConfigMap | ||
name: sish-client | ||
fieldPaths: | ||
- data.config.!!regex.^\s+RemoteForward\s+(\S+):.1 | ||
- source: | ||
kind: LocalConfiguration | ||
fieldPath: data.sish.host_key | ||
targets: | ||
- select: | ||
kind: ConfigMap | ||
name: sish-client | ||
fieldPaths: | ||
- data.known_hosts.!!regex.ssh-ed25519\s(\S+).1 | ||
- source: | ||
kind: LocalConfiguration | ||
fieldPath: data.traefik.dashboard_enabled | ||
targets: | ||
- select: | ||
kind: Application | ||
name: traefik | ||
fieldPaths: | ||
- spec.source.helm.values.!!yaml.ingressRoute.dashboard.enabled | ||
- source: | ||
kind: LocalConfiguration | ||
fieldPath: data.traefik.expose | ||
targets: | ||
- select: | ||
kind: Application | ||
name: traefik | ||
fieldPaths: | ||
- spec.source.helm.values.!!yaml.ports.traefik.expose |
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 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: sish-client | ||
namespace: traefik | ||
labels: | ||
app.kubernetes.io/name: "sish-client" | ||
app.kubernetes.io/component: edge | ||
app.kubernetes.io/part-of: autocloud | ||
data: | ||
config: | | ||
PubkeyAcceptedKeyTypes +ssh-rsa | ||
Host sishserver | ||
HostName holepunch.in | ||
Port 2222 | ||
BatchMode yes | ||
IdentityFile ~/.ssh_keys/id_rsa | ||
IdentitiesOnly yes | ||
LogLevel ERROR | ||
ServerAliveInterval 10 | ||
ServerAliveCountMax 2 | ||
RemoteCommand sni-proxy=true | ||
RemoteForward citest.holepunch.in:443 traefik.traefik.svc:443 | ||
known_hosts: | | ||
[holepunch.in]:2222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID+3abW2y3T5dodnI5O1Z/2KlIdH3bwnbGDvCFf13zlh |
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,60 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: traefik | ||
namespace: argocd | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
destination: | ||
namespace: traefik | ||
server: https://kubernetes.default.svc | ||
project: default | ||
source: | ||
chart: traefik | ||
helm: | ||
parameters: [] | ||
values: |- | ||
ingressClass: | ||
enabled: true | ||
isDefaultClass: true | ||
ingressRoute: | ||
dashboard: | ||
enabled: false | ||
providers: | ||
kubernetesCRD: | ||
allowCrossNamespace: true | ||
allowExternalNameServices: true | ||
kubernetesIngress: | ||
allowExternalNameServices: true | ||
publishedService: | ||
enabled: true | ||
logs: | ||
general: | ||
level: ERROR | ||
access: | ||
enabled: true | ||
tracing: | ||
instana: false | ||
gobalArguments: {} | ||
# BEWARE: use only for debugging | ||
additionalArguments: | ||
- --api.insecure=false | ||
ports: | ||
# BEWARE: use only for debugging | ||
# traefik: | ||
# expose: false | ||
web: | ||
redirectTo: websecure | ||
websecure: | ||
tls: | ||
enabled: true | ||
repoURL: https://helm.traefik.io/traefik | ||
targetRevision: "10.19.5" | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true | ||
ignoreDifferences: [] |
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