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 +4 -4
- data/.drone.yml +27 -11
- data/.ruby-version +1 -1
- data/VERSION +1 -0
- data/lib/kite/generate.rb +1 -1
- data/lib/kite/version.rb +1 -1
- data/tpl/aws/environment/main.tf.tt +0 -2
- data/tpl/aws/environment/versions.tf +8 -0
- data/tpl/baremetal/environment/.gitkeep +0 -0
- data/tpl/gcp/environment/gcs.tf.tt +2 -4
- data/tpl/gcp/environment/main.tf.tt +7 -3
- data/tpl/gcp/environment/outputs.tf.tt +2 -2
- data/tpl/gcp/environment/versions.tf +8 -0
- data/tpl/skel/config/cloud.yml +1 -0
- metadata +6 -3
- data/tpl/aws/environment/s3.tf.tt +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7552fc6615c7625de7e6a0af8a1d754d3fe6182ef9bc3647629bfa9433dfa8ad
|
4
|
+
data.tar.gz: 40ab1c6d62b70cd9a7af5f5542553b14eb09d4cb20484761ca0981d384ba3a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
12
|
-
|
15
|
+
branch:
|
16
|
+
exclude:
|
17
|
+
- master
|
18
|
+
- "*stable"
|
13
19
|
|
14
|
-
- name: Bump and
|
15
|
-
image:
|
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
|
-
-
|
28
|
+
- BUNDLE_GEMFILE=/sdk/Gemfile bundle exec rake --rakefile=/sdk/Rakefile ci:prebuild
|
21
29
|
when:
|
22
|
-
event:
|
23
|
-
- push
|
24
30
|
branch:
|
25
|
-
-
|
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
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5
|
1
|
+
2.6.5
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.2.1
|
data/lib/kite/generate.rb
CHANGED
@@ -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]}"
|
data/lib/kite/version.rb
CHANGED
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
|
-
|
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 =
|
3
|
-
project
|
4
|
-
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 = "
|
3
|
-
value =
|
2
|
+
description = "Google Cloud service account key"
|
3
|
+
value = base64encode(file("<%= @cloud['gcp']['service_account'] %>"))
|
4
4
|
sensitive = true
|
5
5
|
}
|
data/tpl/skel/config/cloud.yml
CHANGED
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.
|
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:
|
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/
|
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
|
-
}
|