Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tyk-oss v2.1.0 does not set operator license correctly #351

Closed
lboynton opened this issue Oct 31, 2024 · 2 comments · Fixed by #359
Closed

tyk-oss v2.1.0 does not set operator license correctly #351

lboynton opened this issue Oct 31, 2024 · 2 comments · Fixed by #359

Comments

@lboynton
Copy link

Raising separate bug after discussing in #349.

When installing tyk-oss v2.1.0 chart and enabling the tyk operator, the license key does not get passed to the operator correctly. The operator logs show a failed to validate license error. It looks like this is because TYK_OPERATOR_LICENSEKEY is not set in the tyk-operator-conf secret.

The workaround is to either edit the secret to add TYK_OPERATOR_LICENSEKEY, or add TYK_OPERATOR_LICENSEKEY as an extra env var in the chart values.

@caroltyk
Copy link
Collaborator

Hi @lboynton , could you share your helm config with us if possible? Also, currently we can only set TYK_OPERATOR_LICENSEKEY in tyk-operator-conf during installation (helm install) with bootstrapping enabled. It is not possible with helm update.

@lboynton
Copy link
Author

Hi @caroltyk, I'm using the guide here on a fresh install.

The only change is I'm setting the license and enabling the operator in the helm install command, so it looks like this:

helm upgrade tyk-oss tyk-helm/tyk-oss -n $NAMESPACE --create-namespace \          
  --install \
  --set global.secrets.APISecret="$APISecret" \
  --set global.redis.addrs="{tyk-redis-master.$NAMESPACE.svc.cluster.local:6379}" \
  --set global.redis.passSecret.name=tyk-redis \
  --set global.redis.passSecret.keyName=redis-password \
  --set global.license.operator="xxx" \
  --set global.components.operator=true

When getting the secret I can see the license key is missing.

k -n tyk-oss get secret tyk-operator-conf -o yaml
apiVersion: v1
data:
  TYK_AUTH: xxx
  TYK_MODE: xxx
  TYK_ORG: xxx
  TYK_URL: xxx
kind: Secret

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants