hippo-cli 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/bin/hippo +4 -4
  5. data/cli/apply_config.rb +1 -0
  6. data/cli/apply_services.rb +1 -0
  7. data/cli/console.rb +2 -0
  8. data/cli/create.rb +83 -0
  9. data/cli/deploy.rb +2 -0
  10. data/cli/init.rb +1 -1
  11. data/cli/install.rb +3 -1
  12. data/cli/key.rb +34 -0
  13. data/cli/kubectl.rb +2 -0
  14. data/cli/logs.rb +56 -0
  15. data/cli/objects.rb +50 -0
  16. data/cli/package_install.rb +30 -0
  17. data/cli/package_list.rb +40 -0
  18. data/cli/package_notes.rb +23 -0
  19. data/cli/package_test.rb +21 -0
  20. data/cli/package_uninstall.rb +27 -0
  21. data/cli/package_upgrade.rb +30 -0
  22. data/cli/package_values.rb +22 -0
  23. data/cli/prepare.rb +18 -0
  24. data/cli/run.rb +37 -0
  25. data/cli/secrets.rb +24 -0
  26. data/cli/stages.rb +26 -0
  27. data/cli/status.rb +25 -0
  28. data/cli/vars.rb +20 -0
  29. data/cli/version.rb +8 -0
  30. data/lib/hippo.rb +12 -0
  31. data/lib/hippo/bootstrap_parser.rb +64 -0
  32. data/lib/hippo/cli.rb +47 -14
  33. data/lib/hippo/extensions.rb +9 -0
  34. data/lib/hippo/image.rb +35 -31
  35. data/lib/hippo/manifest.rb +17 -7
  36. data/lib/hippo/object_definition.rb +18 -5
  37. data/lib/hippo/package.rb +124 -0
  38. data/lib/hippo/repository_tag.rb +38 -0
  39. data/lib/hippo/secret_manager.rb +61 -14
  40. data/lib/hippo/stage.rb +60 -26
  41. data/lib/hippo/util.rb +34 -0
  42. data/lib/hippo/version.rb +1 -1
  43. data/template/Hippofile +10 -2
  44. metadata +44 -13
  45. metadata.gz.sig +0 -0
  46. data/cli/secrets_edit.rb +0 -34
  47. data/cli/secrets_key.rb +0 -20
  48. data/lib/hippo/secret.rb +0 -112
  49. data/template/config/env-vars.yaml +0 -7
  50. data/template/deployments/web.yaml +0 -29
  51. data/template/deployments/worker.yaml +0 -26
  52. data/template/jobs/deploy/db-migration.yaml +0 -22
  53. data/template/jobs/install/load-schema.yaml +0 -22
  54. data/template/services/main.ingress.yaml +0 -13
  55. data/template/services/web.svc.yaml +0 -11
  56. data/template/stages/production.yaml +0 -7
@@ -1,7 +0,0 @@
1
- kind: ConfigMap
2
- apiVersion: v1
3
- metadata:
4
- name: env-vars
5
- data:
6
- RAILS_ENV: production
7
- RACK_TRUSTED_PROXIES: 127.0.0.1 ::1 10.217.0.0/16
@@ -1,29 +0,0 @@
1
- kind: Deployment
2
- apiVersion: apps/v1
3
- metadata:
4
- name: web
5
- spec:
6
- selector:
7
- matchLabels:
8
- process_type: web
9
- replicas: 1
10
- template:
11
- metadata:
12
- labels:
13
- process_type: web
14
- spec:
15
- containers:
16
- - name: myapp
17
- image: "{{ builds.app.image-name }}:{{ commit.ref }}"
18
- imagePullPolicy: Always
19
- command:
20
- - bundle
21
- - exec
22
- - puma
23
- - -C
24
- - config/puma.rb
25
- envFrom:
26
- - configMapRef:
27
- name: env-vars
28
- ports:
29
- - containerPort: 3000
@@ -1,26 +0,0 @@
1
- kind: Deployment
2
- apiVersion: apps/v1
3
- metadata:
4
- name: worker
5
- spec:
6
- selector:
7
- matchLabels:
8
- app: worker
9
- replicas: 1
10
- template:
11
- metadata:
12
- labels:
13
- app: worker
14
- spec:
15
- containers:
16
- - name: myapp
17
- image: "{{ builds.app.image-name }}:{{ commit.ref }}"
18
- imagePullPolicy: Always
19
- command:
20
- - bundle
21
- - exec
22
- - rake
23
- - jobs:work
24
- envFrom:
25
- - configMapRef:
26
- name: env-vars
@@ -1,22 +0,0 @@
1
- kind: Job
2
- apiVersion: batch/v1
3
- metadata:
4
- name: migration
5
- spec:
6
- backoffLimit: 0
7
- ttlSecondsAfterFinished: 60
8
- template:
9
- spec:
10
- restartPolicy: Never
11
- containers:
12
- - name: myapp
13
- image: "{{ builds.app.image-name }}:{{ commit.ref }}"
14
- imagePullPolicy: Always
15
- command:
16
- - bundle
17
- - exec
18
- - rake
19
- - db:migrate
20
- envFrom:
21
- - configMapRef:
22
- name: env-vars
@@ -1,22 +0,0 @@
1
- kind: Job
2
- apiVersion: batch/v1
3
- metadata:
4
- name: load-schema
5
- spec:
6
- backoffLimit: 0
7
- ttlSecondsAfterFinished: 300
8
- template:
9
- spec:
10
- restartPolicy: Never
11
- containers:
12
- - name: myapp
13
- image: "{{ builds.app.image-name }}:{{ commit.ref }}"
14
- imagePullPolicy: Always
15
- command:
16
- - bundle
17
- - exec
18
- - rake
19
- - db:schema:load
20
- envFrom:
21
- - configMapRef:
22
- name: env-vars
@@ -1,13 +0,0 @@
1
- kind: Ingress
2
- apiVersion: networking.k8s.io/v1beta1
3
- metadata:
4
- name: myapp
5
- spec:
6
- rules:
7
- - host: "{{ stage.vars.hostname }}"
8
- http:
9
- paths:
10
- - path: /
11
- backend:
12
- serviceName: web
13
- servicePort: 80
@@ -1,11 +0,0 @@
1
- kind: Service
2
- apiVersion: v1
3
- metadata:
4
- name: web
5
- spec:
6
- type: ClusterIP
7
- ports:
8
- - port: 80
9
- targetPort: 3000
10
- selector:
11
- process_type: web
@@ -1,7 +0,0 @@
1
- name: production
2
- branch: master
3
- namespace: myapp-production
4
- context: my-k8s-cluster
5
- vars:
6
- example: Hello world!
7
- hostname: myapp.mydomain.com