kite 1.1.16 → 1.2.3

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: e00b61b8ca0cc04370f64f980f8b4310224cca761bfb7f715f695eaa0406d976
4
- data.tar.gz: 472d73e63301a579f417b1e3f2b36240205d10f62acf23d41a6fcb60c8bffac9
3
+ metadata.gz: 7552fc6615c7625de7e6a0af8a1d754d3fe6182ef9bc3647629bfa9433dfa8ad
4
+ data.tar.gz: 40ab1c6d62b70cd9a7af5f5542553b14eb09d4cb20484761ca0981d384ba3a8a
5
5
  SHA512:
6
- metadata.gz: b8635a7babd515ed0497e7072c0807dae03191693fb784ede1888ad6bda8a354d44d13c92458965371325d56201890064f3cbfa6549a8f1fd38326d5a45583ee
7
- data.tar.gz: 1c6ec38d77affe28413096cc7535683316a7039a0cf0ca2c886918cd7010c65e7fae05a01ace943453d55f625768fcc2bd42bb38ba998eeb91b3733328f63605
6
+ metadata.gz: 74133016ffc62362f47a4e36329b3a2e04b249491063509c33ca61eff78b545d19971b1c5cf0131753cb8fcf435a18154f5517a29d28e828bf78685a6feb27e4
7
+ data.tar.gz: cb6ac1c1a1bda61618264b4297f757fb13f3b34f8361f8629ecde6df623ebc0217e80f990601ed8981b7c04a85e4f8d83f01da2ee2a00b374a33b63faf720a1b
data/.drone.yml CHANGED
@@ -1,6 +1,10 @@
1
1
  kind: pipeline
2
2
  name: default
3
3
 
4
+ trigger:
5
+ event:
6
+ - push
7
+
4
8
  steps:
5
9
  - name: Run rspec
6
10
  image: ruby:2.6
@@ -8,22 +12,37 @@ steps:
8
12
  - bundle
9
13
  - bundle exec rspec
10
14
  when:
11
- event:
12
- - pull_request
15
+ branch:
16
+ exclude:
17
+ - master
18
+ - "*stable"
13
19
 
14
- - name: Bump and Tag
15
- image: ruby:2.6
20
+ - name: Bump and tag
21
+ image: quay.io/openware/sdk-citools:2.4.5
16
22
  environment:
23
+ BRANCH_NAME: ${DRONE_BRANCH}
24
+ REPO_NAME: ${DRONE_REPO}
17
25
  GITHUB_API_KEY:
18
26
  from_secret: kite_bot_key
19
27
  commands:
20
- - ruby ci/bump.rb
28
+ - BUNDLE_GEMFILE=/sdk/Gemfile bundle exec rake --rakefile=/sdk/Rakefile ci:prebuild
21
29
  when:
22
- event:
23
- - push
24
30
  branch:
25
- - 1-1-stable
31
+ - master
32
+ - "*stable"
26
33
 
34
+ image_pull_secrets:
35
+ - dockerconfigjson
36
+
37
+ ---
38
+ kind: pipeline
39
+ name: publish
40
+
41
+ trigger:
42
+ event:
43
+ - tag
44
+
45
+ steps:
27
46
  - name: Publish to RubyGems
28
47
  image: ruby:2.6
29
48
  environment:
@@ -37,6 +56,3 @@ steps:
37
56
  - bundle --jobs $(nproc)
38
57
  - bundle exec gem build kite.gemspec
39
58
  - bundle exec gem push kite-$DRONE_TAG.gem
40
- when:
41
- event:
42
- - tag
@@ -1 +1 @@
1
- 2.5.0
1
+ 2.6.5
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.2.1
@@ -33,7 +33,7 @@ module Kite
33
33
  directory('service', path)
34
34
  end
35
35
 
36
- method_option :provider, type: :string, desc: "Cloud provider", enum: %w{aws gcp ali}, required: true
36
+ method_option :provider, type: :string, desc: "Cloud provider", enum: %w{aws gcp ali baremetal}, required: true
37
37
  desc 'environment NAME', 'Generate an environment with base terraform files'
38
38
  def environment(name)
39
39
  say "Generating environment for #{options[:provider]}"
@@ -1,3 +1,3 @@
1
1
  module Kite
2
- VERSION = '1.1.16'
2
+ VERSION = '1.2.3'
3
3
  end
