suxess-it / sx-cnp-oss

7 stars 1 forks source link

[backstage] migrate existing templates to team onboarding approach #531

Closed phac008 closed 2 weeks ago

phac008 commented 1 month ago

due to outcome of #108 existing templates have to be adapted to new approach to validate functionality.

phac008 commented 2 weeks ago

startet with vm template - currently error: admission webhook "virtualmachine-validator.kubevirt.io" denied the request: Authorization failed, message is: User system:serviceaccount:team1-cc:default has insufficient permissions in clone source namespace kubevirt

phac008 commented 2 weeks ago

https://github.com/suxess-it/sx-cnp-oss/commit/76cf53d25fa8dc50a909b636c54bf2c911903e1f

  message: >-
    failed to create virtual machine pod: Pod "virt-launcher-cc-7wpcm" is
    invalid: spec.containers[0].resources.requests: Invalid value:
    "4557111297": must be less than or equal to memory limit of 1Gi

-> default-limitrange

phac008 commented 2 weeks ago

@jkleinlercher - for new namespaces the default-limitranges are set by policy - for VMs (virt-launcher-pod)I need more resources. how is it planned that I can exclude this?

EDIT: fix myself by adding limits to template...

phac008 commented 2 weeks ago

migrate onboarding - add repo creation for team-apps: https://github.com/suxess-it/sx-cnp-oss/pull/606

phac008 commented 2 weeks ago

https://github.com/suxess-it/sx-cnp-oss/pull/608 remove old template and app-of-apps repo

phac008 commented 2 weeks ago

finished cleanup, did some tests - LGN