move encryption-provider.yaml to LUKS volume

This code copies '/etc/kubernetes/encryption-provider.yaml'
file to LUKS volume and creates symlink in /etc/kubernetes/
directory. This is required to support the patch-back.

Test Plan:
    PASS: build-pkgs -c -p luks-fs-mgr
    PASS: build-image
    PASS: Steps followed to test
          - Deploy ISO with 22.12
          - Copy the required binaries luks-fs-mgr, .service and
            conf files
          - Rebooted the system
          Result after system reboot
          - luks-fs-mgr.service gets active and running
          - luks-fs-mgr.service creates the luksvolume
          - Creates the necessary dir structure on the luks
            volume /var/luks/stx/luks_fs/controller/etc/kubernetes/
          - encryption-provider.yaml file gets copied in the
            directory
          - Symlink created for the file in
            /etc/kubernetes/encryption-provider.yaml file

Story: 2010873
Task: 49239

Change-Id: Icc141a42397423907edce73db45e60e0608efc7d
Signed-off-by: Harshad sonde <harshad.sonde@windriver.com>
This commit is contained in:
Harshad sonde 2023-12-12 08:31:43 -05:00 committed by Jagatguru Prasad Mishra
parent b82575b03c
commit d602b8ad0e

File diff suppressed because it is too large Load Diff