@@ -1,6 +1,4 @@
1
1
  provider "aws" {
2
- version = "~> 2.18.0"
3
-
4
2
  region = "<%= @cloud['region'] %>"
5
3
  access_key = "<%= @cloud['aws']['access_key'] %>"
6
4
  secret_key = "<%= @cloud['aws']['secret_key'] %>"
@@ -0,0 +1,8 @@
1
+ terraform {
2
+ required_providers {
3
+ aws = {
4
+ source = "hashicorp/aws"
5
+ }
6
+ }
7
+ required_version = ">= 0.13"
8
+ }
File without changes
@@ -3,16 +3,14 @@ terraform {
3
3
  backend "gcs" {
4
4
  bucket = "<%= @cloud['gcp']['bucket_name'] %>"
5
5
  prefix = "<%= @env_name %>-terraform.tfstate"
6
- project = "<%= @cloud['gcp']['project'] %>"
7
6
  }
8
7
  }
9
8
 
10
9
  # Store .tfstate in a GCS bucket
11
10
  data "terraform_remote_state" "tfstate" {
12
11
  backend = "gcs"
13
- config {
12
+ config = {
14
13
  bucket = "<%= @cloud['gcp']['bucket_name'] %>"
15
- path = "<%= @env_name %>-terraform.tfstate"
16
- project = "<%= @cloud['gcp']['project'] %>"
14
+ prefix = "<%= @env_name %>-terraform.tfstate"
17
15
  }
18
16
  }
@@ -1,5 +1,9 @@
1
1
  provider "google" {
2
- credentials = "${file("<%= @cloud['gcp']['service_account'] %>")}"
3
- project = "<%= @cloud['gcp']['project'] %>"
4
- region = "<%= @cloud['region'] %>"
2
+ credentials = file("<%= @cloud['gcp']['service_account'] %>")
3
+ project = "<%= @cloud['gcp']['project'] %>"
4
+ region = "<%= @cloud['region'] %>"
5
+ }
6
+
7
+ terraform {
8
+ required_version = ">= 0.12"
5
9
  }
@@ -1,5 +1,5 @@
1
1
  output service_account_b64 {
2
- description = "GCloud service account key"
3
- value = "${base64encode(file("<%= @cloud['gcp']['service_account'] %>"))}"
2
+ description = "Google Cloud service account key"
3
+ value = base64encode(file("<%= @cloud['gcp']['service_account'] %>"))
4
4
  sensitive = true
5
5
  }
@@ -0,0 +1,8 @@
1
+ terraform {
2
+ required_providers {
3
+ google = {
4
+ source = "hashicorp/google"
5
+ }
6
+ }
7
+ required_version = ">= 0.13"
8
+ }
@@ -13,3 +13,4 @@ default: &default
13
13
  ali:
14
14
  access_key: "********************"
15
15
  secret_key: "****************************************"
16
+ baremetal: {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.16
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Bellet
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-08-23 00:00:00.000000000 Z
14
+ date: 2020-10-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
@@ -144,6 +144,7 @@ files:
144
144
  - Makefile
145
145
  - README.md
146
146
  - Rakefile
147
+ - VERSION
147
148
  - bin/concourse/check
148
149
  - bin/concourse/in
149
150
  - bin/concourse/out
@@ -172,10 +173,12 @@ files:
172
173
  - lib/kite/version.rb
173
174
  - tpl/ali/environment/main.tf.tt
174
175
  - tpl/aws/environment/main.tf.tt
175
- - tpl/aws/environment/s3.tf.tt
176
+ - tpl/aws/environment/versions.tf
177
+ - tpl/baremetal/environment/.gitkeep
176
178
  - tpl/gcp/environment/gcs.tf.tt
177
179
  - tpl/gcp/environment/main.tf.tt
178
180
  - tpl/gcp/environment/outputs.tf.tt
181
+ - tpl/gcp/environment/versions.tf
179
182
  - tpl/service/%output_path%/charts/%app_name%/Chart.yaml.tt
180
183
  - tpl/service/%output_path%/charts/%app_name%/templates/NOTES.txt.tt
181
184
  - tpl/service/%output_path%/charts/%app_name%/templates/_helpers.tpl
@@ -1,13 +0,0 @@
1
- # Create a bucket for kite purposes
2
- resource "aws_s3_bucket" "kite_bucket" {
3
- bucket_prefix = "<%= @cloud['aws']['bucket_name'] %>"
4
-
5
- tags {
6
- Name = "<%= @cloud['aws']['bucket_name'] %>"
7
- Component = "kite-stack"
8
- }
9
- }
10
-
11
- output "bucket_name" {
12
- value = "${aws_s3_bucket.kite_bucket.id}"
13
- }