From 99c9d5bac6f9e7c17805f911dc65409982c4d01e Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Mon, 4 Jan 2021 18:13:36 +0000 Subject: [PATCH] Split out crds for aws-iam-authenticator --- .../templates/aws-iam-authenticator/crds.yaml | 32 ++++++++++++++++++ .../deployment.yaml} | 33 ------------------- scripts/publish.sh | 3 +- 3 files changed, 34 insertions(+), 34 deletions(-) create mode 100644 charts/kubeadm/templates/aws-iam-authenticator/crds.yaml rename charts/kubeadm/templates/{aws-iam-authenticator.yaml => aws-iam-authenticator/deployment.yaml} (81%) diff --git a/charts/kubeadm/templates/aws-iam-authenticator/crds.yaml b/charts/kubeadm/templates/aws-iam-authenticator/crds.yaml new file mode 100644 index 0000000..7ff85f7 --- /dev/null +++ b/charts/kubeadm/templates/aws-iam-authenticator/crds.yaml @@ -0,0 +1,32 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: iamidentitymappings.iamauthenticator.k8s.aws +spec: + group: iamauthenticator.k8s.aws + version: v1alpha1 + scope: Cluster + names: + plural: iamidentitymappings + singular: iamidentitymapping + kind: IAMIdentityMapping + categories: + - all + subresources: + status: {} + validation: + openAPIV3Schema: + properties: + spec: + required: + - arn + - username + properties: + arn: + type: string + username: + type: string + groups: + type: array + items: + type: string diff --git a/charts/kubeadm/templates/aws-iam-authenticator.yaml b/charts/kubeadm/templates/aws-iam-authenticator/deployment.yaml similarity index 81% rename from charts/kubeadm/templates/aws-iam-authenticator.yaml rename to charts/kubeadm/templates/aws-iam-authenticator/deployment.yaml index 962805e..968e78e 100644 --- a/charts/kubeadm/templates/aws-iam-authenticator.yaml +++ b/charts/kubeadm/templates/aws-iam-authenticator/deployment.yaml @@ -1,36 +1,3 @@ -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: iamidentitymappings.iamauthenticator.k8s.aws -spec: - group: iamauthenticator.k8s.aws - version: v1alpha1 - scope: Cluster - names: - plural: iamidentitymappings - singular: iamidentitymapping - kind: IAMIdentityMapping - categories: - - all - subresources: - status: {} - validation: - openAPIV3Schema: - properties: - spec: - required: - - arn - - username - properties: - arn: - type: string - username: - type: string - groups: - type: array - items: - type: string ---- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: diff --git a/scripts/publish.sh b/scripts/publish.sh index aed9167..88fcac4 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -28,7 +28,8 @@ do fi echo "Processing $dir" - helm lint $dir && helm --debug package $dir + helm lint $dir || true + helm --debug package $dir done cp $SRCROOT/*.tgz output/