devfile 0.0.15.pre.alpha1-x86_64-linux → 0.0.16.pre.alpha1-x86_64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/devfile +0 -0
- data/ext/devfile.go +6 -2
- data/ext/go.mod +2 -2
- data/ext/main.go +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff38ff84a177544e4bd30d98b0f75d6a655daccf0f7b44942160f29ca4d8d143
|
4
|
+
data.tar.gz: 7a460f3565984f03c050919155ab79fcdc13bc8e0ca998af30506cfb2050761e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 943bfb70fa0edc820d4749403208291532a9d11a0252e9a912397cb1879c939f39edd24731390ce55f0e166b1f8bf4cd6219c46eba527d292f8530eee711a7d1
|
7
|
+
data.tar.gz: 748ba009bc1185ecb4c811d518006dc58028743a87cae79dddb04cac9c30101f65f5b9d850be0c25684f3dc06823d040fdba2ad4ea06c0b4e09755995c5f3a15
|
data/bin/devfile
CHANGED
Binary file
|
data/ext/devfile.go
CHANGED
@@ -292,8 +292,12 @@ func (d Devfile) hasContainerComponents() (bool, error) {
|
|
292
292
|
return false, nil
|
293
293
|
}
|
294
294
|
|
295
|
-
func (d Devfile) getFlattenedDevfileContent() string {
|
296
|
-
|
295
|
+
func (d Devfile) getFlattenedDevfileContent() (string, error) {
|
296
|
+
b, err := yaml.Marshal(d.devfileObj.Data)
|
297
|
+
if err != nil {
|
298
|
+
return "", err
|
299
|
+
}
|
300
|
+
return string(b), nil
|
297
301
|
}
|
298
302
|
|
299
303
|
func parseDevfile(content string) (Devfile, error) {
|
data/ext/go.mod
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
module gitlab-org/remote-development/devfile-gem
|
2
2
|
|
3
|
-
go 1.
|
3
|
+
go 1.19
|
4
4
|
|
5
5
|
require (
|
6
|
+
github.com/devfile/api/v2 v2.2.0
|
6
7
|
github.com/devfile/library/v2 v2.2.0
|
7
8
|
k8s.io/api v0.26.1
|
8
9
|
k8s.io/apimachinery v0.26.1
|
@@ -19,7 +20,6 @@ require (
|
|
19
20
|
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
20
21
|
github.com/containerd/containerd v1.5.9 // indirect
|
21
22
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
22
|
-
github.com/devfile/api/v2 v2.2.0 // indirect
|
23
23
|
github.com/devfile/registry-support/index/generator v0.0.0-20221018203505-df96d34d4273 // indirect
|
24
24
|
github.com/devfile/registry-support/registry-library v0.0.0-20221018213054-47b3ffaeadba // indirect
|
25
25
|
github.com/docker/cli v20.10.11+incompatible // indirect
|
data/ext/main.go
CHANGED
@@ -232,7 +232,10 @@ func flatten(devfile string) (string, error) {
|
|
232
232
|
if err != nil {
|
233
233
|
return "", err
|
234
234
|
}
|
235
|
-
flattenedDevfile := d.getFlattenedDevfileContent()
|
235
|
+
flattenedDevfile, err := d.getFlattenedDevfileContent()
|
236
|
+
if err != nil {
|
237
|
+
return "", err
|
238
|
+
}
|
236
239
|
content, err := marshalDevfile(flattenedDevfile)
|
237
240
|
if err != nil {
|
238
241
|
return "", err
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devfile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16.pre.alpha1
|
5
5
|
platform: x86_64-linux
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Library used to generate kubernetes manifests from a Devfile.
|
14
14
|
email:
|