Skip to content

Commit

Permalink
Support rendering of upstream Kustomize (#134)
Browse files Browse the repository at this point in the history
Support rendering of upstream Kustomize
  • Loading branch information
thobens authored Nov 28, 2024
1 parent a9997b1 commit e087c04
Show file tree
Hide file tree
Showing 90 changed files with 2,657 additions and 2,548 deletions.
34 changes: 19 additions & 15 deletions class/control-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,40 @@ parameters:
- control-api/component/main.jsonnet
input_type: jsonnet
output_path: control-api/
- input_paths:
- control-api/component/api-server.jsonnet
input_type: jsonnet
output_path: control-api/01_api_server/
- input_paths:
- control-api/component/api-controller.jsonnet
input_type: jsonnet
output_path: control-api/02_api_controller/

- input_paths:
- control-api/crds/${control_api:images:control-api:tag}/
output_path: control-api/
input_type: copy
output_type: yaml
- input_paths:
- ${_base_directory}/component/control-api.jsonnet
input_type: jsonnet
output_path: ${_base_directory}/manifests/control-api
output_type: yaml
- input_type: external
output_path: .
input_paths:
- ${_kustomize_wrapper}
env_vars:
INPUT_DIR: ${_base_directory}/manifests/control-api
args:
- \${compiled_target_dir}/control-api/20_kustomize
- input_paths:
- control-api/component/webhook.jsonnet
input_type: jsonnet
output_path: control-api/30_webhook/

# Rendering the cloud agent rbac and service accounts using kustomize manifests from the agent repo.
- input_paths:
- ${_base_directory}/component/cloud-agent-rbac.jsonnet
input_type: jsonnet
output_path: ${_base_directory}/cloud-agent-rbac
output_path: ${_base_directory}/manifests/cloud-agent-rbac
output_type: yaml
- input_type: external
output_path: .
input_paths:
- ${_kustomize_wrapper}
env_vars:
INPUT_DIR: ${_base_directory}/cloud-agent-rbac
INPUT_DIR: ${_base_directory}/manifests/cloud-agent-rbac
args:
- \${compiled_target_dir}/control-api/90_cloud_agent_rbac
- input_paths:
- ${_base_directory}/cloud-agent-rbac
input_type: remove
output_path: .
5 changes: 5 additions & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ parameters:

secrets: {}

manifests_version: ${control_api:images:control-api:tag}

kustomize_input:
namespace: ${control_api:namespace}

images:
control-api:
registry: ghcr.io
Expand Down
163 changes: 0 additions & 163 deletions component/api-controller.jsonnet

This file was deleted.

Loading

0 comments on commit e087c04

Please sign in to comment.