forked from openshift/machine-config-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildrequest.go
617 lines (552 loc) · 20 KB
/
buildrequest.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
package buildrequest
import (
"context"
_ "embed"
"encoding/json"
"fmt"
"strings"
"text/template"
mcfgv1 "github.com/openshift/api/machineconfiguration/v1"
mcfgclientset "github.com/openshift/client-go/machineconfiguration/clientset/versioned"
"github.com/openshift/machine-config-operator/pkg/controller/build/constants"
"github.com/openshift/machine-config-operator/pkg/controller/build/utils"
ctrlcommon "github.com/openshift/machine-config-operator/pkg/controller/common"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
clientset "k8s.io/client-go/kubernetes"
)
//go:embed assets/Containerfile.on-cluster-build-template
var containerfileTemplate string
//go:embed assets/wait.sh
var waitScript string
//go:embed assets/buildah-build.sh
var buildahBuildScript string
//go:embed assets/podman-build.sh
var podmanBuildScript string
const (
// Filename for the machineconfig JSON tarball expected by the build job
machineConfigJSONFilename string = "machineconfig.json.gz"
)
// Represents the request to build a layered OS image.
type buildRequestImpl struct {
opts BuildRequestOpts
userContainerfile string
}
// Constructs an imageBuildRequest from the Kube API server.
func NewBuildRequestFromAPI(ctx context.Context, kubeclient clientset.Interface, mcfgclient mcfgclientset.Interface, mosb *mcfgv1.MachineOSBuild, mosc *mcfgv1.MachineOSConfig) (BuildRequest, error) {
opts, err := newBuildRequestOptsFromAPI(ctx, kubeclient, mcfgclient, mosb, mosc)
if err != nil {
return nil, err
}
return newBuildRequest(*opts), nil
}
// Constructs an imageBuildRequest from the provided options.
func newBuildRequest(opts BuildRequestOpts) BuildRequest {
br := &buildRequestImpl{
opts: opts,
}
// only support noArch for now
for _, file := range opts.MachineOSConfig.Spec.Containerfile {
if file.ContainerfileArch == mcfgv1.NoArch {
br.userContainerfile = file.Content
break
}
}
return br
}
// Returns the options used within the imageBuildRequest.
func (br buildRequestImpl) Opts() BuildRequestOpts {
return br.opts
}
// Creates the Build Job object.
func (br buildRequestImpl) Builder() Builder {
return newBuilder(br.podToJob(br.toBuildahPod()))
}
// Takes the configured secrets and creates an ephemeral clone of them, canonicalizing them, if needed.
func (br buildRequestImpl) Secrets() ([]*corev1.Secret, error) {
baseImagePullSecret, err := br.canonicalizeSecret(br.getBasePullSecretName(), br.opts.BaseImagePullSecret)
if err != nil {
return nil, fmt.Errorf("could not canonicalize secret %s: %w", br.opts.BaseImagePullSecret.Name, err)
}
finalImagePushSecret, err := br.canonicalizeSecret(br.getFinalPushSecretName(), br.opts.FinalImagePushSecret)
if err != nil {
return nil, fmt.Errorf("could not canonicalize secret %s: %w", br.opts.FinalImagePushSecret.Name, err)
}
return []*corev1.Secret{
baseImagePullSecret,
finalImagePushSecret,
}, nil
}
// Creates all of the ConfigMap objects needed for the build such as the
// Containerfile, MachineConfig and AdditionalTrustBundle ConfigMaps.
func (br buildRequestImpl) ConfigMaps() ([]*corev1.ConfigMap, error) {
containerfile, err := br.containerfileToConfigMap()
if err != nil {
return nil, err
}
machineconfig, err := br.machineconfigToConfigMap(br.opts.MachineConfig)
if err != nil {
if br.opts.MachineConfig != nil {
return nil, fmt.Errorf("could not convert MachineConfig %q into ConfigMap %q: %w", br.opts.MachineConfig.Name, br.getMCConfigMapName(), err)
}
return nil, fmt.Errorf("could not convert MachineConfig into ConfigMap %q: %w", br.getMCConfigMapName(), err)
}
additionaltrustbundle := br.additionaltrustbundleToConfigMap()
return []*corev1.ConfigMap{containerfile, machineconfig, additionaltrustbundle}, nil
}
func (br buildRequestImpl) canonicalizeSecret(name string, secret *corev1.Secret) (*corev1.Secret, error) {
canonicalized, err := canonicalizePullSecret(secret)
if err != nil {
return nil, fmt.Errorf("could not canonicalize pull secret %q: %w", name, err)
}
// Overwrite the ObjectMeta so that we get all of the labels and annotations.
objMeta := br.getObjectMeta(name)
for k, v := range canonicalized.Labels {
objMeta.Labels[k] = v
}
canonicalized.ObjectMeta = objMeta
return canonicalized, nil
}
// Renders our Containerfile and injects it into a ConfigMap for consumption by the image builder.
func (br buildRequestImpl) containerfileToConfigMap() (*corev1.ConfigMap, error) {
containerfile, err := br.renderContainerfile()
if err != nil {
return nil, fmt.Errorf("could not get rendered containerfile: %w", err)
}
configmap := &corev1.ConfigMap{
TypeMeta: metav1.TypeMeta{},
ObjectMeta: br.getObjectMeta(br.getContainerfileConfigMapName()),
Data: map[string]string{
"Containerfile": containerfile,
},
}
return configmap, nil
}
// Stuffs a given MachineConfig into a ConfigMap, gzipping and base64-encoding it.
func (br buildRequestImpl) machineconfigToConfigMap(mc *mcfgv1.MachineConfig) (*corev1.ConfigMap, error) {
out, err := json.Marshal(mc)
if err != nil {
return nil, fmt.Errorf("could not encode MachineConfig %s: %w", mc.Name, err)
}
// TODO: Check for size here and determine if its too big. ConfigMaps and
// Secrets have a size limit of 1 MB. Compressing and encoding the
// MachineConfig provides us with additional headroom. However, if the
// MachineConfig grows large enough, we may need to do something more
// involved.
compressed, err := compressAndEncode(out)
if err != nil {
return nil, fmt.Errorf("could not compress or encode MachineConfig %s: %w", mc.Name, err)
}
configmap := &corev1.ConfigMap{
TypeMeta: metav1.TypeMeta{},
ObjectMeta: br.getObjectMeta(br.getMCConfigMapName()),
// TODO: ConfigMaps also have a BinaryData field which does not require
// that we Base64 encode things since the API server will do it for us.
// This could make this code a bit less complicated.
Data: map[string]string{
machineConfigJSONFilename: compressed.String(),
},
}
return configmap, nil
}
// Gets the Additional Trust Bundle and injects it into a ConfigMap for consumption by the image builder.
func (br buildRequestImpl) additionaltrustbundleToConfigMap() *corev1.ConfigMap {
configmap := &corev1.ConfigMap{
TypeMeta: metav1.TypeMeta{},
ObjectMeta: br.getObjectMeta(br.getAdditionalTrustBundleConfigMapName()),
BinaryData: map[string][]byte{
"openshift-config-user-ca-bundle.crt": br.opts.AdditionalTrustBundle,
},
}
return configmap
}
// Renders our Containerfile template.
//
// TODO: Figure out how to parse the Containerfile using
// https://github.com/openshift/imagebuilder/tree/master/containerfile/parser to
// ensure that we've generated a valid Containerfile.
//
// TODO: Figure out how to programatically generate the Containerfile using a
// higher-level abstraction than just naïvely rendering a text template and
// hoping for the best.
func (br buildRequestImpl) renderContainerfile() (string, error) {
tmpl, err := template.New("containerfile").Parse(containerfileTemplate)
if err != nil {
return "", fmt.Errorf("could not parse containerfile template: %w", err)
}
extPkgs, err := br.opts.getExtensionsPackages()
if err != nil {
return "", err
}
out := &strings.Builder{}
// This anonymous struct is necessary because templates cannot access
// lowercase fields. Additionally, since there are a few fields where we
// default to a value from a different location, it makes more sense for us
// to implement that logic in Go as opposed to the Go template language.
items := struct {
MachineOSBuild *mcfgv1.MachineOSBuild
MachineOSConfig *mcfgv1.MachineOSConfig
UserContainerfile string
BaseOSImage string
ExtensionsImage string
ExtensionsPackages []string
}{
MachineOSBuild: br.opts.MachineOSBuild,
MachineOSConfig: br.opts.MachineOSConfig,
UserContainerfile: br.userContainerfile,
BaseOSImage: br.opts.OSImageURLConfig.BaseOSContainerImage,
ExtensionsImage: br.opts.OSImageURLConfig.BaseOSExtensionsContainerImage,
ExtensionsPackages: extPkgs,
}
if err := tmpl.Execute(out, items); err != nil {
return "", fmt.Errorf("could not execute containerfile template: %w", err)
}
return out.String(), nil
}
// podToJob creates a Job with the spec of the given Pod
func (br buildRequestImpl) podToJob(pod *corev1.Pod) *batchv1.Job {
// Set the backoffLimit to 3 so the job will retry 4 times before reporting a failure
var backoffLimit int32 = 3
// Set completion to 1 so that as soon as the pod has completed successfully the job is
// considered a success
var completions int32 = 1
// Set the owner ref of the job to the MOSB
oref := metav1.NewControllerRef(br.opts.MachineOSBuild, mcfgv1.SchemeGroupVersion.WithKind("MachineOSBuild"))
return &batchv1.Job{
ObjectMeta: metav1.ObjectMeta{
Name: pod.ObjectMeta.Name,
Namespace: pod.ObjectMeta.Namespace,
Labels: pod.ObjectMeta.Labels,
Annotations: pod.ObjectMeta.Annotations,
OwnerReferences: []metav1.OwnerReference{*oref},
},
TypeMeta: metav1.TypeMeta{
APIVersion: "batch/v1",
Kind: "Job",
},
Spec: batchv1.JobSpec{
BackoffLimit: &backoffLimit,
Completions: &completions,
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{},
Spec: pod.Spec,
},
},
}
}
// We're able to run the Buildah image in an unprivileged pod provided that the
// machine-os-builder service account has the anyuid security constraint
// context enabled to allow us to use UID 1000, which maps to the UID within
// the official Buildah image.
// nolint:dupl // I don't want to deduplicate this yet since there are still some unknowns.
func (br buildRequestImpl) toBuildahPod() *corev1.Pod {
var httpProxy, httpsProxy, noProxy string
if br.opts.Proxy != nil {
httpProxy = br.opts.Proxy.HTTPProxy
httpsProxy = br.opts.Proxy.HTTPSProxy
noProxy = br.opts.Proxy.NoProxy
}
env := []corev1.EnvVar{
// How many times the build / push steps should be retried. In the future,
// this should be wired up to the MachineOSConfig or other higher-level
// APbr. This is useful for retrying builds / pushes when they fail due to a
// transient condition such as a temporary network issue. It does *NOT*
// handle situations where the build pod is evicted or rescheduled. A
// higher-level abstraction will be needed such as a Kubernetes Job
// (https://kubernetes.io/docs/concepts/workloads/controllers/job/).
{
Name: "MAX_RETRIES",
Value: "3",
},
{
Name: "DIGEST_CONFIGMAP_NAME",
Value: br.getDigestConfigMapName(),
},
{
Name: "DIGEST_CONFIGMAP_LABELS",
// Gets the labels for all objects created by imageBuildRequest, converts
// them into a string representation, and replaces the separating commas
// with spaces.
Value: strings.ReplaceAll(labels.Set(br.getLabelsForObjectMeta()).String(), ",", " "),
},
{
Name: "HOME",
Value: "/home/build",
},
{
Name: "TAG",
Value: string(br.opts.MachineOSBuild.Spec.RenderedImagePushSpec),
},
{
Name: "BASE_IMAGE_PULL_CREDS",
Value: "/tmp/base-image-pull-creds/config.json",
},
{
Name: "FINAL_IMAGE_PUSH_CREDS",
Value: "/tmp/final-image-push-creds/config.json",
},
{
Name: "BUILDAH_ISOLATION",
Value: "chroot",
},
{
Name: "HTTP_PROXY",
Value: httpProxy,
},
{
Name: "HTTPS_PROXY",
Value: httpsProxy,
},
{
Name: "NO_PROXY",
Value: noProxy,
},
}
securityContext := &corev1.SecurityContext{}
command := []string{"/bin/bash", "-c"}
volumeMounts := []corev1.VolumeMount{
{
Name: "machineconfig",
MountPath: "/tmp/machineconfig",
},
{
Name: "containerfile",
MountPath: "/tmp/containerfile",
},
{
Name: "additional-trust-bundle",
MountPath: "/etc/pki/ca-trust/source/anchors",
},
{
Name: "base-image-pull-creds",
MountPath: "/tmp/base-image-pull-creds",
},
{
Name: "final-image-push-creds",
MountPath: "/tmp/final-image-push-creds",
},
{
Name: "done",
MountPath: "/tmp/done",
},
}
volumes := []corev1.Volume{
{
// Provides the rendered Containerfile.
Name: "containerfile",
VolumeSource: corev1.VolumeSource{
ConfigMap: &corev1.ConfigMapVolumeSource{
LocalObjectReference: corev1.LocalObjectReference{
Name: br.getContainerfileConfigMapName(),
},
},
},
},
{
// Provides the rendered MachineConfig in a gzipped / base64-encoded
// format.
Name: "machineconfig",
VolumeSource: corev1.VolumeSource{
ConfigMap: &corev1.ConfigMapVolumeSource{
LocalObjectReference: corev1.LocalObjectReference{
Name: br.getMCConfigMapName(),
},
},
},
},
{
// Provides the user defined Additional Trust Bundle
Name: "additional-trust-bundle",
VolumeSource: corev1.VolumeSource{
ConfigMap: &corev1.ConfigMapVolumeSource{
LocalObjectReference: corev1.LocalObjectReference{
Name: br.getAdditionalTrustBundleConfigMapName(),
},
},
},
},
{
// Provides the credentials needed to pull the base OS image.
Name: "base-image-pull-creds",
VolumeSource: corev1.VolumeSource{
Secret: &corev1.SecretVolumeSource{
SecretName: br.getBasePullSecretName(),
// SecretName: br.opts.MachineOSConfig.Spec.BuildInputs.BaseImagePullSecret.Name,
Items: []corev1.KeyToPath{
{
Key: corev1.DockerConfigJsonKey,
Path: "config.json",
},
},
},
},
},
{
// Provides the credentials needed to push the final OS image.
Name: "final-image-push-creds",
VolumeSource: corev1.VolumeSource{
Secret: &corev1.SecretVolumeSource{
// SecretName: br.opts.MachineOSConfig.Spec.BuildInputs.RenderedImagePushSecret.Name,
SecretName: br.getFinalPushSecretName(),
Items: []corev1.KeyToPath{
{
Key: corev1.DockerConfigJsonKey,
Path: "config.json",
},
},
},
},
},
{
// Provides a way for the "image-build" container to signal that it
// finished so that the "wait-for-done" container can retrieve the
// iamge SHA.
Name: "done",
VolumeSource: corev1.VolumeSource{
EmptyDir: &corev1.EmptyDirVolumeSource{
Medium: corev1.StorageMediumMemory,
},
},
},
{
// This provides a dedicated place for Buildah to store / cache its
// images during the build. This seems to be required for the build-time
// volume mounts to work correctly, most likely due to an issue with
// SELinux that I have yet to figure out. Despite being called a cache
// directory, it gets removed whenever the build pod exits
Name: "buildah-cache",
VolumeSource: corev1.VolumeSource{
EmptyDir: &corev1.EmptyDirVolumeSource{},
},
},
}
// If the etc-pki-entitlement secret is found, mount it into the build pod.
if br.opts.HasEtcPkiEntitlementKeys {
opts := optsForEtcPkiEntitlements()
env = append(env, opts.envVar())
volumeMounts = append(volumeMounts, opts.volumeMount())
volumes = append(volumes, opts.volumeForSecret(constants.EtcPkiEntitlementSecretName+"-"+br.opts.MachineOSConfig.Spec.MachineConfigPool.Name))
}
// If the etc-yum-repos-d ConfigMap is found, mount it into the build pod.
if br.opts.HasEtcYumReposDConfigs {
opts := optsForEtcYumReposD()
env = append(env, opts.envVar())
volumeMounts = append(volumeMounts, opts.volumeMount())
volumes = append(volumes, opts.volumeForConfigMap())
}
// If the etc-pki-rpm-gpg secret is found, mount it into the build pod.
if br.opts.HasEtcPkiRpmGpgKeys {
opts := optsForEtcRpmGpgKeys()
env = append(env, opts.envVar())
volumeMounts = append(volumeMounts, opts.volumeMount())
volumes = append(volumes, opts.volumeForSecret(constants.EtcPkiRpmGpgSecretName))
}
return &corev1.Pod{
TypeMeta: metav1.TypeMeta{
APIVersion: "v1",
Kind: "Pod",
},
ObjectMeta: br.getObjectMeta(br.getBuildName()),
Spec: corev1.PodSpec{
RestartPolicy: corev1.RestartPolicyNever,
Containers: []corev1.Container{
{
// This container performs the image build / push process.
Name: "image-build",
Image: br.opts.Images.MachineConfigOperator,
Env: env,
Command: append(command, buildahBuildScript),
ImagePullPolicy: corev1.PullAlways,
SecurityContext: securityContext,
// Only attach the buildah-cache volume mount to the buildah container.
VolumeMounts: append(volumeMounts, corev1.VolumeMount{
Name: "buildah-cache",
MountPath: "/home/build/.local/share/containers",
}),
},
{
// This container waits for the aforementioned container to finish
// building so we can get the final image SHA. We do this by using
// the base OS image (which contains the "oc" binary) to create a
// ConfigMap from the digestfile that Buildah creates, which allows
// us to avoid parsing log files.
Name: "wait-for-done",
Command: append(command, waitScript),
Image: br.opts.OSImageURLConfig.BaseOSContainerImage,
Env: env,
ImagePullPolicy: corev1.PullAlways,
SecurityContext: securityContext,
VolumeMounts: volumeMounts,
},
},
ServiceAccountName: "machine-os-builder",
Volumes: volumes,
},
}
}
// Populates the labels map for all objects created by imageBuildRequest
func (br buildRequestImpl) getLabelsForObjectMeta() map[string]string {
return map[string]string{
constants.EphemeralBuildObjectLabelKey: "",
constants.OnClusterLayeringLabelKey: "",
constants.RenderedMachineConfigLabelKey: br.opts.MachineOSBuild.Spec.MachineConfig.Name,
constants.TargetMachineConfigPoolLabelKey: br.opts.MachineOSConfig.Spec.MachineConfigPool.Name,
constants.MachineOSConfigNameLabelKey: br.opts.MachineOSConfig.Name,
constants.MachineOSBuildNameLabelKey: br.opts.MachineOSBuild.Name,
}
}
// Populates the annotations map for all objects created by imageBuildRequest.
// Conditionally sets annotations for entitled builds if the appropriate
// secrets / ConfigMaps are present.
func (br buildRequestImpl) getAnnotationsForObjectMeta() map[string]string {
annos := map[string]string{
constants.MachineOSConfigNameAnnotationKey: br.opts.MachineOSConfig.Name,
constants.MachineOSBuildNameAnnotationKey: br.opts.MachineOSBuild.Name,
}
if br.opts.HasEtcPkiEntitlementKeys {
annos[constants.EtcPkiEntitlementAnnotationKey] = ""
}
if br.opts.HasEtcYumReposDConfigs {
annos[constants.EtcYumReposDAnnotationKey] = ""
}
if br.opts.HasEtcPkiRpmGpgKeys {
annos[constants.EtcPkiRpmGpgAnnotationKey] = ""
}
return annos
}
// Constructs a common metav1.ObjectMeta object with the namespace, labels, and annotations set.
func (br buildRequestImpl) getObjectMeta(name string) metav1.ObjectMeta {
return metav1.ObjectMeta{
Name: name,
Namespace: ctrlcommon.MCONamespace,
Labels: br.getLabelsForObjectMeta(),
Annotations: br.getAnnotationsForObjectMeta(),
}
}
// Computes the AdditionalTrustBundle ConfigMap name based upon the MachineConfigPool name.
func (br buildRequestImpl) getAdditionalTrustBundleConfigMapName() string {
return utils.GetAdditionalTrustBundleConfigMapName(br.opts.MachineOSBuild)
}
// Computes the Containerfile ConfigMap name based upon the MachineConfigPool name.
func (br buildRequestImpl) getContainerfileConfigMapName() string {
return utils.GetContainerfileConfigMapName(br.opts.MachineOSBuild)
}
// Computes the MachineConfig ConfigMap name based upon the MachineConfigPool name.
func (br buildRequestImpl) getMCConfigMapName() string {
return utils.GetMCConfigMapName(br.opts.MachineOSBuild)
}
// Computes the build name based upon the MachineConfigPool name.
func (br buildRequestImpl) getBuildName() string {
return utils.GetBuildJobName(br.opts.MachineOSBuild)
}
func (br buildRequestImpl) getDigestConfigMapName() string {
return utils.GetDigestConfigMapName(br.opts.MachineOSBuild)
}
func (br buildRequestImpl) getBasePullSecretName() string {
return utils.GetBasePullSecretName(br.opts.MachineOSBuild)
}
func (br buildRequestImpl) getFinalPushSecretName() string {
return utils.GetFinalPushSecretName(br.opts.MachineOSBuild)
}