Git Product home page Git Product logo

component-networkpolicy's Introduction

Commodore Component: NetworkPolicy

This is a Commodore Component for NetworkPolicy.

This repository is part of Project Syn. For documentation on Project Syn and this component, see syn.tools.

Documentation

The rendered documentation for this component is available on the Commodore Components Hub.

Documentation for this component is written using Asciidoc and Antora. It can be found in the docs folder. We use the Divio documentation structure to organize our documentation.

Run the make docs-serve command in the root of the project, and then browse to http://localhost:2020 to see a preview of the current state of the documentation.

After writing the documentation, please use the make docs-vale command and correct any warnings raised by the tool.

Contributing and license

This library is licensed under BSD-3-Clause. For information about how to contribute, see CONTRIBUTING.

component-networkpolicy's People

Contributors

bastjan avatar ccremer avatar corvus-ch avatar glrf avatar kidswiss avatar simu avatar srueg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

component-networkpolicy's Issues

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

This repository currently has no open or pending branches.


  • Check this box to trigger a request for Renovate to run again on this repository

Network Policies before ResourceLocker namespaces labels applied

We had an timing issue occurred because of the network policies have been applied, before the namespace labels

    network-policies.syn.tools/no-defaults: "true"
    network-policies.syn.tools/purge-defaults: "true"

have been three. This caused several APIs haven't been accessible:

$ oc api-resources
error: unable to retrieve the complete list of server APIs: apps.openshift.io/v1: the server is currently unable to handle the request, authorization.openshift.io/v1: the server is currently unable to handle the request, image.openshift.io/v1: the server is currently unable to handle the request, metrics.k8s.io/v1beta1: the server is currently unable to handle the request, oauth.openshift.io/v1: the server is currently unable to handle the request, project.openshift.io/v1: the server is currently unable to handle the request, quota.openshift.io/v1: the server is currently unable to handle the request, route.openshift.io/v1: the server is currently unable to handle the request, template.openshift.io/v1: the server is currently unable to handle the request

Steps to Reproduce the Problem

  1. Set up a fresh cluster
  2. Apply the component networkpolicy

Actual Behavior

There is a timing issue, that Espejo might be faster than the ResourceLocker causing this issue.

Expected Behavior

There is a clear dependency, that only if the labels have been set, Espejo is going to create the network policies.

Empty array for optional egress field

The component renders empty arrays for optional fields in NetworkPolicies which causes vshn/espejo#117.

The field spec.egress is marked optional (see: https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/networking/types.go#L81-L82).

Steps to Reproduce the Problem

  1. Compile component with defaults

Actual Behavior

The NetworkPolicies in the SyncConfig contain:

spec:
  egress: []

Expected Behavior

The NetworkPolicies in the SyncConfig don't contain empty arrays for optional values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.