Skip to content

Commit

Permalink
Merge pull request #58 from nilekhc/nilekh/r/v0.0.1
Browse files Browse the repository at this point in the history
release: Releases first alpha version v0.0.1
  • Loading branch information
k8s-ci-robot authored Aug 22, 2024
2 parents 67a625a + 8bd9f9a commit f2ef3ca
Show file tree
Hide file tree
Showing 37 changed files with 1,295 additions and 44 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ helm-manifest-install:
sed -i '/providerContainer:/,/providervol:/s/^#//g' manifest_staging/charts/secrets-store-sync-controller/temp_values.yaml; \
fi
helm install secrets-store-sync-controller --wait --timeout=5m \
--namespace secrets-store-sync-controller-system --create-namespace \
-f manifest_staging/charts/secrets-store-sync-controller/temp_values.yaml \
--set image.repository=$(REGISTRY)/$(IMAGE_NAME) \
--set image.tag=$(VERSION) \
Expand Down Expand Up @@ -280,18 +281,18 @@ release-manifest:
$(MAKE) manifests
@if [[ "$$(uname)" == "Darwin" ]]; then \
sed -i '' "s/version: .*/version: ${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/Chart.yaml; \
sed -i '' "s/appVersion: .*/appVersion: ${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/Chart.yaml; \
sed -i '' "s/tag: \"v${CURRENTVERSION}/tag: \"v${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/values.yaml; \
sed -i '' "s/appVersion: v .*/appVersion: v${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/Chart.yaml; \
sed -i '' "s/tag: v${CURRENTVERSION}/tag: v${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/values.yaml; \
sed -i '' "s/v${CURRENTVERSION}/v${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/README.md; \
else \
sed -i "s/version: .*/version: ${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/Chart.yaml; \
sed -i "s/appVersion: .*/appVersion: ${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/Chart.yaml; \
sed -i "s/tag: \"v${CURRENTVERSION}/tag: \"v${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/values.yaml; \
sed -i "s/appVersion: v .*/appVersion: v${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/Chart.yaml; \
sed -i "s/tag: v${CURRENTVERSION}/tag: v${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/values.yaml; \
sed -i "s/v${CURRENTVERSION}/v${NEWVERSION}/" manifest_staging/charts/secrets-store-sync-controller/README.md; \
fi

.PHONY: promote-staging-manifest
promote-staging-manifest: #promote staging manifests to release dir
$(MAKE) release-manifest
@rm -rf charts/secrets-store-sync-controller
@rm -rf charts/secrets-store-sync-controller/
@cp -r manifest_staging/charts ./charts
23 changes: 23 additions & 0 deletions charts/charts/secrets-store-sync-controller/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions charts/charts/secrets-store-sync-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: secrets-store-sync-controller
version: 0.0.1
appVersion: v0.0.1
kubeVersion: ">=1.27.0"
description: A Helm chart to install the Secrets Store Sync Controller and its associated resources inside a Kubernetes cluster.
30 changes: 30 additions & 0 deletions charts/charts/secrets-store-sync-controller/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Deploying the Secrets Store Sync Controller
You can deploy the Secrets Store Sync Controller with Helm using following command:
```sh
helm install -f values <path_to_values.yaml> secrets-store-sync-controller charts/secrets-store-sync-controller
```

## Configuration and Parameters
You can customize the installation by modifying values in the `values.yaml` file or by passing parameters to the helm install command using the `--set key=value[,key=value]` argument.

| Parameter Name | Description | Default Value |
|--------------------------------------------------|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `providerContainer` | The container for the Secrets Store Sync Controller. | `[- name: provider-aws-installer ...]` |
| `controllerName` | The name of the Secrets Store Sync Controller. | `secrets-store-sync-controller-manager` |
| `tokenRequestAudience` | The audience for the token request. | `[]` |
| `logVerbosity` | The log level. | `5` |
| `validatingAdmissionPolicies.applyPolicies` | Determines whether the Secrets Store Sync Controller should apply policies. | `true` |
| `validatingAdmissionPolicies.allowedSecretTypes` | The types of secrets that the Secrets Store Sync Controller should allow. | `["Opaque", "kubernetes.io/basic-auth", "bootstrap.kubernetes.io/token", "kubernetes.io/dockerconfigjson", "kubernetes.io/dockercfg", "kubernetes.io/ssh-auth", "kubernetes.io/tls"]` |
| `validatingAdmissionPolicies.deniedSecretTypes` | The types of secrets that the Secrets Store Sync Controller should deny. | `["kubernetes.io/service-account-token"]` |
| `image.repository` | The image repository of the Secrets Store Sync Controller. | `registry.k8s.io/secrets-store-sync/controller` |
| `image.pullPolicy` | Image pull policy. | `IfNotPresent` |
| `image.tag` | The specific image tag to use. Overrides the image tag whose default is the chart's `appVersion`. | `v0.0.1` |
| `securityContext` | Security context for the Secrets Store Sync Controller. | `{ allowPrivilegeEscalation: false, capabilities: { drop: [ALL] } }` |
| `resources` | The resource request/limits for the Secrets Store Sync Controller image. | `limits: 500m CPU, 128Mi; requests: 10m CPU, 64Mi` |
| `podAnnotations` | Annotations to be added to pods. | `{ kubectl.kubernetes.io/default-container: "manager" }` |
| `podLabels` | Labels to be added to pods. | `{ control-plane: "controller-manager", secrets-store.io/system: "true", app: "secrets-store-sync-controller" }` |
| `nodeSelector` | Node labels for pod assignment. | `{}` |
| `tolerations` | Tolerations for pod assignment. | `[{ operator: "Exists" }]` |


These parameters offer flexibility in configuring and deploying the Secrets Store Sync Controller according to specific requirements in your Kubernetes environment. Remember to replace values appropriately or use the `--set` flag when installing the chart via Helm.
Loading

0 comments on commit f2ef3ca

Please sign in to comment.