Add PR changes needed to icon and patch
parent
cfacf7f8d6
commit
d5be7a37b8
|
@ -1,21 +0,0 @@
|
|||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
|
@ -1,19 +0,0 @@
|
|||
apiVersion: v1
|
||||
appVersion: 3.8.0
|
||||
description: Control Agent for managing StreamSets Control Hub Deployments
|
||||
home: https://streamsets.com
|
||||
icon: https://github.com/streamsets/datacollector/raw/master/basic-lib/src/main/resources/sdcipc.png
|
||||
keywords:
|
||||
- streamsets
|
||||
- sdc
|
||||
- sch
|
||||
maintainers:
|
||||
- email: thomas.ganka@streamsets.com
|
||||
name: thomasganka
|
||||
name: control-agent
|
||||
sources:
|
||||
- https://github.com/streamsets/helm-charts/tree/master/incubating/control-agent
|
||||
version: 2.0.1
|
||||
annotations:
|
||||
catalog.cattle.io/certified: partner
|
||||
catalog.cattle.io/release-name: streamsets
|
|
@ -1,52 +0,0 @@
|
|||
# StreamSets Control Agent
|
||||
|
||||
The [StreamSets](https://streamsets.com) control agent manages StreamSets Control Hub deployments.
|
||||
|
||||
## Introduction
|
||||
|
||||
This chart supports both RBAC and non-RBAC enabled clusters. It has no dependencies.
|
||||
|
||||
## Installing the Chart
|
||||
|
||||
First, add the streamsets stable repository to helm.
|
||||
|
||||
```bash
|
||||
helm repo add streamsets https://streamsets.github.io/helm-charts/stable
|
||||
```
|
||||
|
||||
To install the chart with the release name `my-release` into the namespace `streamsets`:
|
||||
|
||||
```bash
|
||||
helm install streamsets/control-agent --name my-release --namespace streamsets
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
The following tables lists the configurable parameters of the chart and their default values.
|
||||
|
||||
| Parameter | Description | Default |
|
||||
| ------------------------------- | -------------------------------------------------------------------- | ----------------------------------------- |
|
||||
| `image.repository` | Control Agent image name | `streamsets/control-agent` |
|
||||
| `image.tag` | The version of the official image to use | `3.0.0` |
|
||||
| `image.pullPolicy` | Pull policy for the image | `IfNotPresent` |
|
||||
| `streamsets.orgId` | This is the part of your SCH/DPM username after the `@` | None (Required) |
|
||||
| `streamsets.api.url` | The URL for the SCH/DPM instance to connect to | `https://cloud.streamsets.com` |
|
||||
| `streamsets.api.token` | Agent auth token from the SCH/DPM REST API or UI | None (Required) |
|
||||
| `rbac.enabled` | Creates req'd ServiceAccount and Role on RBAC-enabled cluster | `true` |
|
||||
| `resources` | Resource request for the pod | None |
|
||||
| `nodeSelector` | Node Selector to apply to the deployment | None |
|
||||
|
||||
`streamsets.api.token` and `streamsets.orgId` are required values
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:
|
||||
|
||||
```bash
|
||||
helm install streamsets/control-agent --set streamsets.api.token="my_api_token" --set streamsets.orgId="my_org"
|
||||
```
|
||||
|
||||
Alternatively, a YAML file that specifies the values for the parameters can be provided while
|
||||
installing the chart. For example:
|
||||
|
||||
```bash
|
||||
helm install streamsets/control-agent --values values.yaml
|
||||
```
|
|
@ -1,17 +0,0 @@
|
|||
[libdefaults]
|
||||
default_realm = <realm of your organization>
|
||||
dns_lookup_kdc = false
|
||||
dns_lookup_realm = false
|
||||
ticket_lifetime = 86400
|
||||
renew_lifetime = 604800
|
||||
forwardable = true
|
||||
default_tgs_enctypes = aes256-cts
|
||||
default_tkt_enctypes = aes256-cts
|
||||
permitted_enctypes = aes256-cts
|
||||
udp_preference_limit = 1
|
||||
[realms]
|
||||
<realm of your organization> = {
|
||||
kdc = <kdc>
|
||||
admin_server = <admin server>
|
||||
}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
The agent has been successfully installed.
|
||||
Visit {{ .Values.streamsets.api.url }}/sch/provisioning/deployments to continue setup.
|
|
@ -1,32 +0,0 @@
|
|||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "control-agent.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "control-agent.fullname" -}}
|
||||
{{- if .Values.fullnameOverride -}}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- if contains $name .Release.Name -}}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "control-agent.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
|
@ -1,87 +0,0 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
helm.sh/chart: {{ include "control-agent.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
spec:
|
||||
{{- if .Values.rbac.enabled }}
|
||||
serviceAccountName: {{ include "control-agent.fullname" . }}
|
||||
{{- else }}
|
||||
serviceAccountName: default
|
||||
{{- end }}
|
||||
terminationGracePeriodSeconds: 60
|
||||
containers:
|
||||
- name: {{ include "control-agent.fullname" . }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
{{- if .Values.krb.enabled }}
|
||||
volumeMounts:
|
||||
- name: krb5conf
|
||||
mountPath: "/opt/kerberos"
|
||||
readOnly: true
|
||||
{{- end}}
|
||||
{{- if .Values.resources }}
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 12 }}
|
||||
{{- end }}
|
||||
env:
|
||||
- name: HOST
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.podIP
|
||||
- name: dpm_agent_master_url
|
||||
value: "https://kubernetes.default.svc.cluster.local"
|
||||
- name: dpm_agent_cof_type
|
||||
value: KUBERNETES
|
||||
- name: dpm_agent_dpm_baseurl
|
||||
value: {{ default "https://cloud.streamsets.com" .Values.streamsets.api.url }}
|
||||
- name: dpm_agent_component_id
|
||||
value: {{ .Release.Name }}-{{ .Values.streamsets.orgId }}
|
||||
- name: dpm_agent_token_string
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
key: apiToken
|
||||
- name: dpm_agent_name
|
||||
value: {{ .Release.Name }}
|
||||
- name: dpm_agent_orgId
|
||||
value: {{required "An SCH orgId is required!" .Values.streamsets.orgId }}
|
||||
- name: dpm_agent_secret
|
||||
value: {{ include "control-agent.fullname" . }}
|
||||
- name: dpm_agent_crd_enabled
|
||||
value: "{{.Values.streamsets.crdEnabled}}"
|
||||
{{- if .Values.krb.enabled }}
|
||||
- name: dpm_agent_kerberos_enabled
|
||||
value: "true"
|
||||
- name: KRB5_CONFIG
|
||||
value: "/opt/kerberos/krb5.conf"
|
||||
- name: dpm_agent_kerberos_secret
|
||||
value: kerbsecret
|
||||
- name: dpm_agent_kdc_type
|
||||
value: {{ .Values.krb.kdcType }}
|
||||
{{- end}}
|
||||
{{- if .Values.krb.enabled }}
|
||||
volumes:
|
||||
- name: krb5conf
|
||||
secret:
|
||||
secretName: krb5conf
|
||||
{{- end}}
|
||||
{{- if .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
|
@ -1,32 +0,0 @@
|
|||
{{- if .Values.krb.enabled }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: krb5conf
|
||||
labels:
|
||||
app: {{ template "control-agent.fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
type: Opaque
|
||||
data:
|
||||
{{ (.Files.Glob "krb/krb5.conf").AsSecrets | indent 2 }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: kerbsecret
|
||||
labels:
|
||||
app: {{ template "control-agent.fullname" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
type: Opaque
|
||||
data:
|
||||
encryption_types: {{required "encryption types to use when creating a keytab for service principal!" .Values.krb.encryptionTypes | b64enc }}
|
||||
container_dn: {{required "distinguished name of the container under which new principals will be created is required!" .Values.krb.containerDn | b64enc }}
|
||||
ldap_url: {{required "URL of the LDAP service provider is required!" .Values.krb.ldapUrl | b64enc }}
|
||||
admin_principal: {{required "user account which has privileges to create, search and destroy service principals is required!" .Values.krb.adminPrincipal | b64enc }}
|
||||
admin_key : {{required "secret key for the admin principal is required!" .Values.krb.adminKey | b64enc }}
|
||||
realm : {{required "the realm of the organization is required!" .Values.krb.realm | b64enc }}
|
||||
{{- end}}
|
|
@ -1,91 +0,0 @@
|
|||
{{- if .Values.rbac.enabled }}
|
||||
kind: ServiceAccount
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
helm.sh/chart: {{ include "control-agent.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
---
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
metadata:
|
||||
namespace: {{ .Release.Namespace }}
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
helm.sh/chart: {{ include "control-agent.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
rules:
|
||||
- apiGroups: ["", "extensions", "autoscaling", "apps"]
|
||||
resources: ["pods", "deployments", "replicasets", "horizontalpodautoscalers", "services", "ingresses"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "update"]
|
||||
{{- if .Values.streamsets.crdEnabled }}
|
||||
- apiGroups: ["streamsets.k8s.io"]
|
||||
resources: ["sdcs"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||
{{- end }}
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
helm.sh/chart: {{ include "control-agent.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
---
|
||||
{{- if .Values.streamsets.crdEnabled }}
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: streamsets-crd-handler
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
helm.sh/chart: {{ include "control-agent.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
rules:
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions", ]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["apiextensions.k8s.io", "streamsets.k8s.io"]
|
||||
resources: ["customresourcedefinitions", "sdcs"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
helm.sh/chart: {{ include "control-agent.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: streamsets-crd-handler
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -1,22 +0,0 @@
|
|||
{{- if .Values.streamsets.crdEnabled }}
|
||||
apiVersion: apiextensions.k8s.io/v1beta1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: sdcs.streamsets.k8s.io
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
helm.sh/chart: {{ include "control-agent.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
annotations:
|
||||
"helm.sh/hook": crd-install
|
||||
"helm.sh/hook-delete-policy": before-hook-creation
|
||||
scope: Namespaced
|
||||
spec:
|
||||
group: streamsets.k8s.io
|
||||
version: v1
|
||||
names:
|
||||
kind: SdcCustomResource
|
||||
plural: sdcs
|
||||
singular: sdc
|
||||
{{- end }}
|
|
@ -1,12 +0,0 @@
|
|||
kind: Secret
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ include "control-agent.fullname" . }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "control-agent.name" . }}
|
||||
helm.sh/chart: {{ include "control-agent.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
type: Opaque
|
||||
data:
|
||||
apiToken: {{ required "A Control Agent API token is required!" .Values.streamsets.api.token | b64enc }}
|
|
@ -1,28 +0,0 @@
|
|||
# Default values for Streamsets Control Agent
|
||||
image:
|
||||
repository: streamsets/control-agent
|
||||
tag: latest
|
||||
pullPolicy: Always
|
||||
streamsets:
|
||||
orgId: <your org id>
|
||||
crdEnabled: false
|
||||
api:
|
||||
url: https://cloud.streamsets.com
|
||||
token: <auth token for agent>
|
||||
rbac:
|
||||
enabled: true
|
||||
krb:
|
||||
enabled: false
|
||||
encryptionTypes: <encryption types to use when creating a keytab for service principal>
|
||||
containerDn: <distinguished name of the container under which new principals will be created>
|
||||
ldapUrl: <URL of the LDAP service provider>
|
||||
adminPrincipal: <user account which has privileges to create, search and destroy service principals>
|
||||
adminKey: <secret key for the above account>
|
||||
realm: <the realm of the organization>
|
||||
kdcType: < AD | MIT >
|
||||
##
|
||||
## Configure resource requests and limits
|
||||
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
|
||||
##
|
||||
resources: {}
|
||||
nodeSelector: {}
|
|
@ -1,2 +1,2 @@
|
|||
url: https://github.com/streamsets/helm-charts/blob/master/docs/stable/control-agent-2.0.1.tgz?raw=true
|
||||
url: https://github.com/thomasganka/helm-charts/blob/master/docs/stable/control-agent-2.0.1.tgz?raw=true
|
||||
packageVersion: 00
|
||||
|
|
|
@ -1,26 +1,10 @@
|
|||
diff -x '*.tgz' -x '*.lock' -uNr packages/streamsets/charts-original/Chart.yaml packages/streamsets/charts/Chart.yaml
|
||||
--- packages/streamsets/charts-original/Chart.yaml
|
||||
+++ packages/streamsets/charts/Chart.yaml
|
||||
@@ -2,15 +2,18 @@
|
||||
appVersion: 3.8.0
|
||||
description: Control Agent for managing StreamSets Control Hub Deployments
|
||||
home: https://streamsets.com
|
||||
-icon: https://streamsets.com/wp-content/uploads/2016/08/StreamSets-logo-small.png
|
||||
+icon: https://github.com/streamsets/datacollector/raw/master/basic-lib/src/main/resources/sdcipc.png
|
||||
keywords:
|
||||
- streamsets
|
||||
- sdc
|
||||
- sch
|
||||
maintainers:
|
||||
-- email: adam@streamsets.com
|
||||
- name: kunickiaj
|
||||
+- email: thomas.ganka@streamsets.com
|
||||
+ name: thomasganka
|
||||
name: control-agent
|
||||
@@ -14,3 +14,6 @@
|
||||
sources:
|
||||
- https://github.com/streamsets/helm-charts/tree/master/incubating/control-agent
|
||||
version: 2.0.1
|
||||
+annotations:
|
||||
+ catalog.cattle.io/certified: partner
|
||||
+ catalog.cattle.io/release-name: streamsets-v1.0.0
|
||||
\ No newline at end of file
|
||||
+ catalog.cattle.io/release-name: streamsets
|
||||
|
|
Loading…
Reference in New Issue