Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Prepare files for auto-generation and automation #198

Merged
merged 4 commits into from
Jan 30, 2020
Merged
Show file tree
Hide file tree
Changes from 2 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
49 changes: 26 additions & 23 deletions deploy/crds/dynatrace.com_oneagents_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
status: {}
validation:
openAPIV3Schema:
description: OneAgent is the Schema for the oneagents API
description: Dyantrace OneAgent for full-stack monitoring
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand All @@ -48,28 +48,28 @@ spec:
description: OneAgentSpec defines the desired state of OneAgent
properties:
apiUrl:
description: Dynatrace api url including `/api` path at the end either
set ENVIRONMENTID to the proper tenant id or change the apiUrl as
a whole, e.q. for Managed
description: Location of the Dynatrace API to connect to, including
your specific environment ID
type: string
args:
description: Arguments to the installer.
description: 'Optional: Arguments to the OneAgent installer'
items:
type: string
type: array
disableAgentUpdate:
description: If enabled, OneAgent pods won't be restarted automatically
in case a new version is available
description: Disable automatic restarts of OneAgent pods in case a new
version is available
type: boolean
dnsPolicy:
description: DNS Policy for the OneAgent pods.
description: 'Optional: Sets DNS Policy for the OneAgent pods'
type: string
enableIstio:
description: If enabled, Istio on the cluster will be configured automatically
to allow access to the Dynatrace environment.
to allow access to the Dynatrace environment
type: boolean
env:
description: List of environment variables to set for the installer.
description: 'Optional: List of environment variables to set for the
installer'
items:
description: EnvVar represents an environment variable present in
a Container.
Expand Down Expand Up @@ -167,25 +167,27 @@ spec:
type: object
type: array
image:
description: Installer image Defaults to docker.io/dynatrace/oneagent:latest
description: 'Optional: the Dynatrace installer container image Defaults
to docker.io/dynatrace/oneagent:latest'
type: string
labels:
additionalProperties:
type: string
description: Labels for the OneAgent pods
description: 'Optional: Adds additional labels for the OneAgent pods'
type: object
nodeSelector:
additionalProperties:
type: string
description: Node selector to control the selection of nodes (optional)
type: object
priorityClassName:
description: If specified, indicates the pod's priority. Name must be
defined by creating a PriorityClass object with that name. If not
specified the setting will be removed from the DaemonSet.
description: 'Optional: If specified, indicates the pod''s priority.
Name must be defined by creating a PriorityClass object with that
name. If not specified the setting will be removed from the DaemonSet.'
type: string
resources:
description: Compute Resources required by OneAgent containers.
description: 'Optional: define resources requests and limits for single
pods'
properties:
limits:
additionalProperties:
Expand All @@ -203,19 +205,18 @@ spec:
type: object
type: object
serviceAccountName:
description: Name of the service account for the OneAgent
description: 'Optional: set custom Service Account Name used with OneAgent
pods'
type: string
skipCertCheck:
description: Disable certificate validation checks for installer download
and API communication
type: boolean
tokens:
description: Name of secret containing tokens Secret must contain keys
`apiToken` and `paasToken`
description: Credentials for the OneAgent to connect back to Dynatrace.
type: string
tolerations:
description: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
(optional)
description: 'Optional: set tolerations for the OneAgent pods'
items:
description: The pod this Toleration is attached to tolerates any
taint that matches the triple <key,value,effect> using the matching
Expand Down Expand Up @@ -255,8 +256,8 @@ spec:
type: object
type: array
waitReadySeconds:
description: Defines the time to wait until OneAgent pod is ready after
update - default 300 sec (optional)
description: 'Optional: Defines the time to wait until OneAgent pod
is ready after update - default 300 sec'
minimum: 0
type: integer
required:
Expand Down Expand Up @@ -308,9 +309,11 @@ spec:
description: Defines the current state (Running, Updating, Error, ...)
type: string
updatedTimestamp:
description: The timestamp when the instance was last updated
format: date-time
type: string
version:
description: Dynatrace version being used.
type: string
type: object
required:
Expand Down
16 changes: 16 additions & 0 deletions deploy/kubernetes/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: dynatrace-oneagent-operator
labels:
dynatrace: operator
operator: oneagent
rules:
- apiGroups:
- "" # "" indicates the core API group
resources:
- nodes
verbs:
- get
- list
- watch
15 changes: 15 additions & 0 deletions deploy/kubernetes/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: dynatrace-oneagent-operator
labels:
dynatrace: operator
operator: oneagent
subjects:
- kind: ServiceAccount
name: dynatrace-oneagent-operator
namespace: dynatrace
roleRef:
kind: ClusterRole
name: dynatrace-oneagent-operator
apiGroup: rbac.authorization.k8s.io
Loading