-
Notifications
You must be signed in to change notification settings - Fork 0
/
kontext.yaml
121 lines (107 loc) · 3.84 KB
/
kontext.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# global configuration options
global:
# target kubeconfig file for kontext, all sources will be merged into this file
# will be replaced each time a group/context is set
# see .backup for backup/restore options
kubeconfig: "$HOME/.config/kontext/kubeconfig.yaml"
# state configuration options
state:
# override the default state file path
file: "$HOME/.local/state/kontext/state.json"
# backup configuration settings
# backup targets:
# - .global.kubeconfig
backup:
# enable the backup, defaults to true
enabled: "true"
# override the default backup directory
directory: "$HOME/.local/share/kontext/backup"
# override the maximum number of kubeconfig files, that shall be kept by kontext
revisions: 10
# group configuration options
group:
# define groups
items:
# a group named "default"
- name: "default"
# all sources referred by this group
sources:
- "primary"
# context configuration options within this group
context:
# set a default context, that will be activated as soon as you switch to this group
default: "kind-kind"
selection:
# make this context the default selected option within the interactive dialogue
# note: you can use "-", as a value, to use the active context as the new selection default
default: "kind-kind"
# sort the interactive selection
# possible values, defaults to asc:
# - asc
# - desc
sort: "asc"
# another group called dev, that refers to the sources of multiple customers
- name: "dev"
# set a default context, that will be activated as soon as you switch to this group
# note: the context has to be available within this group
context:
default: "dev-01"
sources:
- "customer-a.dev"
- "customer-b.dev"
# another group called prod, that refers to a source called prod
- name: "prod"
sources:
- "prod"
# another group called testing, that refers to multiple sources
- name: "testing"
sources:
- "local"
- "private"
# interactive selection options for all groups
selection:
# make this group the default selected group
# note: you can use "-", as a value, to use the active group as the new selection default
default: "dev"
# sort the interactive selection
# possible values, defaults to asc:
# - asc
# - desc
sort: "asc"
# define all sources, that are used by groups
source:
items:
# a source called primary, that defines one include and one exclude glob
- name: "primary"
include:
- "$HOME/.config/kontext/**/*.yaml"
exclude:
- "$HOME/.config/kontext/**/*prod*.yaml"
# a source called customer-a.dev, that defines one include and one exclude glob
- name: "customer-a.dev"
include:
- "$HOME/.config/kontext/dev/customer-a/**/*.yaml"
exclude:
- "$HOME/.config/kontext/dev/**/*skip*.yaml"
# a source called customer-b.dev, that defines one include and one exclude glob
- name: "customer-b.dev"
include:
- "$HOME/.config/kontext/dev/customer-b/**/*.yaml"
exclude:
- "$HOME/.config/kontext/dev/**/*skip*.yaml"
# a source called prod, that defines one include and one exclude glob
- name: "prod"
include:
- "$HOME/.config/kontext/prod/**/*.yaml"
exclude:
- "$HOME/.config/kontext/prod/**/*skip*.yaml"
# a source called local, that defines three include and no exclude globs
- name: "local"
include:
- "$HOME/.config/kontext/orbatschow/**/*.yaml"
- "$HOME/.config/kontext/local/**/*.yaml"
- "$HOME/.config/kontext/kind/**/*.yaml"
# a source called local, that defines one include and no exclude glob
- name: "private"
include:
- "$HOME/.config/kontext/private/**/*.yaml"