Feat/update kpt v1 simplified
This MR updates agentk
configuration to render with kpt
v1. Configuration is set in kpt-setter-configmap.yaml
and then rendered before applying to the cluster.
This branch is a simplified alternative to the bases/overlays layout in !610 (closed); it reduces resource configurations into one folder.
This enables a workflow where a package can be retrieved, kustomized, and then deployed per GitLab group (perhaps the same project as the agent config file??):
kpt pkg get {pkg}{version}
- (optional)
sed '/^ name-prefix: /s/:.*$/: "GitLabGroupName"/' kpt-setter-configmap.yaml
kpt fn render
echo -n "<agent token" > secrets/agent.token
kpt live init
kustomize build | kpt live apply
Thoughts @nagyv-gitlab?
Closes #205 (closed)
Edited by Kyle