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

Basic Kubescape support in Marketplace #520

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slashben
Copy link

BACKGROUND

  • Adding the Kubescape stack to the Marketplace

Changes

  • Added management scripts to Kubescape-operator stack

Checklist

  • review the contributing doc with steps for both adding or updating your application (if applicable)

Reviewer: @marketplace-eng

Copy link
Contributor

@mbeyt mbeyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the long wait on this.

The deploy and uninstall scripts work fine, but the upgrade throws errors:

Error: UPGRADE FAILED: cannot patch "node-agent" with kind DaemonSet: DaemonSet.apps "node-agent" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"node-agent", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "kubescape" with kind Deployment: Deployment.apps "kubescape" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"kubescape", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "kubevuln" with kind Deployment: Deployment.apps "kubevuln" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"kubevuln", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "operator" with kind Deployment: Deployment.apps "operator" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"operator", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && cannot patch "storage" with kind Deployment: Deployment.apps "storage" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"storage", "app.kubernetes.io/instance":"kubescape-operator", "app.kubernetes.io/name":"kubescape-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

There is a deprecation warning on the initial deploy that might be related:
spec.template.metadata.annotations[container.apparmor.security.beta.kubernetes.io/node-agent]: deprecated since v1.30; use the "appArmorProfile" field instead

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 this pull request may close these issues.

2 participants