Commit 904087bb by Jeremy Gustie

Bump redskyops chart to v0.1.2

parent d081e3e7
apiVersion: v1 apiVersion: v1
appVersion: v1.1.1 appVersion: v1.2.2
description: | description: |
An AIOps platform for deploying, scaling and managing containerized applications in Kubernetes environments. An AIOps platform for deploying, scaling and managing containerized applications in Kubernetes environments.
home: https://redskyops.dev/ home: https://redskyops.dev/
icon: file://../icon.png icon: file://../icon.png
name: redskyops
version: 0.1.1
maintainers: maintainers:
- name: redskyops - email: info@redskyops.dev
email: info@redskyops.dev name: redskyops
name: redskyops
version: 0.1.2
...@@ -15,7 +15,7 @@ questions: ...@@ -15,7 +15,7 @@ questions:
type: string type: string
label: Image Name label: Image Name
- variable: redskyTag - variable: redskyTag
default: "1.1.1" default: "1.2.2"
description: "Docker image tag" description: "Docker image tag"
type: string type: string
label: Image Tag label: Image Tag
......
{{- if .Values.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ .Release.Name }}-aggregate-to-patching
labels:
"redskyops.dev/aggregate-to-patching": "true"
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- patch
- get
- apiGroups:
- apps
- extensions
resources:
- deployments
- statefulsets
verbs:
- patch
- get
{{- end -}}
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
creationTimestamp: null
labels: labels:
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
name: experiments.redskyops.dev name: experiments.redskyops.dev
spec: spec:
group: redskyops.dev group: redskyops.dev
names: names:
kind: Experiment kind: Experiment
listKind: ExperimentList
plural: experiments plural: experiments
singular: experiment
scope: "" scope: ""
validation: validation:
openAPIV3Schema: openAPIV3Schema:
...@@ -30,16 +31,31 @@ spec: ...@@ -30,16 +31,31 @@ spec:
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string type: string
metadata: metadata:
description: Standard object metadata
type: object type: object
spec: spec:
description: ExperimentSpec defines the desired state of Experiment description: Specification of the desired behavior for an experiment
properties: properties:
budget:
description: Budget is the maximum number of trials to run for an experiment
across all clusters
format: int32
type: integer
burnIn:
description: Burn-in is the number of trials using random suggestions
at the start of an experiment
format: int32
type: integer
metrics: metrics:
description: Metrics defines the outcomes for the experiment description: Metrics defines the outcomes for the experiment
items: items:
description: Metric represents an observable outcome from a trial description: Metric represents an observable outcome from a trial
run run
properties: properties:
errorQuery:
description: Collection type specific query for the error associated
with collected metric value
type: string
minimize: minimize:
description: Indicator that the goal of the experiment is to minimize description: Indicator that the goal of the experiment is to minimize
the value of this metric the value of this metric
...@@ -58,8 +74,12 @@ spec: ...@@ -58,8 +74,12 @@ spec:
description: The port number or name on the matched service to description: The port number or name on the matched service to
collect the metric value from collect the metric value from
query: query:
description: Collection type specific query, e.g. PromQL or a description: Collection type specific query, e.g. Go template
JSON pointer expression for "local", PromQL for "prometheus" or a JSON pointer expression
(with curly braces) for "jsonpath"
type: string
scheme:
description: The scheme to use when collecting metrics
type: string type: string
selector: selector:
description: Selector matching services to collect this metric description: Selector matching services to collect this metric
...@@ -107,7 +127,8 @@ spec: ...@@ -107,7 +127,8 @@ spec:
type: object type: object
type: object type: object
type: type:
description: The metric collection type, e.g. "prometheus" description: 'The metric collection type, one of: local|prometheus|jsonpath,
default: local'
type: string type: string
required: required:
- name - name
...@@ -197,56 +218,9 @@ spec: ...@@ -197,56 +218,9 @@ spec:
patch: patch:
description: A Go Template that evaluates to valid patch. description: A Go Template that evaluates to valid patch.
type: string type: string
selector:
description: A selector matching multiple labeled objects the
patch should be applied to. Used only if the target reference
name is empty, the target reference API version and kind are
used to determine what type of object should be matched.
properties:
matchExpressions:
description: matchExpressions is a list of label selector
requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector
that contains values, a key, and an operator that relates
the key and values.
properties:
key:
description: key is the label key that the selector
applies to.
type: string
operator:
description: operator represents a key's relationship
to a set of values. Valid operators are In, NotIn,
Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If
the operator is In or NotIn, the values array must
be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced
during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A
single {key,value} in the matchLabels map is equivalent
to an element of matchExpressions, whose key field is "key",
the operator is "In", and the values array contains only
"value". The requirements are ANDed.
type: object
type: object
targetRef: targetRef:
description: Direct reference to the object the patch should be description: Direct reference to the object the patch should be
applied to. The name can be omitted to match by label selector. applied to.
properties: properties:
apiVersion: apiVersion:
description: API version of the referent. description: API version of the referent.
...@@ -287,7 +261,6 @@ spec: ...@@ -287,7 +261,6 @@ spec:
type: string type: string
required: required:
- patch - patch
- targetRef
type: object type: object
type: array type: array
replicas: replicas:
...@@ -346,9 +319,10 @@ spec: ...@@ -346,9 +319,10 @@ spec:
if the effective replica count is more then one if the effective replica count is more then one
properties: properties:
metadata: metadata:
description: Standard object metadata
type: object type: object
spec: spec:
description: TrialSpec defines the desired state of Trial description: Specification of the desired behavior for the trial
properties: properties:
approximateRuntime: approximateRuntime:
description: The approximate amount of time the trial run should description: The approximate amount of time the trial run should
...@@ -363,8 +337,10 @@ spec: ...@@ -363,8 +337,10 @@ spec:
on the associated experiment. on the associated experiment.
properties: properties:
name: name:
description: Parameter name being assigned
type: string type: string
value: value:
description: The value of the assignment
format: int64 format: int64
type: integer type: integer
required: required:
...@@ -543,6 +519,10 @@ spec: ...@@ -543,6 +519,10 @@ spec:
description: The Helm chart reference to release as part description: The Helm chart reference to release as part
of this task of this task
type: string type: string
helmChartVersion:
description: The Helm chart version, empty means use the
latest
type: string
helmValues: helmValues:
description: The Helm values to set, ignored unless helmChart description: The Helm values to set, ignored unless helmChart
is also set is also set
...@@ -592,10 +572,7 @@ spec: ...@@ -592,10 +572,7 @@ spec:
of a values mapping of a values mapping
properties: properties:
configMap: configMap:
description: ConfigMapHelmValuesFromSource is a description: The ConfigMap to select from
reference to a ConfigMap that contains "*values.yaml"
keys TODO How do document the side effect of things
like patches in the ConfigMap also being applied?
properties: properties:
name: name:
description: 'Name of the referent. More info: description: 'Name of the referent. More info:
...@@ -604,8 +581,6 @@ spec: ...@@ -604,8 +581,6 @@ spec:
kind, uid?' kind, uid?'
type: string type: string
type: object type: object
required:
- configMap
type: object type: object
type: array type: array
image: image:
...@@ -7162,6 +7137,11 @@ spec: ...@@ -7162,6 +7137,11 @@ spec:
- template - template
type: object type: object
type: object type: object
ttlSecondsAfterFinished:
description: The minimum number of seconds before an attempt
should be made to clean up the trial
format: int32
type: integer
values: values:
description: Values are the collected metrics at the end of description: Values are the collected metrics at the end of
the trial run the trial run
...@@ -7199,7 +7179,14 @@ spec: ...@@ -7199,7 +7179,14 @@ spec:
- template - template
type: object type: object
status: status:
description: ExperimentStatus defines the observed state of Experiment description: Current status of an experiment
properties:
activeTrials:
description: ActiveTrials is the observed number of running trials
format: int32
type: integer
required:
- activeTrials
type: object type: object
type: object type: object
version: v1alpha1 version: v1alpha1
...@@ -7217,13 +7204,12 @@ status: ...@@ -7217,13 +7204,12 @@ status:
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
creationTimestamp: null
labels: labels:
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
name: trials.redskyops.dev name: trials.redskyops.dev
spec: spec:
additionalPrinterColumns: additionalPrinterColumns:
...@@ -7238,7 +7224,9 @@ spec: ...@@ -7238,7 +7224,9 @@ spec:
group: redskyops.dev group: redskyops.dev
names: names:
kind: Trial kind: Trial
listKind: TrialList
plural: trials plural: trials
singular: trial
scope: "" scope: ""
subresources: {} subresources: {}
validation: validation:
...@@ -7256,9 +7244,10 @@ spec: ...@@ -7256,9 +7244,10 @@ spec:
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string type: string
metadata: metadata:
description: Standard object metadata
type: object type: object
spec: spec:
description: TrialSpec defines the desired state of Trial description: Specification of the desired behavior for a trial
properties: properties:
approximateRuntime: approximateRuntime:
description: The approximate amount of time the trial run should execute description: The approximate amount of time the trial run should execute
...@@ -7273,8 +7262,10 @@ spec: ...@@ -7273,8 +7262,10 @@ spec:
experiment. experiment.
properties: properties:
name: name:
description: Parameter name being assigned
type: string type: string
value: value:
description: The value of the assignment
format: int64 format: int64
type: integer type: integer
required: required:
...@@ -7446,6 +7437,9 @@ spec: ...@@ -7446,6 +7437,9 @@ spec:
description: The Helm chart reference to release as part of this description: The Helm chart reference to release as part of this
task task
type: string type: string
helmChartVersion:
description: The Helm chart version, empty means use the latest
type: string
helmValues: helmValues:
description: The Helm values to set, ignored unless helmChart description: The Helm values to set, ignored unless helmChart
is also set is also set
...@@ -7492,18 +7486,13 @@ spec: ...@@ -7492,18 +7486,13 @@ spec:
mapping mapping
properties: properties:
configMap: configMap:
description: ConfigMapHelmValuesFromSource is a reference description: The ConfigMap to select from
to a ConfigMap that contains "*values.yaml" keys TODO
How do document the side effect of things like patches
in the ConfigMap also being applied?
properties: properties:
name: name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?' TODO: Add other useful fields. apiVersion, kind, uid?'
type: string type: string
type: object type: object
required:
- configMap
type: object type: object
type: array type: array
image: image:
...@@ -13371,6 +13360,11 @@ spec: ...@@ -13371,6 +13360,11 @@ spec:
- template - template
type: object type: object
type: object type: object
ttlSecondsAfterFinished:
description: The minimum number of seconds before an attempt should
be made to clean up the trial
format: int32
type: integer
values: values:
description: Values are the collected metrics at the end of the trial description: Values are the collected metrics at the end of the trial
run run
...@@ -13401,7 +13395,7 @@ spec: ...@@ -13401,7 +13395,7 @@ spec:
type: array type: array
type: object type: object
status: status:
description: TrialStatus defines the observed state of Trial description: Current status of a trial
properties: properties:
assignments: assignments:
description: Assignments is a string representation of the trial assignments description: Assignments is a string representation of the trial assignments
...@@ -13437,7 +13431,7 @@ spec: ...@@ -13437,7 +13431,7 @@ spec:
or "Unknown or "Unknown
type: string type: string
type: type:
description: The condition type, e.g. "Complete" description: The condition type, e.g. "redskyops.dev/trial-complete"
type: string type: string
required: required:
- lastProbeTime - lastProbeTime
......
...@@ -7,10 +7,10 @@ metadata: ...@@ -7,10 +7,10 @@ metadata:
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
labels: labels:
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
control-plane: controller-manager control-plane: controller-manager
name: "{{ .Release.Name }}-controller-manager-metrics-service" name: "{{ .Release.Name }}-controller-manager-metrics-service"
spec: spec:
...@@ -19,6 +19,7 @@ spec: ...@@ -19,6 +19,7 @@ spec:
port: 8443 port: 8443
targetPort: https targetPort: https
selector: selector:
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
control-plane: controller-manager control-plane: controller-manager
--- ---
...@@ -29,21 +30,23 @@ metadata: ...@@ -29,21 +30,23 @@ metadata:
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
labels: labels:
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
control-plane: controller-manager control-plane: controller-manager
name: "{{ .Release.Name }}-controller-manager" name: "{{ .Release.Name }}-controller-manager"
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
control-plane: controller-manager control-plane: controller-manager
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
control-plane: controller-manager control-plane: controller-manager
...@@ -63,7 +66,11 @@ spec: ...@@ -63,7 +66,11 @@ spec:
- --metrics-addr=127.0.0.1:8080 - --metrics-addr=127.0.0.1:8080
command: command:
- /manager - /manager
envFrom:
- secretRef:
name: "{{ .Release.Name }}-manager"
image: {{ .Values.redskyImage }}:{{ .Values.redskyTag }} image: {{ .Values.redskyImage }}:{{ .Values.redskyTag }}
imagePullPolicy: {{ .Values.redskyImagePullPolicy }}
name: manager name: manager
resources: resources:
limits: limits:
...@@ -78,15 +85,4 @@ spec: ...@@ -78,15 +85,4 @@ spec:
runAsGroup: 65532 runAsGroup: 65532
runAsNonRoot: true runAsNonRoot: true
runAsUser: 65532 runAsUser: 65532
volumeMounts:
- mountPath: /home/nonroot
name: client-config
readOnly: true
terminationGracePeriodSeconds: 10 terminationGracePeriodSeconds: 10
volumes:
- name: client-config
secret:
items:
- key: client.yaml
path: .redsky
secretName: client-config
...@@ -2,23 +2,20 @@ ...@@ -2,23 +2,20 @@
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
creationTimestamp: null
labels: labels:
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
name: "{{ .Release.Name }}-manager-role" name: "{{ .Release.Name }}-manager-role"
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
- configmaps - namespaces
verbs: verbs:
- get
- list - list
- patch
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
...@@ -32,16 +29,6 @@ rules: ...@@ -32,16 +29,6 @@ rules:
verbs: verbs:
- list - list
- apiGroups: - apiGroups:
- apps
- extensions
resources:
- deployments
- statefulsets
verbs:
- get
- list
- patch
- apiGroups:
- batch - batch
- extensions - extensions
resources: resources:
...@@ -104,15 +91,31 @@ rules: ...@@ -104,15 +91,31 @@ rules:
- patch - patch
- update - update
--- ---
aggregationRule:
clusterRoleSelectors:
- matchLabels:
redskyops.dev/aggregate-to-patching: "true"
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
labels: labels:
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
name: "{{ .Release.Name }}-patching-role"
rules: []
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: redskyops
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
name: "{{ .Release.Name }}-proxy-role" name: "{{ .Release.Name }}-proxy-role"
rules: rules:
- apiGroups: - apiGroups:
...@@ -133,10 +136,10 @@ kind: ClusterRoleBinding ...@@ -133,10 +136,10 @@ kind: ClusterRoleBinding
metadata: metadata:
labels: labels:
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
name: "{{ .Release.Name }}-manager-rolebinding" name: "{{ .Release.Name }}-manager-rolebinding"
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
...@@ -152,10 +155,29 @@ kind: ClusterRoleBinding ...@@ -152,10 +155,29 @@ kind: ClusterRoleBinding
metadata: metadata:
labels: labels:
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
name: "{{ .Release.Name }}-patching-rolebinding"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: "{{ .Release.Name }}-patching-role"
subjects:
- kind: ServiceAccount
name: default
namespace: {{ .Release.Namespace | quote }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/name: redskyops
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
name: "{{ .Release.Name }}-proxy-rolebinding" name: "{{ .Release.Name }}-proxy-rolebinding"
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
......
{{- define "client.config" }}
address: {{ .Values.address | quote }}
oauth2:
client_id: {{ .Values.oauth2ClientID | quote }}
client_secret: {{ .Values.oauth2ClientSecret | quote }}
token_url: {{ .Values.oauth2TokenURL | quote }}
{{- end }}
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: client-config name: {{ .Release.Name }}-manager
labels: labels:
app.kubernetes.io/name: redskyops app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
type: Opaque type: Opaque
data: data:
client.yaml: {{ include "client.config" . | b64enc }} REDSKY_ADDRESS: {{ .Values.address | b64enc | quote }}
REDSKY_OAUTH2_CLIENT_ID: {{ .Values.oauth2ClientID | b64enc | quote }}
REDSKY_OAUTH2_CLIENT_SECRET: {{ .Values.oauth2ClientSecret | b64enc | quote }}
REDSKY_OAUTH2_TOKEN_URL: {{ .Values.oauth2TokenURL | b64enc | quote }}
# Override the Red Sky manager image name and tag # Override the Red Sky manager image name and tag
redskyImage: "gcr.io/redskyops/k8s-experiment" redskyImage: "gcr.io/redskyops/k8s-experiment"
redskyTag: "1.1.1" redskyTag: "1.2.2"
redskyImagePullPolicy: "Always"
# Configure the Red Sky server address # Configure the Red Sky server address
address: "" address: ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment