Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit 0c75815

Browse files
author
Christopher Hein
authored
Merge pull request #57 from christopherhein/release/50
Adding First Release To Use In-Cluster
2 parents b62fc1a + 1f3d5d5 commit 0c75815

File tree

3 files changed

+91
-86
lines changed

3 files changed

+91
-86
lines changed

.goreleaser.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ project_name: aws-operator
55
before:
66
hooks:
77
- make codegen
8-
- make update-bindata
98

109
# Builds the binary for each platform
1110
builds:
@@ -43,7 +42,7 @@ release:
4342

4443
# Creates a Docker container with the operator packaged into it for distribution
4544
dockers:
46-
- image: christopherhein/aws-operator
45+
- image: 915347744415.dkr.ecr.us-west-2.amazonaws.com/aws-operator
4746
binary: aws-operator
4847
dockerfile: Dockerfile
4948
tag_templates:

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,10 @@ release:
1010
rm -fr dist
1111
goreleaser
1212

13-
.PHONY: install-bindata
14-
install-bindata:
15-
go get -u github.com/jteeuwen/go-bindata/...
16-
1713
.PHONY: install-aws-codegen
1814
install-aws-codegen:
1915
go get -u github.com/christopherhein/aws-operator-codegen
2016

21-
# .PHONY: update-bindata
22-
# update-bindata:
23-
# go generate ./pkg/cloudformation/
24-
2517
.PHONY: aws-codegen
2618
aws-codegen:
2719
aws-operator-codegen process

configs/aws-operator.yaml

Lines changed: 90 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,92 @@
1-
---
2-
kind: Namespace
31
apiVersion: v1
4-
metadata:
5-
name: aws-operator
6-
---
7-
kind: ClusterRole
8-
apiVersion: rbac.authorization.k8s.io/v1beta1
9-
metadata:
10-
name: aws-operator
11-
namespace: aws-operator
12-
rules:
13-
- apiGroups:
14-
- extensions
15-
resources:
16-
- thirdpartyresources
17-
verbs:
18-
- get
19-
- list
20-
- watch
21-
- create
22-
- delete
23-
- update
24-
- apiGroups:
25-
- apiextensions.k8s.io
26-
resources:
27-
- customresourcedefinitions
28-
verbs:
29-
- get
30-
- list
31-
- watch
32-
- create
33-
- delete
34-
- apiGroups:
35-
- operator.aws
36-
resources:
37-
- "*"
38-
verbs:
39-
- "*"
40-
---
41-
apiVersion: v1
42-
kind: ServiceAccount
43-
metadata:
44-
name: aws-operator
45-
namespace: aws-operator
46-
---
47-
kind: ClusterRoleBinding
48-
apiVersion: rbac.authorization.k8s.io/v1beta1
49-
metadata:
50-
name: aws-operator
51-
namespace: aws-operator
52-
roleRef:
53-
apiGroup: rbac.authorization.k8s.io
54-
kind: ClusterRole
55-
name: aws-operator
56-
subjects:
2+
kind: List
3+
items:
4+
- kind: Namespace
5+
apiVersion: v1
6+
metadata:
7+
name: aws-operator
8+
9+
- kind: ClusterRole
10+
apiVersion: rbac.authorization.k8s.io/v1beta1
11+
metadata:
12+
name: aws-operator
13+
namespace: aws-operator
14+
rules:
15+
- apiGroups:
16+
- v1
17+
resources:
18+
- secrets
19+
- pods
20+
- configmaps
21+
- services
22+
verbs:
23+
- get
24+
- list
25+
- watch
26+
- create
27+
- delete
28+
- update
29+
- apiGroups:
30+
- apiextensions.k8s.io
31+
resources:
32+
- customresourcedefinitions
33+
verbs:
34+
- get
35+
- list
36+
- watch
37+
- create
38+
- delete
39+
- apiGroups:
40+
- operator.aws
41+
resources:
42+
- "*"
43+
verbs:
44+
- "*"
45+
5746
- kind: ServiceAccount
58-
name: aws-operator
59-
namespace: default
60-
# TODO: Uncomment when you have an image to deploy
61-
# ---
62-
# apiVersion: apps/v1beta1
63-
# kind: Deployment
64-
# metadata:
65-
# name: aws-operator
66-
# namespace: aws-operator
67-
# spec:
68-
# replicas: 1
69-
# template:
70-
# metadata:
71-
# labels:
72-
# app: aws-operator
73-
# spec:
74-
# serviceAccountName: aws-operator
75-
# containers:
76-
# - name: aws-operator
77-
# image: christopherhein/aws-operator:VERSION_NUMBER
78-
# imagePullPolicy: Always
47+
apiVersion: v1
48+
metadata:
49+
name: aws-operator
50+
namespace: aws-operator
51+
52+
- kind: ClusterRoleBinding
53+
apiVersion: rbac.authorization.k8s.io/v1beta1
54+
metadata:
55+
name: aws-operator
56+
namespace: aws-operator
57+
roleRef:
58+
apiGroup: rbac.authorization.k8s.io
59+
kind: ClusterRole
60+
name: aws-operator
61+
subjects:
62+
- kind: ServiceAccount
63+
name: aws-operator
64+
namespace: default
65+
66+
- kind: Deployment
67+
apiVersion: apps/v1beta1
68+
metadata:
69+
name: aws-operator
70+
namespace: aws-operator
71+
spec:
72+
replicas: 1
73+
template:
74+
metadata:
75+
labels:
76+
app: aws-operator
77+
spec:
78+
serviceAccountName: aws-operator
79+
containers:
80+
- name: aws-operator
81+
image: <account-id>.dkr.ecr.us-west-2.amazonaws.com/aws-operator:v0.0.1.alpha1
82+
imagePullPolicy: Always
83+
env:
84+
- name: AWS_ACCESS_KEY_ID
85+
value:
86+
- name: AWS_SECRET_ACCESS_KEY
87+
value:
88+
args:
89+
- --cluster-name=<cluster-name>
90+
- --region=<region>
91+
- --bucket=<bucket-name>
92+
- --account-id=<account-id>

0 commit comments

Comments
 (0)