devfile 0.0.15.pre.alpha1 → 0.0.16.pre.alpha1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 739a883993edbb196e10d9254497cb37ff6cbe127c339cc7bee634c1c70cb797
4
- data.tar.gz: 290cdcf0ed586f6f22379258493f1d322dac3e0e0256f6f440e7defbf685d37c
3
+ metadata.gz: af061df5dc4adbd766708cbfdc52687345d2cbd1dc71e6398afe6fc311e84447
4
+ data.tar.gz: e988aed67fc226305bf771902526f241425bca8d916f6b4a4b4f1680051d043e
5
5
  SHA512:
6
- metadata.gz: 7949066754c11a31d4b70d04c3389484d23151189b844a954afde42734bbe87beeccd66d9f022af74868b3b031d13a9e7afff7e57e1fa04d92079bfab7a7582f
7
- data.tar.gz: f81e3722a30ca33dfc8832047739956d58c89f7d96791d731619748d07e9ee9ed9c20b1b2d2cabb9d70de2e5350fb65946bbe12d0de3ecc2c3967b4d667e24a4
6
+ metadata.gz: 3f32aca2b3eaacc7c8f5b20bb3a304470f80a358a808d016ff25a6190c5f4a11b0835ed66a96164ecd890ba4db334da8fa2907b321451f0fdc885d1a5f998641
7
+ data.tar.gz: 303721a6dc840eb1bc973601d59e58b9b568b654997f7d74686777cd5e3f41ad3d38f07f8e7a63a19b5b4cfc31eaf90169d4dd4d89f4a53c29180f4e7afb02a5
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
- return string(d.devfileObj.Ctx.GetDevfileContent())
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.18
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.15.pre.alpha1
4
+ version: 0.0.16.pre.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-27 00:00:00.000000000 Z
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:
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.3.1
48
48
  requirements: []
49
- rubygems_version: 3.4.9
49
+ rubygems_version: 3.4.12
50
50
  signing_key:
51
51
  specification_version: 4
52
52
  summary: Parse and generate kubernetes manifests from a Devfile