github.com/openshift/installer@v1.4.17/pkg/asset/manifests/template.go (about) 1 package manifests 2 3 import ( 4 "github.com/openshift/installer/pkg/types" 5 "github.com/openshift/installer/pkg/types/baremetal" 6 ) 7 8 // AwsCredsSecretData holds encoded credentials and is used to generate cloud-creds secret 9 type AwsCredsSecretData struct { 10 Base64encodeAccessKeyID string 11 Base64encodeSecretAccessKey string 12 } 13 14 // AzureCredsSecretData holds encoded credentials and is used to generate cloud-creds secret 15 type AzureCredsSecretData struct { 16 Base64encodeSubscriptionID string 17 Base64encodeClientID string 18 Base64encodeClientSecret string 19 Base64encodeTenantID string 20 Base64encodeResourcePrefix string 21 Base64encodeResourceGroup string 22 Base64encodeRegion string 23 } 24 25 // GCPCredsSecretData holds encoded credentials and is used to generate cloud-creds secret 26 type GCPCredsSecretData struct { 27 Base64encodeServiceAccount string 28 } 29 30 // IBMCloudCredsSecretData holds encoded credentials and is used to generate cloud-creds secret 31 type IBMCloudCredsSecretData struct { 32 Base64encodeAPIKey string 33 } 34 35 // OpenStackCredsSecretData holds encoded credentials and is used to generate cloud-creds secret 36 type OpenStackCredsSecretData struct { 37 Base64encodeCloudCreds string 38 Base64encodeCloudCredsINI string 39 } 40 41 // VSphereCredsSecretData holds encoded credentials and is used to generated cloud-creds secret 42 type VSphereCredsSecretData struct { 43 VCenter string 44 Base64encodeUsername string 45 Base64encodePassword string 46 } 47 48 // OvirtCredsSecretData holds encoded credentials and is used to generated cloud-creds secret 49 type OvirtCredsSecretData struct { 50 Base64encodeURL string 51 Base64encodeUsername string 52 Base64encodePassword string 53 Base64encodeInsecure string 54 Base64encodeCABundle string 55 } 56 57 type cloudCredsSecretData struct { 58 AWS *AwsCredsSecretData 59 Azure *AzureCredsSecretData 60 GCP *GCPCredsSecretData 61 IBMCloud *IBMCloudCredsSecretData 62 OpenStack *OpenStackCredsSecretData 63 VSphere *[]*VSphereCredsSecretData 64 Ovirt *OvirtCredsSecretData 65 } 66 67 type bootkubeTemplateData struct { 68 CVOCapabilities *types.Capabilities 69 CVOClusterID string 70 EtcdCaBundle string 71 EtcdMetricCaCert string 72 EtcdMetricSignerCert string 73 EtcdMetricSignerClientCert string 74 EtcdMetricSignerClientKey string 75 EtcdMetricSignerKey string 76 EtcdSignerCert string 77 EtcdSignerClientCert string 78 EtcdSignerClientKey string 79 EtcdSignerKey string 80 IsFCOS bool 81 IsSCOS bool 82 IsOKD bool 83 McsTLSCert string 84 McsTLSKey string 85 PullSecretBase64 string 86 RootCaCert string 87 WorkerIgnConfig string 88 } 89 90 type baremetalTemplateData struct { 91 Baremetal *baremetal.Platform 92 ProvisioningOSDownloadURL string 93 } 94 95 type openshiftTemplateData struct { 96 CloudCreds cloudCredsSecretData 97 Base64EncodedKubeadminPwHash string 98 }