github.com/openshift/installer@v1.4.17/cmd/openshift-install/testdata/agent/unconfigured-ignition/configurations/from-ztp-manifests.txt (about) 1 # The unconfigured ignition can be generated using 2 # infraenv.yaml, pull-secret.yaml, cluster-image-set.yaml 3 # and not using 4 # install-config.yaml and agent-config.yaml. 5 6 expandFile cluster-manifests/cluster-image-set.yaml 7 8 exec openshift-install agent create unconfigured-ignition --dir $WORK 9 10 exists $WORK/unconfigured-agent.ign 11 ! exists $WORK/auth/kubeconfig 12 ! exists $WORK/auth/kubeadmin-password 13 ! unconfiguredIgnContains /etc/assisted/manifests/agent-cluster-install.yaml 14 ! unconfiguredIgnContains /etc/assisted/manifests/cluster-deployment.yaml 15 unconfiguredIgnCmp /etc/assisted/manifests/cluster-image-set.yaml expected/cluster-image-set.yaml 16 unconfiguredIgnCmp /etc/assisted/manifests/infraenv.yaml expected/infraenv.yaml 17 unconfiguredIgnCmp /etc/assisted/manifests/pull-secret.yaml expected/pull-secret.yaml 18 19 -- cluster-manifests/infraenv.yaml -- 20 apiVersion: agent-install.openshift.io/v1beta1 21 kind: InfraEnv 22 metadata: 23 name: ostest 24 namespace: cluster0 25 spec: 26 cpuArchitecture: x86_64 27 pullSecretRef: 28 name: ostest-pull-secret 29 sshAuthorizedKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDK6UTEydcEKzuNdPaofn8Z2DwgHqdcionLZBiPf/zIRNco++etLsat7Avv7yt04DINQd5zjxIFgG8jblaUB5E5C9ClUcMwb52GO0ay2Y9v1uBv1a4WhI3peKktAzYNk0EBMQlJtXPjRMrC9ylBPh+DsBHMu+KmDnfk7PIwyN4efC8k5kSRuPWoNdme1rz2+umU8FSmaWTHIajrbspf4GQbsntA5kuKEtDbfoNCU97o2KrRnUbeg3a8hwSjfh3u6MhlnGcg5K2Ij+zivEsWGCLKYUtE1ErqwfIzwWmJ6jnV66XCQGHf4Q1iIxqF7s2a1q24cgG2Z/iDXfqXrCIfy4P7b/Ztak3bdT9jfAdVZtdO5/r7I+O5hYhF86ayFlDWzZWP/ByiSb+q4CQbfVgK3BMmiAv2MqLHdhesmD/SmIcoOWUF6rFmRKZVFFpKpt5ATNTgUJ3JRowoXrrDruVXClUGRiCS6Zabd1rZ3VmTchaPJwtzQMdfIWISXj+Ig+C4UK0= 30 31 -- cluster-manifests/pull-secret.yaml -- 32 apiVersion: v1 33 kind: Secret 34 metadata: 35 name: ostest-pull-secret 36 namespace: cluster0 37 stringData: 38 .dockerconfigjson: |- 39 { 40 "auths": { 41 "quay.io": { 42 "auth": "c3VwZXItc2VjcmV0Cg==" 43 } 44 } 45 } 46 47 -- cluster-manifests/cluster-image-set.yaml -- 48 apiVersion: hive.openshift.io/v1 49 kind: ClusterImageSet 50 metadata: 51 name: cluster0-image-set 52 namespace: cluster0 53 spec: 54 releaseImage: $RELEASE_IMAGE 55 56 -- expected/cluster-image-set.yaml -- 57 apiVersion: hive.openshift.io/v1 58 kind: ClusterImageSet 59 metadata: 60 name: cluster0-image-set 61 namespace: cluster0 62 spec: 63 releaseImage: $RELEASE_IMAGE 64 65 -- expected/infraenv.yaml -- 66 apiVersion: agent-install.openshift.io/v1beta1 67 kind: InfraEnv 68 metadata: 69 creationTimestamp: null 70 name: ostest 71 namespace: cluster0 72 spec: 73 cpuArchitecture: x86_64 74 ipxeScriptType: "" 75 nmStateConfigLabelSelector: {} 76 pullSecretRef: 77 name: ostest-pull-secret 78 sshAuthorizedKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDK6UTEydcEKzuNdPaofn8Z2DwgHqdcionLZBiPf/zIRNco++etLsat7Avv7yt04DINQd5zjxIFgG8jblaUB5E5C9ClUcMwb52GO0ay2Y9v1uBv1a4WhI3peKktAzYNk0EBMQlJtXPjRMrC9ylBPh+DsBHMu+KmDnfk7PIwyN4efC8k5kSRuPWoNdme1rz2+umU8FSmaWTHIajrbspf4GQbsntA5kuKEtDbfoNCU97o2KrRnUbeg3a8hwSjfh3u6MhlnGcg5K2Ij+zivEsWGCLKYUtE1ErqwfIzwWmJ6jnV66XCQGHf4Q1iIxqF7s2a1q24cgG2Z/iDXfqXrCIfy4P7b/Ztak3bdT9jfAdVZtdO5/r7I+O5hYhF86ayFlDWzZWP/ByiSb+q4CQbfVgK3BMmiAv2MqLHdhesmD/SmIcoOWUF6rFmRKZVFFpKpt5ATNTgUJ3JRowoXrrDruVXClUGRiCS6Zabd1rZ3VmTchaPJwtzQMdfIWISXj+Ig+C4UK0= 79 status: 80 agentLabelSelector: {} 81 bootArtifacts: 82 initrd: "" 83 ipxeScript: "" 84 kernel: "" 85 rootfs: "" 86 debugInfo: 87 eventsURL: "" 88 -- expected/pull-secret.yaml -- 89 apiVersion: v1 90 kind: Secret 91 metadata: 92 creationTimestamp: null 93 name: ostest-pull-secret 94 namespace: cluster0 95 stringData: 96 .dockerconfigjson: |- 97 { 98 "auths": { 99 "quay.io": { 100 "auth": "c3VwZXItc2VjcmV0Cg==" 101 } 102 } 103 }