From 783e9e489d743093e1086ac332612c26c42962f9 Mon Sep 17 00:00:00 2001 From: Michael Bolot Date: Fri, 17 Jun 2022 13:49:38 -0500 Subject: [PATCH] make remove rancher-csp-adapter 0.1.0+up0.1.0-rc8 --- .../rancher-csp-adapter-0.1.0+up0.1.0-rc8.tgz | Bin 1890 -> 0 bytes .../0.1.0+up0.1.0-rc8/Chart.yaml | 17 --- .../0.1.0+up0.1.0-rc8/templates/_helpers.tpl | 53 -------- .../templates/deployment.yaml | 32 ----- .../0.1.0+up0.1.0-rc8/templates/rbac.yaml | 114 ------------------ .../templates/serviceAccount.yaml | 17 --- .../0.1.0+up0.1.0-rc8/values.yaml | 18 --- 7 files changed, 251 deletions(-) delete mode 100644 assets/rancher-csp-adapter/rancher-csp-adapter-0.1.0+up0.1.0-rc8.tgz delete mode 100644 charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/Chart.yaml delete mode 100644 charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/_helpers.tpl delete mode 100644 charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/deployment.yaml delete mode 100644 charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/rbac.yaml delete mode 100644 charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/serviceAccount.yaml delete mode 100644 charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/values.yaml diff --git a/assets/rancher-csp-adapter/rancher-csp-adapter-0.1.0+up0.1.0-rc8.tgz b/assets/rancher-csp-adapter/rancher-csp-adapter-0.1.0+up0.1.0-rc8.tgz deleted file mode 100644 index e2377171e34be841a14ebd4faff8d9b11e76ad8f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1890 zcmV-o2c7sIiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PGrFZ{xTz&jS1(1}=*2wUr`!lk7rh3*@}H-JlmIu)X_I6ah_* zZ8j9CB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^^;$gm0or7dHO-t= z!(uB^wg2J$kbmD*!Y=v_`QwBz4(;;^m>B|DXo!n1kC-l6^?xop^dPd12oYi0pHH=Z z)%4FX!wR>op;760IBUL_0)eIPnfi6)Z0Q-k5bihayl&_8Mx1yHIz@i;)ELwG?D(`){ c+~4i&VGn!Q!+#= 1.22.0-0 < 1.25.0-0' - catalog.cattle.io/namespace: cattle-csp-adapter-system - catalog.cattle.io/os: linux - catalog.cattle.io/permits-os: linux - catalog.cattle.io/rancher-version: '>= 2.6.6-0 < 2.7.0-0' - catalog.cattle.io/release-name: rancher-csp-adapter - catalog.cattle.io/scope: management -apiVersion: v2 -appVersion: 0.1.0-rc8 -description: Cloud Service Provider Marketplace Adapter for Rancher. Monitors Rancher - entitlements against usage. -name: rancher-csp-adapter -version: 0.1.0+up0.1.0-rc8 diff --git a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/_helpers.tpl b/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/_helpers.tpl deleted file mode 100644 index 3652c4886..000000000 --- a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/_helpers.tpl +++ /dev/null @@ -1,53 +0,0 @@ -{{- define "system_default_registry" -}} -{{- if .Values.global.cattle.systemDefaultRegistry -}} -{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} -{{- else -}} -{{- "" -}} -{{- end -}} -{{- end -}} - -{{- define "csp-adapter.labels" -}} -app: rancher-csp-adapter -{{- end }} - -{{- define "csp-adapter.outputConfigMap" -}} -csp-config -{{- end }} - -{{- define "csp-adapter.outputNotification" -}} -csp-compliance -{{- end }} - -{{- define "csp-adapter.cacheSecret" -}} -csp-adapter-cache -{{- end }} - -{{- define "csp-adapter.hostnameSetting" -}} -server-url -{{- end }} - -{{- define "csp-adapter.versionSetting" -}} -server-version -{{- end }} - -{{- define "csp-adapter.csp" -}} -{{- if .Values.aws -}} - {{- if .Values.aws.enabled -}} -aws - {{- end -}} -{{- else -}} -"" -{{- end -}} -{{- end }} - -{{- define "csp-adapter.awsValuesSet" -}} -{{- if .Values.aws -}} - {{- if and .Values.aws.accountNumber .Values.aws.roleName -}} - true - {{- else -}} - false - {{- end -}} -{{- else -}} -false -{{- end -}} -{{- end }} diff --git a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/deployment.yaml b/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/deployment.yaml deleted file mode 100644 index a89c3c072..000000000 --- a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/deployment.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ .Chart.Name }} - namespace: cattle-csp-adapter-system -spec: - selector: - matchLabels: - app: {{ .Chart.Name }} - template: - metadata: - labels: - app: {{ .Chart.Name }} - spec: - containers: - - env: - - name: CATTLE_DEBUG - value: {{ .Values.debug | quote }} - - name: K8S_OUTPUT_CONFIGMAP - value: '{{ template "csp-adapter.outputConfigMap" }}' - - name: K8S_OUTPUT_NOTIFICATION - value: '{{ template "csp-adapter.outputNotification" }}' - - name: K8S_CACHE_SECRET - value: '{{ template "csp-adapter.cacheSecret" }}' - - name: K8S_HOSTNAME_SETTING - value: '{{ template "csp-adapter.hostnameSetting" }}' - - name: K8S_RANCHER_VERSION_SETTING - value: '{{ template "csp-adapter.versionSetting" }}' - image: '{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}' - name: {{ .Chart.Name }} - imagePullPolicy: "{{ .Values.image.imagePullPolicy }}" - serviceAccountName: {{ .Chart.Name }} diff --git a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/rbac.yaml b/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/rbac.yaml deleted file mode 100644 index 220c0d434..000000000 --- a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/rbac.yaml +++ /dev/null @@ -1,114 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: {{ .Chart.Name }}-cluster-role -rules: -- apiGroups: - - management.cattle.io - resources: - - ranchermetrics - verbs: - - get -- apiGroups: - - management.cattle.io - resources: - - rancherusernotifications - resourceNames: - - {{ template "csp-adapter.outputNotification" }} - verbs: - - "*" -- apiGroups: - - management.cattle.io - resources: - - rancherusernotifications - verbs: - - create -- apiGroups: - - management.cattle.io - resources: - - settings - resourceNames: - - {{ template "csp-adapter.hostnameSetting" }} - - {{ template "csp-adapter.versionSetting" }} - verbs: - - get - - list - - watch -- apiGroups: - - apiregistration.k8s.io - resources: - - apiservices - verbs: - - get - - list - - watch -- apiGroups: - - apiextensions.k8s.io - resources: - - customresourcedefinitions - verbs: - - get - - list - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: {{ .Chart.Name }}-crb -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: {{ .Chart.Name }}-cluster-role -subjects: - - kind: ServiceAccount - name: {{ .Chart.Name }} - namespace: cattle-csp-adapter-system ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: {{ .Chart.Name }}-role - namespace: cattle-csp-adapter-system -rules: -- apiGroups: - - "" - resources: - - secrets - resourceNames: - - {{ template "csp-adapter.cacheSecret" }} - verbs: - - "*" -- apiGroups: - - "" - resources: - - secrets - verbs: - - create -- apiGroups: - - "" - resources: - - configmaps - resourceNames: - - {{ template "csp-adapter.outputConfigMap" }} - verbs: - - "*" -- apiGroups: - - "" - resources: - - configmaps - verbs: - - create ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: {{ .Chart.Name }}-binding - namespace: cattle-csp-adapter-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: {{ .Chart.Name }}-role -subjects: - - kind: ServiceAccount - name: {{ .Chart.Name }} - namespace: cattle-csp-adapter-system \ No newline at end of file diff --git a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/serviceAccount.yaml b/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/serviceAccount.yaml deleted file mode 100644 index fa8f63e7f..000000000 --- a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/templates/serviceAccount.yaml +++ /dev/null @@ -1,17 +0,0 @@ -{{- if eq (include "csp-adapter.csp" . ) "aws" -}} - {{- if eq (include "csp-adapter.awsValuesSet" .) "true" -}} - {{- else -}} - {{- fail "If the aws provider is enabled, account number and role name must be provided" -}} - {{- end -}} -{{- else -}} -{{- fail "One cloud provider must be enabled" -}} -{{- end -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ .Chart.Name }} - namespace: cattle-csp-adapter-system - {{- if eq (include "csp-adapter.csp" . ) "aws" }} - annotations: - eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.aws.accountNumber }}:role/{{ .Values.aws.roleName }} - {{- end }} diff --git a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/values.yaml b/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/values.yaml deleted file mode 100644 index cc9a5ec29..000000000 --- a/charts/rancher-csp-adapter/0.1.0+up0.1.0-rc8/values.yaml +++ /dev/null @@ -1,18 +0,0 @@ -debug: false - -image: - repository: rancher/rancher-csp-adapter - tag: v0.1.0-rc8 - imagePullPolicy: IfNotPresent - -global: - cattle: - systemDefaultRegistry: "" - -tolerations: [] - -# at least one csp must be enabled like below -aws: - enabled: false - accountNumber: "" - roleName: ""