tectonic

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppVersionKubeAddon  is the variable/constant representing the contents of the respective file
	AppVersionKubeAddon = `` /* 271-byte string literal not displayed */

)
View Source
const (
	// AppVersionTectonicIngress  is the variable/constant representing the contents of the respective file
	AppVersionTectonicIngress = `` /* 259-byte string literal not displayed */

)
View Source
const (
	// BindingAdmin  is the variable/constant representing the contents of the respective file
	BindingAdmin = `` /* 383-byte string literal not displayed */

)
View Source
const (
	// BindingDiscovery  is the variable/constant representing the contents of the respective file
	BindingDiscovery = `` /* 306-byte string literal not displayed */

)
View Source
const (
	// RoleAdmin  is the variable/constant representing the contents of the respective file
	RoleAdmin = `` /* 203-byte string literal not displayed */

)
View Source
const (
	// RoleUser  is the variable/constant representing the contents of the respective file
	RoleUser = `` /* 1955-byte string literal not displayed */

)
View Source
const (
	// SvcAccountTectonicIngress  is the variable/constant representing the contents of the respective file
	SvcAccountTectonicIngress = `
apiVersion: v1
kind: ServiceAccount
metadata:
  name: tectonic-ingress-controller-operator
  namespace: openshift-ingress
`
)

Variables

View Source
var (
	// CaCertTectonicSystem  is the variable/constant representing the contents of the respective file
	CaCertTectonicSystem = template.Must(template.New("tectonic-system-01-ca-cert.yaml").Parse(`
apiVersion: v1
kind: Secret
metadata:
  name: tectonic-ca-cert-secret
  namespace: tectonic-system
type: Opaque
data:
  ca-cert: {{.IngressCaCert}}
`))
)
View Source
var (
	// ClusterConfigTectonicIngress  is the variable/constant representing the contents of the respective file
	ClusterConfigTectonicIngress = template.Must(template.New("tectonic-ingress-01-cluster-config.yaml").Parse(`
apiVersion: v1
kind: ConfigMap
metadata:
  name: cluster-config-v1
  namespace: openshift-ingress
data:
  ingress-config: |
    apiVersion: v1
    kind: TectonicIngressOperatorConfig
    type: {{.IngressKind}}
    statsPassword: {{.IngressStatusPassword}}
    statsUsername: admin
`))
)
View Source
var (
	// KubeAddonOperator  is the variable/constant representing the contents of the respective file
	KubeAddonOperator = template.Must(template.New("kube-addon-operator.yaml").Parse(`
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
  name: kube-addon-operator
  namespace: tectonic-system
  labels:
    k8s-app: kube-addon-operator
    managed-by-channel-operator: "true"
spec:
  replicas: 1
  selector:
    matchLabels:
      k8s-app: kube-addon-operator
  template:
    metadata:
      labels:
        k8s-app: kube-addon-operator
        tectonic-app-version-name: kube-addon
    spec:
      containers:
        - name: kube-addon-operator
          image: {{.KubeAddonOperatorImage}}
          resources:
            limits:
              cpu: 20m
              memory: 50Mi
            requests:
              cpu: 20m
              memory: 50Mi
          volumeMounts:
            - name: cluster-config
              mountPath: /etc/cluster-config
      imagePullSecrets:
        - name: coreos-pull-secret
      nodeSelector:
        node-role.kubernetes.io/master: ""
      restartPolicy: Always
      securityContext:
        runAsNonRoot: true
        runAsUser: 65534
      tolerations:
        - key: "node-role.kubernetes.io/master"
          operator: "Exists"
          effect: "NoSchedule"
      volumes:
        - name: cluster-config
          configMap:
            name: cluster-config-v1
            items:
              - key: addon-config
                path: addon-config
`))
)
View Source
var (
	// PullTectonicIngress  is the variable/constant representing the contents of the respective file
	PullTectonicIngress = template.Must(template.New("tectonic-ingress-03-pull.json").Parse(`
{
  "apiVersion": "v1",
  "kind": "Secret",
  "type": "kubernetes.io/dockerconfigjson",
  "metadata": {
    "namespace": "openshift-ingress",
    "name": "coreos-pull-secret"
  },
  "data": {
    ".dockerconfigjson": "{{.PullSecret}}"
  }
}
`))
)
View Source
var (
	// PullTectonicSystem  is the variable/constant representing the contents of the respective file
	PullTectonicSystem = template.Must(template.New("tectonic-system-02-pull.json").Parse(`
{
  "apiVersion": "v1",
  "kind": "Secret",
  "type": "kubernetes.io/dockerconfigjson",
  "metadata": {
    "namespace": "tectonic-system",
    "name": "coreos-pull-secret"
  },
  "data": {
    ".dockerconfigjson": "{{.PullSecret}}"
  }
}
`))
)
View Source
var (
	// TLSTectonicIngress  is the variable/constant representing the contents of the respective file
	TLSTectonicIngress = template.Must(template.New("tectonic-ingress-02-tls.yaml").Parse(`
apiVersion: v1
kind: Secret
metadata:
  name: tectonic-ingress-tls
  namespace: openshift-ingress
type: Opaque
data:
  tls.crt: {{.IngressTLSCert}}
  tls.key: {{.IngressTLSKey}}
  bundle.crt: {{.IngressTLSBundle}}
`))
)
View Source
var (
	// TectonicIngressControllerOperator  is the variable/constant representing the contents of the respective file
	TectonicIngressControllerOperator = template.Must(template.New("tectonic-ingress-05-operator.yaml").Parse(`
apiVersion: apps/v1beta2
kind: Deployment
metadata:
  name: tectonic-ingress-controller-operator
  namespace: openshift-ingress
  labels:
    k8s-app: tectonic-ingress-controller-operator
    managed-by-channel-operator: "true"
spec:
  replicas: 1
  selector:
    matchLabels:
      k8s-app: tectonic-ingress-controller-operator
  template:
    metadata:
      labels:
        k8s-app: tectonic-ingress-controller-operator
        tectonic-app-version-name: tectonic-ingress
    spec:
      containers:
        - name: tectonic-ingress-controller-operator
          image: {{.TectonicIngressControllerOperatorImage}}
          resources:
            limits:
              cpu: 20m
              memory: 50Mi
            requests:
              cpu: 20m
              memory: 50Mi
          volumeMounts:
            - name: cluster-config
              mountPath: /etc/cluster-config
      imagePullSecrets:
        - name: coreos-pull-secret
      nodeSelector:
        node-role.kubernetes.io/master: ""
      restartPolicy: Always
      securityContext:
        runAsNonRoot: true
        runAsUser: 65534
      serviceAccount: tectonic-ingress-controller-operator
      tolerations:
        - key: "node-role.kubernetes.io/master"
          operator: "Exists"
          effect: "NoSchedule"
      volumes:
        - name: cluster-config
          configMap:
            name: cluster-config-v1
            items:
              - key: ingress-config
                path: ingress-config
`))
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL