Monday, 2021-02-22

*** jhesketh has quit IRC10:37
*** jhesketh has joined #airshipit10:37
*** raildo has joined #airshipit12:46
*** uzumaki has joined #airshipit13:11
*** raildo_ has joined #airshipit13:43
*** raildo has quit IRC13:46
*** uzumaki has quit IRC13:52
airship-irc-bot3<sirishagopigiri> Hi Team, I would like to request some reviews on these PSs:  https://review.opendev.org/c/airship/hostconfig-operator/+/775332 https://review.opendev.org/c/airship/hostconfig-operator/+/773389 Thank you in advance!14:31
airship-irc-bot3<ih616h> Good morning team. Could I get someone to take a look at Airship in a Pod? https://review.opendev.org/c/airship/airshipctl/+/73975314:35
airship-irc-bot3<ih616h> thanks!14:35
*** raildo__ has joined #airshipit15:03
*** raildo_ has quit IRC15:06
*** raildo_ has joined #airshipit15:31
*** raildo__ has quit IRC15:34
*** raildo_ is now known as raildo15:55
*** uzumaki has joined #airshipit16:13
airship-irc-bot3<vetbijaya> Hello team, Can I get some reviews on these PS's related to phase validation: https://review.opendev.org/c/airship/airshipctl/+/763260 -> cmd changes https://review.opendev.org/c/airship/airshipctl/+/763304 -> pkg changes https://review.opendev.org/c/airship/airshipctl/+/763300 -> k8s applier pkg changes https://review.opendev.org/c/airship/airshipctl/+/763265 -> clusterctl pkg changes16:31
airship-irc-bot3<sidney.shiba> Hello team, can I get the patchset https://review.opendev.org/c/airship/charts/+/775271 reviewed? Merging this Dex charts patchset will allow others to follow suite.16:40
airship-irc-bot3<scott> has anyone encountered this error in airshipctl?17:06
airship-irc-bot3<scott> ```TASK [airshipctl-run-script : Run script ./tools/deployment/24_build_images.sh] ******************************************************** fatal: [primary]: FAILED! => {     "changed": true,     "cmd": "set -xe;\n./tools/deployment/24_build_images.sh\n",     "delta": "0:03:31.495754",     "end": "2021-02-22 11:04:06.662703",     "rc": 1,     "start": "2021-02-22 11:00:35.166949" }  STDOUT:  Build phase: bootstrap-iso   STDERR:  +17:06
airship-irc-bot3./tools/deployment/24_build_images.sh + export USER_NAME=root + USER_NAME=root + IMAGE_DIR=/srv/images + CLEANUP_SERVE_DIR=false + SITE_NAME=test-site + IMAGE_PHASES=bootstrap-iso + sudo rm -rf /srv/images + sudo mkdir -p /srv/images + sudo chmod -R 755 /srv/images + sudo chown -R root /srv/images + unset IFS + for phase in $IMAGE_PHASES + echo 'Build phase: bootstrap-iso' + airshipctl phase run bootstrap-iso --debug gpg: keybox17:06
airship-irc-bot3'/tmp/pubring.kbx' created gpg: /tmp/trustdb.gpg: trustdb created gpg: key 3D16CEE4A27381B4: public key "SOPS Functional Tests Key 1 (https://github.com/mozilla/sops/) <secops@mozilla.com>" imported gpg: key 3D16CEE4A27381B4: secret key imported gpg: Total number processed: 1 gpg:               imported: 1 gpg:       secret keys read: 1 gpg:   secret keys imported: 1 gpg: keybox '/tmp/pubring.kbx' created gpg: /tmp/trustdb.gpg: trustdb17:06
airship-irc-bot3created gpg: key 3D16CEE4A27381B4: public key "SOPS Functional Tests Key 1 (https://github.com/mozilla/sops/) <secops@mozilla.com>" imported gpg: key 3D16CEE4A27381B4: secret key imported gpg: Total number processed: 1 gpg:               imported: 1 gpg:       secret keys read: 1 gpg:   secret keys imported: 1 gpg: keybox '/tmp/pubring.kbx' created gpg: /tmp/trustdb.gpg: trustdb created gpg: key 3D16CEE4A27381B4: public key "SOPS Functional17:06
airship-irc-bot3Tests Key 1 (https://github.com/mozilla/sops/) <secops@mozilla.com>" imported gpg: key 3D16CEE4A27381B4: secret key imported gpg: Total number processed: 1 gpg:               imported: 1 gpg:       secret keys read: 1 gpg:   secret keys imported: 1 gpg: keybox '/tmp/pubring.kbx' created gpg: /tmp/trustdb.gpg: trustdb created gpg: key 3D16CEE4A27381B4: public key "SOPS Functional Tests Key 1 (https://github.com/mozilla/sops/)17:06
airship-irc-bot3<secops@mozilla.com>" imported gpg: key 3D16CEE4A27381B4: secret key imported gpg: Total number processed: 1 gpg:               imported: 1 gpg:       secret keys read: 1 gpg:   secret keys imported: 1 [airshipctl] 2021/02/22 11:00:46 opendev.org/airship/airshipctl@/pkg/cluster/clustermap/map.go:64: cluster  is not defined in cluster map &{{ClusterMap airshipit.org/v1alpha1} {main-map      0 0001-01-01 00:00:00 +0000 UTC <nil> <nil>17:06
airship-irc-bot3map[airshipit.org/deploy-k8s:false] map[config.kubernetes.io/path:clustermap_main-map.yaml] [] []  []} map[ephemeral-cluster:0xc000da3d10 target-cluster:0xc000da3d60]} gpg: keybox '/tmp/pubring.kbx' created gpg: /tmp/trustdb.gpg: trustdb created gpg: key 3D16CEE4A27381B4: public key "SOPS Functional Tests Key 1 (https://github.com/mozilla/sops/) <secops@mozilla.com>" imported gpg: key 3D16CEE4A27381B4: secret key imported gpg: Total number17:06
airship-irc-bot3processed: 1 gpg:               imported: 1 gpg:       secret keys read: 1 gpg:   secret keys imported: 1 gpg: keybox '/tmp/pubring.kbx' created gpg: /tmp/trustdb.gpg: trustdb created gpg: key 3D16CEE4A27381B4: public key "SOPS Functional Tests Key 1 (https://github.com/mozilla/sops/) <secops@mozilla.com>" imported gpg: key 3D16CEE4A27381B4: secret key imported gpg: Total number processed: 1 gpg:               imported: 1 gpg:       secret17:06
airship-irc-bot3keys read: 1 gpg:   secret keys imported: 1 {"Message":"starting ISO generation","Operation":"IsogenStart","Timestamp":"2021-02-22T11:00:51.38742413-06:00","Type":"IsogenEvent"} [airshipctl] 2021/02/22 11:04:05 opendev.org/airship/airshipctl@/pkg/bootstrap/isogen/command.go:96: Creating cloud-init for ephemeral K8s [airshipctl] 2021/02/22 11:04:05 opendev.org/airship/airshipctl@/pkg/bootstrap/isogen/command.go:120: Running default container17:06
airship-irc-bot3command. Mounted dir: [/srv/images:/config] [airshipctl] 2021/02/22 11:04:06 opendev.org/airship/airshipctl@/pkg/events/processor.go:60: Received error on event channel {Image List Error. No images filtered} Error events received on channel, errors are: [Image List Error. No images filtered]   MSG:  non-zero return code  PLAY RECAP17:06
airship-irc-bot3***************************************************************************************************************************** primary                    : ok=7    changed=5    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   ```17:06
airship-irc-bot3<craig.anderson> @mattmceuen when available if you can check your email and see if you're able to create a tag for the qcow container in quay, that will help us. thx17:09
airship-irc-bot3<kk6740> @craig.anderson can you `docker images` ?17:13
airship-irc-bot3<kk6740> sorry, wrong person tagged17:13
airship-irc-bot3<kk6740> @scott could u run `docker images` ?17:13
airship-irc-bot3<scott> @kk674017:14
airship-irc-bot3<scott> ```sudo docker images [sudo] password for scott:  REPOSITORY                                  TAG                 IMAGE ID            CREATED             SIZE quay.io/airshipit/templater                 latest              c3af81405c71        13 minutes ago      30MB <none>                                      <none>              d3d6687216b9        13 minutes ago      2.68GB quay.io/airshipit/replacement-transformer   latest17:14
airship-irc-bot3    2508a63cf373        13 minutes ago      29.1MB <none>                                      <none>              65ac0c0c4e5c        13 minutes ago      2.68GB quay.io/airshipit/airshipctl                latest              47cba5b9427d        14 minutes ago      79.2MB <none>                                      <none>              4c4245f69f14        14 minutes ago      3GB <none>                                      <none>17:14
airship-irc-bot388128b4a4120        16 minutes ago      30MB <none>                                      <none>              f3bc9db6e36b        16 minutes ago      29.1MB <none>                                      <none>              a6cd08021ecc        16 minutes ago      79.2MB <none>                                      <none>              3ad9811d6cf4        2 days ago          30MB <none>                                      <none>17:14
airship-irc-bot3d488113dfbed        2 days ago          2.68GB <none>                                      <none>              b44b5fbb5f25        2 days ago          29.1MB <none>                                      <none>              97f4eec217f3        2 days ago          2.68GB <none>                                      <none>              afa48ac21148        2 days ago          79.2MB <none>                                      <none>17:14
airship-irc-bot33f1a5f835f0f        2 days ago          3GB <none>                                      <none>              50f411676b6b        2 days ago          30MB <none>                                      <none>              585694248522        2 days ago          29.1MB <none>                                      <none>              d97d1603e7e1        2 days ago          79.2MB <none>                                      <none>17:14
airship-irc-bot378d45a616514        2 days ago          30MB <none>                                      <none>              e7c5c511b97e        2 days ago          2.68GB <none>                                      <none>              8ae4a9f2db29        2 days ago          29.1MB <none>                                      <none>              7d850b28fc39        2 days ago          2.68GB <none>                                      <none>17:14
airship-irc-bot352908a829cc6        2 days ago          79.2MB <none>                                      <none>              5f30a17cdd41        2 days ago          3GB <none>                                      <none>              3c93e4117fac        2 days ago          30MB <none>                                      <none>              278ed83a09be        2 days ago          2.68GB <none>                                      <none>17:14
airship-irc-bot3a6e776eb3e44        2 days ago          29.1MB <none>                                      <none>              9eb64dc60989        2 days ago          2.68GB <none>                                      <none>              43dceccbff6d        2 days ago          3GB <none>                                      <none>              60fc11f8133c        2 days ago          79.2MB <none>                                      <none>17:14
airship-irc-bot3bad960c7defb        3 days ago          30MB <none>                                      <none>              dd7e2d2b3197        3 days ago          2.68GB <none>                                      <none>              f064b3ed3622        3 days ago          29.1MB <none>                                      <none>              76ebff4d5930        3 days ago          2.68GB <none>                                      <none>17:14
airship-irc-bot31bae036787c9        3 days ago          79.2MB <none>                                      <none>              59819d39b622        3 days ago          3GB gcr.io/kpt-fn-contrib/sops                  v0.1.0              a21f29cda853        2 weeks ago         302MB gcr.io/gcp-runtimes/go1-builder             1.13                f60ed9d4c80b        4 months ago        1.01GB alpine                                      3.12.017:14
airship-irc-bot3a24bb4013296        8 months ago        5.57MB```17:14
airship-irc-bot3<kk6740> give me a second17:16
airship-irc-bot3<kk6740> can u do `airshipctl phase render --source config`17:16
airship-irc-bot3<kk6740> its going to give a lot of yamls17:16
airship-irc-bot3<kk6740> `airshipctl phase render --source config -k IsoConfiguration` i think like this, will be more informative17:18
airship-irc-bot3<scott> @kk6740 ```[ERROR] Sops decrypt command results in error for apiVersion: airshipit.org/v1alpha1 ephemeralClusterCa:   ...  Failed to get the data key required to decrypt the SOPS file.  Group 0: FAILED   FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4: FAILED     - | could not decrypt data key with PGP key:       | golang.org/x/crypto/openpgp error: Could not load secring:       | open /tmp/secring.gpg: no such file or directory; GPG binary17:18
airship-irc-bot3     | error: exit status 2  Recovery failed because no master key was able to decrypt the file. In order for SOPS to recover the file, at least one key has to be successful, but none were.  accumulating resources: 2 errors occurred:         * accumulateFile error: "accumulating resources from '../kubeconfig': '/tmp/airship/airshipctl/manifests/site/test-site/kubeconfig' must resolve to a file"         * accumulateDirector error: "recursed17:18
airship-irc-bot3accumulation of path '/tmp/airship/airshipctl/manifests/site/test-site/kubeconfig': accumulating resources: 2 errors occurred:\n\t* accumulateFile error: \"accumulating resources from '../target/catalogues': '/tmp/airship/airshipctl/manifests/site/test-site/target/catalogues' must resolve to a file\"\n\t* accumulateDirector error: \"recursed accumulation of path '/tmp/airship/airshipctl/manifests/site/test-site/target/catalogues':17:18
airship-irc-bot3accumulating resources: 2 errors occurred:\\n\\t* accumulateFile error: \\\"accumulating resources from '../generator/results': '/tmp/airship/airshipctl/manifests/site/test-site/target/generator/results' must resolve to a file\\\"\\n\\t* accumulateDirector error: \\\"recursed accumulation of path '/tmp/airship/airshipctl/manifests/site/test-site/target/generator/results': couldn't execute function: exit status 1 \\\"\\n\\n\"\n\n"```17:18
airship-irc-bot3<aodinokov> @scott have you exported the keys before running phase?17:21
airship-irc-bot3<scott> yes.17:22
airship-irc-bot3<scott> you mean this step?17:22
airship-irc-bot3<scott> ```curl -fsSL -o /tmp/key.asc https://raw.githubusercontent.com/mozilla/sops/master/pgp/sops_functional_tests_key.asc - export SOPS_IMPORT_PGP="$(cat /tmp/key.asc)" - export SOPS_PGP_FP="FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4"```17:22
airship-irc-bot3<aodinokov> yes17:22
airship-irc-bot3<kk6740> can u run : `echo $SOPS_IMPORT_PGP`17:22
airship-irc-bot3<scott> i’ll run it again to double check.17:23
airship-irc-bot3<scott> ```echo $SOPS_IMPORT_PGP -----BEGIN PGP PRIVATE KEY BLOCK----- lQOYBF1oQV0BCAC1iFfE7H3uu0hbWbRYVMoz5zZ91ACHETCOMVxN8GOG4SV0l8aQ wmK9QWkYxhi52LnicVD3D7Uy75+J3zkvEDQ15C0AZ8UHXp4JlSQuXpFhrOhfYUF/ 6pr/QexT+hQjOacvY4qfnj4xKa/AGdv5vPIygtQumE6r3GhEVAxQ1GSwtCWSU3Zl 3Uqf7S8kDvJTemtR2UkVfpXcMd4AmMKgt7fVhPO8eFotqTLPvz/iClzER+q61fLA d1rP9YlmY46MJp/PffPicWdJiKv2i6ynKcIwkrQyP6V2ZzYi/gAhNJst3ZlMfsiN17:23
airship-irc-bot3ekCtcow9Bn44uxW3U8W02FNQSNyn6V6QPDIXABEBAAEAB/0Z8kQSlkzE97QhXm0g /PQuaVCdY9UJeSMBXTvDZhBhAcLf6yZLStq1uz4sIiWm6+ZcX8mXQ9b90fMceoaK sVxiYYaEcCXgu5zcuMTu8xRWK30bzjkARrDjEByZFNLrr/yzO3KKWvdVAToou77N xLxct4df+46vEMs/DOulDUkxBOjlkprlq8xSG/6vuo7rJKUylsS4s5+y+EJCfm0m 8C94IIOt42ANObDUziUHCFNhCKSUs92rL7HXfcMG6L16UrSpJ3yLNvTI34PgRydv ppu6DAFNeqsJ6oINSWXEqjfMHK7Ly9oyF2bkB2VK...```17:23
airship-irc-bot3<kk6740> are u using masteR?17:24
airship-irc-bot3<scott> hmm…. not sure what that means.17:24
airship-irc-bot3<sirajudeen.yasin> v217:24
airship-irc-bot3<scott> oh…. git branch?17:25
airship-irc-bot3<scott> yes, I’m on master17:25
airship-irc-bot3<sirajudeen.yasin> sorry wrong window..pls ignore my msg17:25
airship-irc-bot3<aodinokov> @scott could you please post the whole logs where sops stated working (it typically shows about gpg improting keys...) ?17:28
airship-irc-bot3<aodinokov> there are 2 typical issues related to sops and it's only possible to say anything if you provide the whole log starting the point where the keys are getting imported17:29
airship-irc-bot3<scott> @aodinokov Give me a few minutes… its hard to copy paste those logs from my VM, need to mount a drive to share the output.17:31
airship-irc-bot3<scott> @aodinokov @kk674018:50
airship-irc-bot3<aodinokov> @scott in this out I don't see such issue19:09
airship-irc-bot3<aodinokov> you've got something else :slightly_smiling_face:19:09
airship-irc-bot3<aodinokov> ```{"Message":"starting ISO generation","Operation":"IsogenStart","Timestamp":"2021-02-22T12:44:31.450576076-06:00","Type":"IsogenEvent"} [airshipctl] 2021/02/22 12:47:33 opendev.org/airship/airshipctl@/pkg/bootstrap/isogen/command.go:96: Creating cloud-init for ephemeral K8s [airshipctl] 2021/02/22 12:47:33 opendev.org/airship/airshipctl@/pkg/bootstrap/isogen/command.go:120: Running default container command. Mounted dir:19:09
airship-irc-bot3[/srv/images:/config] [airshipctl] 2021/02/22 12:47:34 opendev.org/airship/airshipctl@/pkg/events/processor.go:60: Received error on event channel {Image List Error. No images filtered} Error events received on channel, errors are: [Image List Error. No images filtered]```19:09
airship-irc-bot3<rishabh.k.jain> Hi , Need some some core reviews here :slightly_smiling_face: https://review.opendev.org/c/airship/airshipctl/+/77242519:27
airship-irc-bot3<rishabh.k.jain> Hi, I have not tried this either. I will test it, and see if I can help.19:28
airship-irc-bot3<scott> @aodinokov hmmm…. i just reran it, but I had to reboot several times to get shared drive to work… i wonder what changed.20:01
airship-irc-bot3<kk6740> @scott can u run the command i’ve asked now20:40
airship-irc-bot3<kk6740> `airshipctl phase render --source config`20:41
airship-irc-bot3<sidney.shiba> I am setting up a dev env on my new laptop and getting this error when invoking `kustomize` with `Replacement` transformer: `$ kustomize build --enable_alpha_plugins .` `Error: plugin /home/sx3394/.config/kustomize/plugin/airshipit.org/v1alpha1/replacementtransformer/ReplacementTransformer fails to load: plugin.Open("/home/sx3394/.config/kustomize/plugin/airshipit.org/v1alpha1/replacementtransformer/ReplacementTransformer.so"):21:01
airship-irc-bot3realpath failed`21:01
airship-irc-bot3<aodinokov> @sidney.shiba what version of kustomize?21:02
airship-irc-bot3<sidney.shiba> @aodinokov `$ kustomize version` `Version: {Version:unknown GitCommit:$Format:%H$ BuildDate:1970-01-01T00:00:00Z GoOs:linux GoArch:amd64}`21:04
airship-irc-bot3<aodinokov> self built? :slightly_smiling_face:21:04
airship-irc-bot3<sidney.shiba> no21:04
airship-irc-bot3<aodinokov> I noticed yesterday that the newest versions of kustomize are less tolerant to yaml issues.21:05
airship-irc-bot3<aodinokov> e.g. if you have dulicated field in replacemnt config 3.8.x will be ok with that21:05
airship-irc-bot3<aodinokov> but 3.9.x will fail with message that isn't related to the root cause21:06
airship-irc-bot3<aodinokov> something like you got21:06
airship-irc-bot3<sidney.shiba> ok, let me re-install kustomize v3.8.x21:06
airship-irc-bot3<scott> @kk6740 i’m thinking it may have to do with running out of disk space… i’m tracking that down first.21:21
airship-irc-bot3<aodinokov> Scott it may happen, I saw couple of times when container said that it can't create files with keyrings in /tmp... in that case of course it can't decrypt21:27
airship-irc-bot3<scott> @aodinokov I extended my disk size in VMWARE but it only created a new empty partition for me…. so I still had only 20GB to work with.21:32
airship-irc-bot3<sidney.shiba> @scott are you referring to VBox VM? If so, increasing the size of working disk is not an easy task. Mine has 60GB and already running out of space.21:34
airship-irc-bot3<sirajudeen.yasin> @scott, I had similar issue in the past.. i managed to extend the disk using growdisk21:50
airship-irc-bot3<scott> @sirajudeen.yasin Growdisk sounds great, do they have something to help with my small house?  GrowHouse?21:55
airship-irc-bot3<sirajudeen.yasin> sorry, growpart .. from my logs sudo growpart /dev/sda 2 CHANGED: partition=2 start=4096 old: size=83879936 end=83884032 new: size=125824991,end=125829087 sudo resize2fs /dev/sda2 resize2fs 1.44.1 (24-Mar-2018) Filesystem at /dev/sda2 is mounted on /; on-line resizing required old_desc_blocks = 5, new_desc_blocks = 8 The filesystem on /dev/sda2 is now 15728123 (4k) blocks long.21:55
airship-irc-bot3<scott> @sirajudeen.yasin I will check it out!21:55
airship-irc-bot3<sidney.shiba> Upgraded `kustomize` to `v4.0.1` and it does not find the alpha plugins. Where is the `Replacement transformer` plugins located?22:01
airship-irc-bot3<sidney.shiba> Looked at plugin home but nothing there `$ echo $KUSTOMIZE_PLUGIN_HOME` `/home/sx3394/.airship/kustomize-plugins`22:03
airship-irc-bot3<sidney.shiba> Tried with `v3.8.10` and same results: `$ ~/Downloads/kustomize version` `{Version:kustomize/v3.8.10 GitCommit:1f1304194d24913b8cfe8a026bfcde38d91b6f8c BuildDate:2021-02-07T16:00:36Z GoOs:linux GoArch:amd64}`  `$ ~/Downloads/kustomize build --enable_alpha_plugins .` `2021/02/22 16:08:55 unable to find plugin root - tried: ('/home/sx3394/.airship/kustomize-plugins'; homed in $KUSTOMIZE_PLUGIN_HOME), ('kustomize/plugin'; homed in22:11
airship-irc-bot3$XDG_CONFIG_HOME), ('/home/sx3394/.config/kustomize/plugin'; homed in default value of $XDG_CONFIG_HOME), ('/home/sx3394/kustomize/plugin'; homed in home directory)`22:11
airship-irc-bot3<aodinokov> @sidney.shiba try KUSTOMIZE_PLUGIN_HOME=$(pwd) kustomize build <dir>22:18
airship-irc-bot3<aodinokov> it works for me when I see this ```omed in $KUSTOMIZE_PLUGIN_HOME), ('kustomize/plugin'; homed in $XDG_CONFIG_HOME), ('/home/sx3394/.config/kustomize/plugin'; homed in default value of $XDG_CONFIG_HOME), ('/home/sx3394/kustomize/plugin'; homed in home directory)```22:18
airship-irc-bot3<sidney.shiba> Is in your case `Replacement` transformer involved?22:21
airship-irc-bot3<aodinokov> we don't use KUSTOMIZE_PLUGIN_HOME per say22:21
airship-irc-bot3<aodinokov> we're using krm-based plugins22:21
airship-irc-bot3<aodinokov> that are docker images22:21
airship-irc-bot3<aodinokov> that's why you may specify any catalog as plugin home22:21
airship-irc-bot3<sidney.shiba> Here is the list of docker images I have and the transformer is one of them. `$ docker images` `REPOSITORY                                  TAG                 IMAGE ID            CREATED             SIZE` `quay.io/sshiba/helm-chart-collator          latest              c9bb994574cc        5 days ago          68.2MB` `quay.io/airshipit/templater                 latest              c5c63e76f5ef        2 weeks ago         30.1MB`22:24
airship-irc-bot3`quay.io/airshipit/replacement-transformer   latest              2d3f2513d84c        2 weeks ago         29.1MB` `chartmuseum/chartmuseum                     latest              88fd3d42562c        4 weeks ago         68.2MB` `ubuntu                                      focal               f63181f19b2f        4 weeks ago         72.9MB` `kindest/node                                <none>              094599011731        4 weeks ago22:24
airship-irc-bot31.17GB` `hello-world                                 latest              bf756fb1ae65        13 months ago       13.3kB` What do I need to do so `kustomize` picks the image?22:24
airship-irc-bot3<aodinokov> I see you already have `quay.io/airshipit/replacement-transformer`22:26
airship-irc-bot3<aodinokov> how krm works - it just runs docker run ..... <plugin image>22:27
airship-irc-bot3<aodinokov> that means that it will download it22:27
airship-irc-bot3<sidney.shiba> `kustomize` does not know where it is. It might be some configuration missing in my new dev env.22:28
airship-irc-bot3<aodinokov> https://github.com/airshipit/airshipctl/blob/master/manifests/site/test-site/kubeconfig/update-target.yaml#L622:28
airship-irc-bot3<aodinokov> here how your configuration of replacement plugin should look like22:28
airship-irc-bot3<aodinokov> there is a speciall annotation for that22:29
airship-irc-bot3<aodinokov> if you don't have that annotation - in that case kustomize falls back to the classical plugins22:29
airship-irc-bot3<sidney.shiba> I have it working on my old dev env. It does not work on my new dev env.22:29
airship-irc-bot3<aodinokov> previous version of replacement plugins were in airshipctl itself ... the latest version of airshioctl doesn't have that functionaltiy22:30
airship-irc-bot3<sidney.shiba> I am just testing so invoking `kustomize` directly. Not through `airshipctl`.22:32
airship-irc-bot3<aodinokov> I understand, I mean that before October if you run kustomize and use replacement plugin it called implicitly airshipctl22:33
airship-irc-bot3<sidney.shiba> so, what do I need to do so the `Replacement` transformer is "exposed" to `kustomize`?22:35
airship-irc-bot3<aodinokov> you will need to update all of your replacemnt transformed config with annotation ```apiVersion: airshipit.org/v1alpha1 kind: ReplacementTransformer metadata:   name: k8scontrol-cluster-replacements   annotations:     config.kubernetes.io/function: |-       container:         image: quay.io/airshipit/replacement-transformer:latest```22:36
airship-irc-bot3<aodinokov> like we did in all airshipctl manifests some time ago22:36
airship-irc-bot3<sidney.shiba> This is what I have: `apiVersion: airshipit.org/v1alpha1` `kind: ReplacementTransformer` `metadata:`   `annotations:`     `config.kubernetes.io/function: |-`       `container:`         `image: quay.io/airshipit/replacement-transformer:latest`   `name: cluster-controlplane-replacements` `replacements:`   `# Kind Cluster replacements`   `- source:`       `objref:`         `name: cluster-catalogue`       `fieldref:22:37
airship-irc-bot3kubernetes.clusterName`     `target:`       `objref:`         `kind: Cluster`       `fieldrefs: ["metadata.name"]`22:37
airship-irc-bot3<aodinokov> it looks ok22:37
airship-irc-bot3<kk6740> @sidney.shiba what is current error u are getting?22:40
airship-irc-bot3<kk6740> because i see two errors22:40
airship-irc-bot3<sidney.shiba> I missed the image attribute in the `yaml` file. Let me troubleshoot more and figure out why `kustomize` is looking for the transformer somewhere else.22:41
airship-irc-bot3<kk6740> i think you need delete this objects22:41
airship-irc-bot3<sidney.shiba> Which objects?22:44
airship-irc-bot3<sidney.shiba> This is the error message: `$ kustomize build --enable-alpha-plugins .` `2021/02/22 16:43:39 unable to find plugin root - tried: (''; homed in $KUSTOMIZE_PLUGIN_HOME), ('kustomize/plugin'; homed in $XDG_CONFIG_HOME), ('/home/sx3394/.config/kustomize/plugin'; homed in default value of $XDG_CONFIG_HOME), ('/home/sx3394/kustomize/plugin'; homed in home directory)`22:46
airship-irc-bot3<sidney.shiba> It seems it is not picking the annotations where it contains the image for the transformer.22:47
airship-irc-bot3<aodinokov> @sidney.shiba > try > KUSTOMIZE_PLUGIN_HOME=$(pwd) kustomize build --enable_alpha_plugins <dir>22:48
airship-irc-bot3<aodinokov> > it works for me when I see this > omed in $KUSTOMIZE_PLUGIN_HOME), ('kustomize/plugin'; homed in $XDG_CONFIG_HOME), ('/home/sx3394/.config/kustomize/plugin'; homed in default value of $XDG_CONFIG_HOME), ('/home/sx3394/kustomize/plugin'; homed in home directory)22:48
airship-irc-bot3<kk6740> should work, u had different error with .so missing22:49
airship-irc-bot3<sidney.shiba> Yeah, it works. This is interesting.22:50
airship-irc-bot3<sidney.shiba> It works with kustomize 4.0.1. Note that the option now uses dash (`--enable-alpha-plugins`) instead of underscore (`--enable_alpha_plugins`): `$ KUSTOMIZE_PLUGIN_HOME=$(pwd) kustomize build --enable-alpha-plugins .` `apiVersion: v1` `data:`   `dex-cert:`     `crt: ...`22:56
airship-irc-bot3<sidney.shiba> Hi all, another question on `Replacement` transformer. I did a test showing that the `Replacement` transformer is `base64` encoding secret data field for objects of `kind: Secret`.  Is it possible to NOT `base64` encode it as I am already replacing with a `base64` encoded certificates? For example, I don't want that the value for `dex.tls.crt` is `base64` encoded before replacing it in `data.dex-cert` field. See below: `...`23:25
airship-irc-bot3`- source:`       `objref:`         `name: cluster-catalogue`       `fieldref: dex.tls.crt`     `target:`       `objref:`         `kind: Secret`         `name: target-cluster-control-plane-dex-crt`       `fieldrefs: ["data.dex-cert"]`23:25

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!