# 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 kubeconfig: "$HOME/.config/kontext/kubeconfig.yaml" # state configuration options state: # override the default state file path file: "$HOME/.local/state/kontext/state.json" # groups configuration options groups: # 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 sources: 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"