Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): Manifests update #82

Open
wants to merge 1 commit into
base: release-1.8.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions deploy/openshift/basic/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: spinnaker-operator
spec:
replicas: 1
selector:
matchLabels:
name: spinnaker-operator
template:
metadata:
labels:
name: spinnaker-operator
spec:
serviceAccountName: spinnaker-operator
containers:
- name: spinnaker-operator
image: armory/armory-operator:dev-ubi # Moving label, replaced at build time with a fixed version in "build" dir
command:
- spinnaker-operator
args:
- --disable-admission-controller
imagePullPolicy: Always
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "spinnaker-operator"
- name: halyard
image: armory/halyard-armory:operator-dev-ubi # Moving label, replaced at build time with a fixed version in "build" dir
imagePullPolicy: Always
ports:
- containerPort: 8064
protocol: TCP
readinessProbe:
httpGet:
path: /health
port: 8064
failureThreshold: 20
periodSeconds: 5
initialDelaySeconds: 20
livenessProbe:
tcpSocket:
port: 8064
initialDelaySeconds: 30
periodSeconds: 20
21 changes: 21 additions & 0 deletions deploy/openshift/basic/halyard_config_map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: halyard-config-map
data:
config: |
halyard:
halconfig:
directory: /Users/spinnaker/.hal
spinnaker:
config:
input:
bucket: halconfig
region: us-west-2
secrets:
vault:
enabled: false
url:
path:
role:
authMethod:
80 changes: 80 additions & 0 deletions deploy/openshift/basic/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: spinnaker-operator
rules:
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
- namespaces
verbs:
- '*'
- apiGroups:
- batch
- extensions
resources:
- jobs
verbs:
- '*'
- apiGroups:
- apps
- extensions
resources:
- secrets/finalizers
- deployments/finalizers
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- get
- create
- apiGroups:
- apps
resourceNames:
- spinnaker-operator
resources:
- deployments/finalizers
verbs:
- update
- apiGroups:
- spinnaker.armory.io
resources:
- '*'
- spinnakerservices
verbs:
- '*'
- apiGroups:
- spinnaker.io
resources:
- spinnakeraccounts
verbs:
- create
- get
- list
- update
- watch
- patch
- apiGroups:
- networking.k8s.io
- extensions
resources:
- ingresses
verbs:
- get
- list
- watch
11 changes: 11 additions & 0 deletions deploy/openshift/basic/role_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: spinnaker-operator
subjects:
- kind: ServiceAccount
name: spinnaker-operator
roleRef:
kind: Role
name: spinnaker-operator
apiGroup: rbac.authorization.k8s.io
4 changes: 4 additions & 0 deletions deploy/openshift/basic/service_account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: spinnaker-operator
46 changes: 46 additions & 0 deletions deploy/openshift/cluster/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: spinnaker-operator
spec:
replicas: 1
selector:
matchLabels:
name: spinnaker-operator
template:
metadata:
labels:
name: spinnaker-operator
spec:
serviceAccountName: spinnaker-operator
containers:
- name: spinnaker-operator
image: armory/armory-operator:dev-ubi # Moving label, replaced at build time with a fixed version in "build" dir
command:
- spinnaker-operator
imagePullPolicy: Always
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "spinnaker-operator"
- name: halyard
image: armory/halyard-armory:operator-dev-ubi # Moving label, replaced at build time with a fixed version in "build" dir
imagePullPolicy: Always
ports:
- containerPort: 8064
protocol: TCP
readinessProbe:
httpGet:
path: /health
port: 8064
failureThreshold: 20
periodSeconds: 5
initialDelaySeconds: 20
livenessProbe:
tcpSocket:
port: 8064
initialDelaySeconds: 30
periodSeconds: 20
21 changes: 21 additions & 0 deletions deploy/openshift/cluster/halyard_config_map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: halyard-config-map
data:
config: |
halyard:
halconfig:
directory: /Users/spinnaker/.hal
spinnaker:
config:
input:
bucket: halconfig
region: us-west-2
secrets:
vault:
enabled: false
url: https://vault.url
path: example
role: example
authMethod: KUBERNETES
93 changes: 93 additions & 0 deletions deploy/openshift/cluster/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: spinnaker-operator-role
rules:
- apiGroups:
- ""
resources:
- pods
- ingresses/status
- endpoints
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- services
- events
- configmaps
- secrets
- namespaces
- ingresses
verbs:
- create
- get
- list
- update
- watch
- patch
- apiGroups:
- apps
- extensions
resources:
- secrets/finalizers
- deployments/finalizers
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- create
- get
- list
- update
- watch
- patch
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- get
- create
- apiGroups:
- spinnaker.armory.io
resources:
- '*'
- spinnakerservices
verbs:
- create
- get
- list
- update
- watch
- patch
- apiGroups:
- spinnaker.io
resources:
- spinnakeraccounts
verbs:
- create
- get
- list
- update
- watch
- patch
- apiGroups:
- admissionregistration.k8s.io
resources:
- validatingwebhookconfigurations
verbs:
- '*'
- apiGroups:
- networking.k8s.io
- extensions
resources:
- ingresses
verbs:
- get
- list
- watch
12 changes: 12 additions & 0 deletions deploy/openshift/cluster/role_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: spinnaker-operator-binding
subjects:
- kind: ServiceAccount
name: spinnaker-operator
namespace: spinnaker-operator # edit if you want the operator to live somewhere besides here
roleRef:
kind: ClusterRole
name: spinnaker-operator-role
apiGroup: rbac.authorization.k8s.io
4 changes: 4 additions & 0 deletions deploy/openshift/cluster/service_account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: spinnaker-operator
4 changes: 2 additions & 2 deletions deploy/operator/basic/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: spinnaker-operator
containers:
- name: spinnaker-operator
image: armory/armory-operator:1.8.8
image: armory/armory-operator:1.8.10
command:
- spinnaker-operator
args:
Expand All @@ -33,7 +33,7 @@ spec:
- name: OPERATOR_NAME
value: "spinnaker-operator"
- name: halyard
image: armory/halyard-armory:1.12.0-2c14811-operator
image: armory/halyard-armory:1.12.0-73d4524-operator
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8064
Expand Down
4 changes: 2 additions & 2 deletions deploy/operator/cluster/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: spinnaker-operator
containers:
- name: spinnaker-operator
image: armory/armory-operator:1.8.8
image: armory/armory-operator:1.8.10
command:
- spinnaker-operator
imagePullPolicy: IfNotPresent
Expand All @@ -29,7 +29,7 @@ spec:
- name: DEBUG_ENDPOINT
value: "https://debug.armory.io"
- name: halyard
image: armory/halyard-armory:1.12.0-2c14811-operator
image: armory/halyard-armory:1.12.0-73d4524-operator
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8064
Expand Down
Loading