Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Commit

Permalink
create update payload manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Rogers committed Sep 24, 2018
1 parent c0d4ae8 commit 7064eb1
Show file tree
Hide file tree
Showing 27 changed files with 109 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ RUN cd /go/src/github.com/openshift/service-serving-cert-signer && go build ./cm

FROM centos:7
COPY --from=0 /go/src/github.com/openshift/service-serving-cert-signer/service-serving-cert-signer /usr/bin/service-serving-cert-signer

COPY manifests /manifests
LABEL io.openshift.release.operator=true
11 changes: 11 additions & 0 deletions manifests/01_serviceservingcertsigner_00_roles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:openshift:operator:service-cert-signer
roleRef:
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
namespace: openshift-core-operators
name: openshift-service-cert-signer-operator
6 changes: 6 additions & 0 deletions manifests/01_serviceservingcertsigner_01_namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
openshift.io/run-level: "1"
name: openshift-core-operators
14 changes: 14 additions & 0 deletions manifests/01_serviceservingcertsigner_02_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: servicecertsigneroperatorconfigs.servicecertsigner.config.openshift.io
spec:
scope: Cluster
group: servicecertsigner.config.openshift.io
version: v1alpha1
names:
kind: ServiceCertSignerOperatorConfig
plural: servicecertsigneroperatorconfigs
singular: servicecertsigneroperatorconfig
subresources:
status: {}
9 changes: 9 additions & 0 deletions manifests/01_serviceservingcertsigner_03_cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
namespace: openshift-core-operators
name: openshift-service-cert-signer-operator-config
data:
operator-config.yaml: |
apiVersion: operator.openshift.io/v1alpha1
kind: GenericOperatorConfig
40 changes: 40 additions & 0 deletions manifests/01_serviceservingcertsigner_04_deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: openshift-core-operators
name: openshift-service-cert-signer-operator
labels:
app: openshift-service-cert-signer-operator
spec:
replicas: 1
selector:
matchLabels:
app: openshift-service-cert-signer-operator
template:
metadata:
name: openshift-service-cert-signer-operator
labels:
app: openshift-service-cert-signer-operator
spec:
serviceAccountName: openshift-service-cert-signer-operator
containers:
- name: operator
image: openshift/origin-service-serving-cert-signer:latest
imagePullPolicy: IfNotPresent
command: ["service-serving-cert-signer", "operator"]
args:
- "--config=/var/run/configmaps/config/operator-config.yaml"
- "-v=4"
volumeMounts:
- mountPath: /var/run/configmaps/config
name: config
volumes:
- name: serving-cert
secret:
defaultMode: 400
secretName: openshift-service-cert-signer-operator-serving-cert
optional: true
- name: config
configMap:
defaultMode: 440
name: openshift-service-cert-signer-operator-config
7 changes: 7 additions & 0 deletions manifests/01_serviceservingcertsigner_05_sa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
namespace: openshift-core-operators
name: openshift-service-cert-signer-operator
labels:
app: openshift-service-cert-signer-operator
11 changes: 11 additions & 0 deletions manifests/01_serviceservingcertsigner_06_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: servicecertsigner.config.openshift.io/v1alpha1
kind: ServiceCertSignerOperatorConfig
metadata:
name: instance
spec:
managementState: Managed
imagePullSpec: openshift/origin-service-serving-cert-signer:latest
version: 3.10.0
logging:
level: 4
replicas: 1
8 changes: 8 additions & 0 deletions manifests/image-references
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: ImageStream
apiVersion: image.openshift.io/v1
spec:
tags:
- name: service-serving-cert-signer
from:
kind: DockerImage
name: quay.io/openshift/origin-service-serving-cert-signer

0 comments on commit 7064eb1

Please sign in to comment.