How to upgrade the ECK-Operator chart📜
ECK-Operator is a modified/customized version of an upstream chart. The below details the steps required to update to a new version of the eck-operator package.
-
Navigate to the upstream chart repo and folder and find the tag that corresponds with the new chart version for this update
- Check the upstream release highlights for any major changes or potential conflicts.
-
Checkout the
renovate/ironbank
branch. -
From the root of the repo run
kpt pkg update chart@<tag> --strategy alpha-git-patch
, where<tag>
is found in step 1, checkout the chart/Kptfile ref for tag naming- Run a KPT package update
kpt pkg update chart@<tag> --strategy alpha-git-patch
- Run a KPT package update
-
Modify the version in Chart.yaml and append -bb.0 to the chart version from upstream. See Update main chart section of this document.
-
Update eck-operator dependencies and binaries using
helm dependency update ./chart
helm dependency update ./chart
-
Update
CHANGELOG.md
adding an entry for the new version and noting all changes (at minimum should includeUpdated eck-operator to x.x.x
). -
Generate the
README.md
updates by following the guide in gluon. -
Push up your changes, add upgrade notices if applicable, validate that CI passes.
- If there are any failures, follow the information in the pipeline to make the necessary updates.
- Add the
debug
label to the MR for more detailed information. - Reach out to the CODEOWNERS if needed.
-
As part of your MR that modifies bigbang packages, you should modify the bigbang bigbang/tests/test-values.yaml against your branch for the CI/CD MR testing by enabling your packages.
- To do this, at a minimum, you will need to follow the instructions at bigbang/docs/developer/test-package-against-bb.md with changes for ECK-Operator enabled (the below is a reference, actual changes could be more depending on what changes where made to ECK-Operator in the pakcage MR).
test-values.yaml📜
```yaml
eckOperator:
enabled: true
git:
tag: null
branch: <my-package-branch-that-needs-testing>
values:
istio:
hardened:
enabled: true
### Additional compononents of ECK-Operator should be changed to reflect testing changes introduced in the package MR
```
- Perform the steps below for manual testing. CI provides a good set of basic smoke tests but it is beneficial to run some additional checks.
Modifications made to upstream📜
chart/values.yaml📜
-
updated
image.repository
to iron bank for hardened imagesimage: # repository is the container image prefixed by the registry name. repository: docker.elastic.co/eck/eck-operator
-
updated
resources
limits and resources# resources define the container resource limits for the operator. resources: # Limits equal to request to provide QOS per BB Charter limits: cpu: 200m # Values pulled from PB IL2 cluster memory: 256Mi requests: cpu: 200m memory: 256Mi
-
Add fsGroup and supplementalGrousp to
podSecurityContext
# podSecurityContext defines the pod security context for the operator pod. podSecurityContext: runAsNonRoot: true fsGroup: 1001 supplementalGroups: [1001]
-
Add runAsUser and runAsGroup to
securityContext
# securityContext defines the security context of the operator container. securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true runAsUser: 1001 runAsGroup: 1001
-
config.metrics.port
set to 4321config: # logVerbosity defines the logging level. Valid values are as follows: # -2: Errors only # -1: Errors and warnings # 0: Errors, warnings, and information # number greater than 0: Errors, warnings, information, and debug details. logVerbosity: "0" # (Deprecated: use metrics.port: will be removed in v2.14.0) metricsPort defines the port to expose operator metrics. Set to 0 to disable metrics reporting. metricsPort: 0 metrics: # port defines the port to expose operator metrics. Set to 0 to disable metrics reporting. port: "4321"
-
Add
license
values (see below) - Add
networkPolicies
values (see below) - Add
monitoring
values (see below) - Add
openshift
values (see below) - Add
istio
values (see below) - Add
upgradeCrds
values (see below)
# Enterprise license
license:
trial: false # Toggle to enable the trial license for development use
keyJSON: "" # Set this to your license JSON for production use
# BigBang specific Network Policy Configuration
networkPolicies:
enabled: false
# See `kubectl cluster-info` and then resolve to IP
controlPlaneCidr: 0.0.0.0/0
additionalPolicies: []
# Toggle BigBang Monitoring Integration
monitoring:
enabled: false
# Openshift toggle, conditionally modifies networkpolicy for DNS
openshift: false
# Istio toggle, conditionally allow istio specific policies and components
istio:
enabled: false
hardened:
enabled: false
customAuthorizationPolicies: []
outboundTrafficPolicyMode: "REGISTRY_ONLY"
customServiceEntries: []
# - name: "allow-google"
# enabled: true
# spec:
# hosts:
# - google.com
# location: MESH_EXTERNAL
# ports:
# - number: 443
# protocol: TLS
# name: https
# resolution: DNS
# - name: "allow-nothing"
# enabled: true
# spec: {}
tempo:
enabled: false
namespaces:
- tempo
principals:
- cluster.local/ns/tempo/sa/tempo-tempo
# Default kiali peer authentication
mtls:
# STRICT = Allow only mutual TLS traffic
# PERMISSIVE = Allow both plain text and mutual TLS traffic
mode: STRICT
# Force replace CRD upgrade job needed for 1.7.x upgrade
upgradeCrds:
enabled: false
image:
repository: registry1.dso.mil/ironbank/big-bang/base
tag: 2.1.0
chart/templates/bigbang/*📜
- Added BigBang Network Policies as applicable
- Added BigBang Authorization Policies as applicable
- Added OpenShift CRDS as applicable
Testing new ECK-Operator Version📜
NOTE: For these testing steps it is good to do them on both a clean install and an upgrade. For clean install, point ECK-Operator to your branch. For an upgrade do an install with ECK-Operator pointing to the latest tag, then perform a helm upgrade with ECK-Operator pointing to your branch.
ECK-Operator can be installed standalone and is not dependent on any other packages.
The following overrides can be used for a bare minimum ECK-Operator deployment:
kiali:
enabled: false
kyverno:
enabled: false
kyvernoPolicies:
enabled: false
values:
validationFailureAction: "audit"
kyvernoReporter:
enabled: false
promtail:
enabled: false
loki:
enabled: false
neuvector:
enabled: false
values:
k3s:
enabled: true
tempo:
enabled: false
monitoring:
enabled: false
grafana:
enabled: false
addons:
metricsServer:
enabled: false
eckOperator:
# -- Toggle deployment of ECK Operator.
enabled: true
git:
tag: null
branch: renovate/ironbank
- Ensure that all ECK-Operator pods are up and running.
When in doubt with any testing or upgrade steps, reach out to the CODEOWNERS for assistance.