Update Kustomize config commands

A recent refactor of the Kustomize config command [0] changed the config
subcommand to cfg. Since airshipctl has introduced a version of
Kustomize with the new subcommand, cfg, Treasuremap jobs are failing
because they still use Kustomize config.

This change updates kustomize config commands to kustomize cfg.

[0] 701c217791 (diff-73e268a15f17741962365907345f2ea7b20d8e2d19ec57efacb6067281b19b68)

Change-Id: I9eaac604c9eafdb6791e49716ea109906ddfe9f6
This commit is contained in:
Drew Walters 2020-10-23 14:23:04 +00:00
parent f6734365a0
commit e1a9137650
1 changed files with 5 additions and 2 deletions

View File

@ -10,12 +10,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# TODO(drewwalters96): Move this logic to an airshipctl role so breaking changes
# do not impact Treasuremap.
- name: get BareMetalHost objects
shell: |
set -e
kustomize build --enable_alpha_plugins \
{{ airship_config_manifest_directory }}/{{ airship_config_site_path }}/{{ path }} |
kustomize config grep "kind=BareMetalHost"
kustomize cfg grep "kind=BareMetalHost"
register: bmh_command
failed_when: "bmh_command.stdout == ''"
environment:
@ -30,7 +33,7 @@
set -e
kustomize build --enable_alpha_plugins \
{{ airship_config_manifest_directory }}/{{ airship_config_site_path }}/{{ path }} |
kustomize config grep "metadata.name={{ item.spec.networkData.name }}"
kustomize cfg grep "metadata.name={{ item.spec.networkData.name }}"
register: netdata_command
failed_when: "netdata_command.stdout == ''"
environment: