update syntax for kustomize with recent uplift
* updated the syntax for enable plugins with recent uplift of kustomize version * Had to uplift the airshipctl version as well Change-Id: I0c637603013adc2594c39cbea7cc07f3937cf3ee
This commit is contained in:
parent
fd54957eab
commit
7e4710e9b3
@ -32,8 +32,8 @@ template: |
|
|||||||
name: generated-secrets
|
name: generated-secrets
|
||||||
annotations:
|
annotations:
|
||||||
config.kubernetes.io/path: secrets.yaml
|
config.kubernetes.io/path: secrets.yaml
|
||||||
{{- $ephemeralClusterCa := genCAEx .ephemeralCluster.ca.subj .ephemeralCluster.ca.validity }}
|
{{- $ephemeralClusterCa := genCAEx .ephemeralCluster.ca.subj (int .ephemeralCluster.ca.validity) }}
|
||||||
{{- $ephemeralKubeconfigCert := genSignedCertEx .ephemeralCluster.kubeconfigCert.subj nil nil .ephemeralCluster.kubeconfigCert.validity $ephemeralClusterCa }}
|
{{- $ephemeralKubeconfigCert := genSignedCertEx .ephemeralCluster.kubeconfigCert.subj nil nil (int .ephemeralCluster.kubeconfigCert.validity) $ephemeralClusterCa }}
|
||||||
ephemeralClusterCa:
|
ephemeralClusterCa:
|
||||||
crt: {{ $ephemeralClusterCa.Cert|b64enc|quote }}
|
crt: {{ $ephemeralClusterCa.Cert|b64enc|quote }}
|
||||||
key: {{ $ephemeralClusterCa.Key|b64enc|quote }}
|
key: {{ $ephemeralClusterCa.Key|b64enc|quote }}
|
||||||
@ -41,8 +41,8 @@ template: |
|
|||||||
certificate-authority-data: {{ $ephemeralClusterCa.Cert|b64enc|quote }}
|
certificate-authority-data: {{ $ephemeralClusterCa.Cert|b64enc|quote }}
|
||||||
client-certificate-data: {{ $ephemeralKubeconfigCert.Cert|b64enc|quote }}
|
client-certificate-data: {{ $ephemeralKubeconfigCert.Cert|b64enc|quote }}
|
||||||
client-key-data: {{ $ephemeralKubeconfigCert.Key|b64enc|quote }}
|
client-key-data: {{ $ephemeralKubeconfigCert.Key|b64enc|quote }}
|
||||||
{{- $targetClusterCa := genCAEx .targetCluster.ca.subj .targetCluster.ca.validity }}
|
{{- $targetClusterCa := genCAEx .targetCluster.ca.subj (int .targetCluster.ca.validity) }}
|
||||||
{{- $targetKubeconfigCert := genSignedCertEx .targetCluster.kubeconfigCert.subj nil nil .targetCluster.kubeconfigCert.validity $targetClusterCa }}
|
{{- $targetKubeconfigCert := genSignedCertEx .targetCluster.kubeconfigCert.subj nil nil (int .targetCluster.kubeconfigCert.validity) $targetClusterCa }}
|
||||||
targetClusterCa:
|
targetClusterCa:
|
||||||
tls.crt: {{ $targetClusterCa.Cert|b64enc|quote }}
|
tls.crt: {{ $targetClusterCa.Cert|b64enc|quote }}
|
||||||
tls.key: {{ $targetClusterCa.Key|b64enc|quote }}
|
tls.key: {{ $targetClusterCa.Key|b64enc|quote }}
|
||||||
@ -54,7 +54,7 @@ template: |
|
|||||||
passwords:
|
passwords:
|
||||||
root: {{ derivePassword 1 "long" (randAscii 10) "user" "airshipit.org"|quote }}
|
root: {{ derivePassword 1 "long" (randAscii 10) "user" "airshipit.org"|quote }}
|
||||||
deployer: {{ derivePassword 1 "long" (randAscii 10) "user" "airshipit.org"|quote }}
|
deployer: {{ derivePassword 1 "long" (randAscii 10) "user" "airshipit.org"|quote }}
|
||||||
{{- $sshKey := genSSHKeyPair .sshKeyGen.encBit }}
|
{{- $sshKey := genSSHKeyPair (int .sshKeyGen.encBit) }}
|
||||||
sshKeys:
|
sshKeys:
|
||||||
privateKey: {{ $sshKey.Private|quote }}
|
privateKey: {{ $sshKey.Private|quote }}
|
||||||
publicKey: {{ $sshKey.Public|quote }}
|
publicKey: {{ $sshKey.Public|quote }}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
- name: get BareMetalHost objects
|
- name: get BareMetalHost objects
|
||||||
shell: |
|
shell: |
|
||||||
set -e
|
set -e
|
||||||
kustomize build --enable_alpha_plugins \
|
kustomize build --enable-alpha-plugins \
|
||||||
{{ airship_config_manifest_directory }}/{{ airship_config_site_path }}/{{ path }} 2>/dev/null |
|
{{ airship_config_manifest_directory }}/{{ airship_config_site_path }}/{{ path }} 2>/dev/null |
|
||||||
kustomize cfg grep "kind=BareMetalHost"
|
kustomize cfg grep "kind=BareMetalHost"
|
||||||
register: bmh_command
|
register: bmh_command
|
||||||
@ -32,7 +32,7 @@
|
|||||||
- name: get network configuration for BareMetalHost objects
|
- name: get network configuration for BareMetalHost objects
|
||||||
shell: |
|
shell: |
|
||||||
set -e
|
set -e
|
||||||
kustomize build --enable_alpha_plugins \
|
kustomize build --enable-alpha-plugins \
|
||||||
{{ airship_config_manifest_directory }}/{{ airship_config_site_path }}/{{ path }} 2>/dev/null |
|
{{ airship_config_manifest_directory }}/{{ airship_config_site_path }}/{{ path }} 2>/dev/null |
|
||||||
kustomize cfg grep "metadata.name={{ item.spec.networkData.name }}"
|
kustomize cfg grep "metadata.name={{ item.spec.networkData.name }}"
|
||||||
register: netdata_command
|
register: netdata_command
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
vars:
|
vars:
|
||||||
# NOTE(drewwalters96): Set AIRSHIPCTL_REF to a commit SHA in order to pin
|
# NOTE(drewwalters96): Set AIRSHIPCTL_REF to a commit SHA in order to pin
|
||||||
# the cloned version of airshipctl to a known/compatible reference.
|
# the cloned version of airshipctl to a known/compatible reference.
|
||||||
AIRSHIPCTL_REF: 7974e041c55631a18f845f1909ca8306aa5cd2d6
|
AIRSHIPCTL_REF: 38849e63d174a796d44d4480acbe83654a17c924
|
||||||
sphinx_build_dir: docs/build
|
sphinx_build_dir: docs/build
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
|
Loading…
Reference in New Issue
Block a user